983aedb23057629605c8a7c8d9757945651d48f5,perfkitbenchmarker/packages/fio.py,,ParseJobFile,#Any#,59

Before Change


    A dictionary of dictionaries of sample metadata, using test name as keys,
        dictionaries of sample metadata as value.
  
  job_file = job_file.replace(JOB_STONEWALL_PARAMETER, "")
  config = ConfigParser.ConfigParser()
  config.readfp(io.BytesIO(job_file))
  sections = config.__dict__["_sections"]
  global_metadata = {}

After Change


    if section != GLOBAL:
      metadata = {}
      metadata.update(dict(config.items(section)))
      metadata.update(global_metadata)
      if JOB_STONEWALL_PARAMETER in metadata:
        del metadata[JOB_STONEWALL_PARAMETER]
      section_metadata[section] = metadata
  return section_metadata
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 983aedb23057629605c8a7c8d9757945651d48f5
Time: 2015-03-27
Author: yuyantingzero@gmail.com
File Name: perfkitbenchmarker/packages/fio.py
Class Name:
Method Name: ParseJobFile


Project Name: home-assistant/home-assistant
Commit Name: a25f7eed2ba86b30fc0615f3fc9d048599890244
Time: 2015-09-11
Author: rhooper@toybox.ca
File Name: homeassistant/components/media_player/sonos.py
Class Name: SonosDevice
Method Name: __init__


Project Name: MolSSI/QCEngine
Commit Name: d1155b13ce2068a59b955fe0dba7925666f20bea
Time: 2019-11-04
Author: malorian@me.com
File Name: qcengine/programs/qchem.py
Class Name: QChemHarness
Method Name: execute