35533cd60dc37b63681ac63d92d0c60bb38dde48,perfkitbenchmarker/benchmarks/speccpu2006_benchmark.py,,Prepare,#Any#,50

Before Change


  vm.InstallPackage("gfortran")
  tar_file_path = os.path.join(DATA_DIR, SPECCPU2006_TAR)
  local_tar_file_path = tar_file_path
  if not os.path.isfile(local_tar_file_path):
    logging.error("Please provide %s under %s directory before"
                  " running SpecCPU2006 benchmark.", SPECCPU2006_TAR, DATA_DIR)
    raise errors.Benchmarks.PrepareException(

After Change


  except data.ResourceNotFound as e:
    logging.error("Please provide %s under perfkitbenchmarker/data directory "
                  "before running SpecCPU2006 benchmark.", SPECCPU2006_TAR)
    raise errors.Benchmarks.PrepareException(str(e))
  vm.tar_file_path = os.path.join(vm.GetScratchDir(), SPECCPU2006_TAR)
  vm.spec_dir = os.path.join(vm.GetScratchDir(), SPECCPU2006_DIR)
  vm.RemoteCommand("chmod 777 %s" % vm.GetScratchDir())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 35533cd60dc37b63681ac63d92d0c60bb38dde48
Time: 2014-12-02
Author: connormccoy@google.com
File Name: perfkitbenchmarker/benchmarks/speccpu2006_benchmark.py
Class Name:
Method Name: Prepare


Project Name: mne-tools/mne-python
Commit Name: bf03e17f323341a877dea62963c86cf140757896
Time: 2019-08-25
Author: larson.eric.d@gmail.com
File Name: mne/utils/check.py
Class Name:
Method Name: _check_fname


Project Name: chartbeat-labs/textacy
Commit Name: e9370c85bb3f95e7308a2ebd527899bef02dd5b0
Time: 2019-08-09
Author: burtdewilde@gmail.com
File Name: textacy/datasets/utils.py
Class Name:
Method Name: download_file