596116954853f7476017242af09580eb9b6dcea2,perfkitbenchmarker/packages/fio.py,,ParseJobFile,#Any#,77

Before Change


    if section[0] == GLOBAL:
      global_metadata = ExtractFioParameters(section[1])
      break
  for section in section_match:
    section_name = section[0]
    if section_name == GLOBAL:
      continue
    parameter_metadata[section_name] = {}
    parameter_metadata[section_name].update(global_metadata)
    parameter_metadata[section_name].update(ExtractFioParameters(section[1]))

  return parameter_metadata


def FioParametersToJob(fio_parameters):

After Change


  config.readfp(io.BytesIO(job_file))
  sections = config.__dict__["_sections"]
  global_metadata = {}
  if GLOBAL in sections:
    global_metadata = dict(sections[GLOBAL])
    del sections[GLOBAL]
  for section in sections:
    if section != GLOBAL:
      sections[section] = dict(sections[section])
      sections[section].update(global_metadata)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


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


Project Name: commonsense/conceptnet5
Commit Name: db4b9f4d50af9e83733fc301c32e85cbe6d9c812
Time: 2014-02-25
Author: rob@luminoso.com
File Name: conceptnet5/builders/json_to_solr.py
Class Name:
Method Name: convert_to_solr


Project Name: mynlp/ccg2lambda
Commit Name: 5b5d9a9aedf8e11b9609d28b26b6488bc20cb08b
Time: 2017-03-24
Author: pascual@nii.ac.jp
File Name: scripts/semantic_types.py
Class Name:
Method Name: merge_dynamic_libraries