184719bf2f01c441208fe972c2a2dc2c43726d98,benchmarking/run_remote.py,RunRemote,_updateArgs,#RunRemote#Any#,619

Before Change


        // Remove later when adhoc is moved to seperated infrastructure
        if args.adhoc:
            fd, path = tempfile.mkstemp()
            with pkg_resources.resource_stream(
                "aibench",
                "specifications/models/generic/adhoc.json"
            ) as stream:
                with os.fdopen(fd, "wb") as f:
                    f.write(stream.read())
            args.benchmark_file = path


if __name__ == "__main__":

After Change


        // Remove later when adhoc is moved to seperated infrastructure
        if args.adhoc is not None:
            adhoc_file, success = unpackAdhocFile(args.adhoc)
            if success:
                args.benchmark_file = adhoc_file
            else:
                getLogger().error(
                    "Could not find specified adhoc config: {}"
                    .format(args.adhoc)
                )


if __name__ == "__main__":
    raw_args = None
    app = RunRemote(raw_args=raw_args)
    app.run()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: facebook/FAI-PEP
Commit Name: 184719bf2f01c441208fe972c2a2dc2c43726d98
Time: 2019-10-08
Author: asankaran@fb.com
File Name: benchmarking/run_remote.py
Class Name: RunRemote
Method Name: _updateArgs


Project Name: cve-search/cve-search
Commit Name: 0f2d4db89845b9fe748bb8df19c166ebc937c930
Time: 2020-08-11
Author: paul.tikken@gmail.com
File Name: sbin/db_mgmt_json.py
Class Name: CVEDownloads
Method Name: download_site


Project Name: pantsbuild/pants
Commit Name: 461bb39fbdd9f49ff21a6be038ffbd2e7ae622b0
Time: 2015-07-30
Author: mateorod9@gmail.com
File Name: src/python/pants/backend/android/tasks/dx_compile.py
Class Name: DxCompile
Method Name: execute


Project Name: cve-search/cve-search
Commit Name: 0f2d4db89845b9fe748bb8df19c166ebc937c930
Time: 2020-08-11
Author: paul.tikken@gmail.com
File Name: sbin/db_mgmt_cpe_dictionary.py
Class Name: CPEDownloads
Method Name: download_site