7633670d154df78fe56e4b2f9614ceaf3888e0fe,inference/classify_movidius_server.py,,server,#,70

Before Change


        output_name = input_name + ".txt"
        output_done_name = output_name + ".done"
        with open(output_name, "w") as f:
            for i in inceptionv3_outputs:
                print("%s (score = %.5f)" % (i[0], i[1]), file=f)
        touch(output_done_name)
        logging(input_name, " classified!")

After Change



        output_name = input_name + ".txt"
        output_done_name = output_name + ".done"
        inference_result = generalize_inference_result(inceptionv3_outputs)
        logging(json.dumps(inference_result, indent=4))
        with open(output_name, "w") as f:
            json.dump(inference_result, f, indent=4)
        //with open(output_name, "w") as f:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: DT42/BerryNet
Commit Name: 7633670d154df78fe56e4b2f9614ceaf3888e0fe
Time: 2018-02-08
Author: bofu@dt42.io
File Name: inference/classify_movidius_server.py
Class Name:
Method Name: server


Project Name: deepchem/deepchem
Commit Name: c7c06f56e918cabf565d4e4454daa344137d1f0f
Time: 2017-05-25
Author: Karl
File Name: contrib/rl/tictactoe.py
Class Name:
Method Name: main


Project Name: cve-search/cve-search
Commit Name: 0c11680229ec321925d9b244a72ea5e06a7c7a6f
Time: 2013-03-30
Author: a@foo.be
File Name: search_fulltext.py
Class Name:
Method Name: