2e26518b4fe53d4f292a666f63d71f68545f2924,gym/scoreboard/api.py,,write_archive,#Any#Any#Any#,137

Before Change


            tar.add(metadata_path, arcname=metadata_name, recursive=False)

        // Actually write the manifest file
        with tempfile.NamedTemporaryFile(mode="w+") as f:
            json.dump(manifest, f)
            f.flush()

            tar.add(f.name, arcname="manifest.json")

After Change


            tar.add(video_path, arcname=video_name, recursive=False)
            tar.add(metadata_path, arcname=metadata_name, recursive=False)

        f = tempfile.NamedTemporaryFile(mode="w+", delete=False)
        try:
            json.dump(manifest, f)
            f.close()
            tar.add(f.name, arcname="manifest.json")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: openai/gym
Commit Name: 2e26518b4fe53d4f292a666f63d71f68545f2924
Time: 2016-05-27
Author: kurama.youko.br@gmail.com
File Name: gym/scoreboard/api.py
Class Name:
Method Name: write_archive


Project Name: GRAAL-Research/pytoune
Commit Name: c5fafbb5fe41ef5dc42cecab4d2078ede2b4895f
Time: 2018-03-01
Author: fredy_14@live.fr
File Name: pytoune/framework/callbacks/checkpoint.py
Class Name: ModelCheckpoint
Method Name: _save_weights


Project Name: geomstats/geomstats
Commit Name: 6c0d1328eec1c5fd82fb1160b94828ef4600f668
Time: 2020-05-22
Author: 62605255+pchauchat@users.noreply.github.com
File Name: tests/test_notebooks.py
Class Name:
Method Name: _exec_notebook


Project Name: google/deepvariant
Commit Name: 7ed8c6bbcfb2dc0da9b1011ba21d12791239de79
Time: 2019-10-21
Author: gunjanbaid@google.com
File Name: deepvariant/postprocess_variants.py
Class Name:
Method Name: main