167641d61ab42c8cd37459dd97d8939e35a859a8,kraken/kraken.py,,recognizer,#Any#Any#Any#Any#Any#Any#Any#,95

Before Change


    preds = []

    for pred in it:
        if ctx.meta["verbose"] > 0:
            click.echo(u"[{:2.4f}] {}".format(time.time() - st_time, pred.prediction))
        else:
            spin("Processing")
        preds.append(pred)
    if ctx.meta["verbose"] > 0:
        click.echo(u"Execution time: {}s".format(time.time() - st_time))
    else:

After Change


    ctx = click.get_current_context()
    with open_file(output, "w", encoding="utf-8") as fp:
        message(u"Writing recognition results for {}\t".format(base_image), nl=False)
        logger.info("Serializing as {} into {}".format(ctx.meta["mode"], fp.name))
        if ctx.meta["mode"] != "text":
            fp.write(serialization.serialize(preds, base_image,
                     Image.open(base_image).size, ctx.meta["text_direction"],
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: mittagessen/kraken
Commit Name: 167641d61ab42c8cd37459dd97d8939e35a859a8
Time: 2018-03-14
Author: mittagessen@l.unchti.me
File Name: kraken/kraken.py
Class Name:
Method Name: recognizer


Project Name: mittagessen/kraken
Commit Name: 167641d61ab42c8cd37459dd97d8939e35a859a8
Time: 2018-03-14
Author: mittagessen@l.unchti.me
File Name: kraken/ketos.py
Class Name:
Method Name: extract


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 71d61f102189f8b7337567ca34ad590f2ddf4808
Time: 2018-02-27
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/simulation/target_simulators/INI_ttfs_target_sim.py
Class Name: SNN
Method Name: simulate