790b528716d22bafea946f6228509b202dea09b7,mimic3models/rerun.py,,main,#,144

Before Change


    print("Need to rerun {} / {} models".format(len(rerun), len(args.logs)))
    print("Saving the results in rerun_output.sh")
    with open("rerun_output.sh", "w") as fout:
        for command in rerun:
            fout.write(command + "\n")

if __name__ == "__main__":
    main()

After Change


        ret = process_single(log, args.verbose)
        if ret:
            rerun += [ret]
    rerun = sorted(rerun, key=lambda x: x["last_val"], reverse=True)

    print("Need to rerun {} / {} models".format(len(rerun), len(args.logs)))
    print("Saving the results in rerun_output.json")
    with open("rerun_output.json", "w") as fout:
        json.dump(rerun, fout)

if __name__ == "__main__":
    main()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: YerevaNN/mimic3-benchmarks
Commit Name: 790b528716d22bafea946f6228509b202dea09b7
Time: 2017-09-05
Author: harhro@gmail.com
File Name: mimic3models/rerun.py
Class Name:
Method Name: main


Project Name: automl/HPOlib2
Commit Name: 706aa7deac1b851721adb4931e61ff344cf05d7f
Time: 2020-12-21
Author: muller-phil@gmx.net
File Name: hpobench/config.py
Class Name: HPOBenchConfig
Method Name: __create_config_file


Project Name: chartbeat-labs/textacy
Commit Name: b7f91e30a92e3c3bd2d650476ae4518673c2bd78
Time: 2017-11-30
Author: burton@chartbeat.com
File Name: textacy/fileio/write.py
Class Name:
Method Name: write_spacy_docs