0bf75c51bbf06060cdbd375b080d54e0e40255e2,studio/local_worker.py,,worker_loop,#Any#Any#Any#Any#Any#,300

Before Change


                                    pip_install_packages([pkg], python, logger)

                    for tag, art in six.iteritems(experiment.artifacts):
                        if fetch_artifacts or "local" not in art.keys():
                            logger.info("Fetching artifact " + tag)
                            if tag == "workspace":
                                art["local"] = retry(lambda: db.get_artifact(
                                    art,
                                    only_newer=False),
                                    sleep_time=10,
                                    logger=logger)
                            else:
                                art["local"] = retry(
                                    lambda: db.get_artifact(art),
                                    sleep_time=10,
                                    logger=logger
                                )

                    returncode = executor.run(experiment)
                    if returncode != 0:
                        retval = returncode
                finally:

After Change



                            if not art.is_mutable:
                                logger.info("Fetching artifact " + tag)
                                print("IMMUTABLE: {0} {1}".format(tag, json.dumps(art.to_dict(), indent=4)))
                                art.local_path = retry(
                                    lambda: db.get_artifact(art, only_newer=get_only_newer),
                                    sleep_time=10,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: studioml/studio
Commit Name: 0bf75c51bbf06060cdbd375b080d54e0e40255e2
Time: 2020-11-13
Author: andrei.denissov@cognizant.com
File Name: studio/local_worker.py
Class Name:
Method Name: worker_loop


Project Name: facebookresearch/ParlAI
Commit Name: 72c304fa7cac16ed19d8bc75a017f17c8073dd2f
Time: 2020-02-13
Author: roller@fb.com
File Name: parlai/utils/misc.py
Class Name: TimeLogger
Method Name: log


Project Name: Rostlab/nalaf
Commit Name: fe41a42ff872debbc18f465f003a314f5ad19d29
Time: 2015-09-20
Author: carsten.uhlig@gmail.com
File Name: nala/utils/tagger.py
Class Name: TmVarTagger
Method Name: generate_abstracts


Project Name: studioml/studio
Commit Name: 0bf75c51bbf06060cdbd375b080d54e0e40255e2
Time: 2020-11-13
Author: andrei.denissov@cognizant.com
File Name: studio/local_worker.py
Class Name:
Method Name: worker_loop