c8952cd00253c2c8176b7d2e3bf39bf93c639b72,atlas/rules/initialize_checkm.py,,,#,56

Before Change


    stdout = p.communicate(input=newline.join(response) if isinstance(response, list) else response)[0]


with open(snakemake.log[0],"w") as errlog:

    run_popen(["checkm", "data", "setRoot"], [snakemake.params.database_dir, snakemake.params.database_dir],errlog)
    run_popen(["checkm", "data", "update"], ["y", "y"],errlog)

// when re-activating a conda env, reset the .dmanifest directory and download
with open(snakemake.output.touched_output, "w") as fh:
    fh.write("CheckM successfully initialized.\n")

After Change


    args = p.parse_args()
    logging.basicConfig(level=logging.INFO, datefmt="%Y-%m-%d %H:%M",
        format="[%(asctime)s] %(message)s")
    main(args.dbdir, args.confirmation, args.log)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: metagenome-atlas/atlas
Commit Name: c8952cd00253c2c8176b7d2e3bf39bf93c639b72
Time: 2018-01-08
Author: brwnjm@gmail.com
File Name: atlas/rules/initialize_checkm.py
Class Name:
Method Name:


Project Name: GoogleCloudPlatform/ml-on-gcp
Commit Name: 8079adae33711e4886a625df3f0ae9860739f7b9
Time: 2019-09-03
Author: yuhanliu@google.com
File Name: example_zoo/tools/process.py
Class Name:
Method Name:


Project Name: GoogleCloudPlatform/professional-services
Commit Name: c40ae473e382907fd12dedced1dc5dc3b6984fbc
Time: 2019-03-11
Author: morgantep@google.com
File Name: helpers/sort_lists.py
Class Name:
Method Name: