13986978d4545aa429a7fc233d8e39718d52e255,studio/keyvalue_provider.py,KeyValueProvider,checkpoint_experiment,#KeyValueProvider#Any#Any#,223

Before Change



        experiment_dict = self._get(self._get_experiments_keybase() + key)

        checkpoint_threads = [
            Thread(
                target=self.store.put_artifact,
                args=(art,))
            for _, art in six.iteritems(experiment.artifacts)
            if art["mutable"] and art.get("local")]

        for t in checkpoint_threads:
            t.start()

After Change



        for worker in workers:
            try:
                worker.result()
            except Exception as exc:
                // If any of artifact savers failed and threw an exception,
                // rethrow it to signal overall checkpoint failure
                raise exc
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: studioml/studio
Commit Name: 13986978d4545aa429a7fc233d8e39718d52e255
Time: 2020-08-11
Author: andrei.denissov@cognizant.com
File Name: studio/keyvalue_provider.py
Class Name: KeyValueProvider
Method Name: checkpoint_experiment


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 3073997a3a8a754a5cc66a5a7e5dfdae00917f00
Time: 2017-11-13
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATdx_adv.py
Class Name: QA_Tdx_Executor
Method Name: get_security_bar_concurrent


Project Name: dask/distributed
Commit Name: d24d62f1dafa482b04209c1ef25a2305d6c41539
Time: 2021-02-24
Author: crusaderky@gmail.com
File Name: distributed/tests/test_threadpoolexecutor.py
Class Name:
Method Name: test_secede_rejoin_busy