87d1b5356187fb4a35aa11204223ed2c6586268d,perfkitbenchmarker/linux_packages/fio.py,,ParseResults,#Any#Any#Any#Any#Any#,141

Before Change


    if log_file_base and bin_vals:
      // Parse histograms
      hist_file_path = vm_util.PrependTempDir(
          "%s_clat_hist.%s.log" % (log_file_base, str(idx + 1)))
      samples += _ParseHistogram(
          hist_file_path, bin_vals[idx], job_name, parameters)
  return samples

After Change


                          job[mode]["iops"], "", parameters, timestamp))
    if log_file_base and bin_vals:
      // Parse histograms
      aggregates = collections.defaultdict(collections.Counter)
      for _ in xrange(int(job["job options"]["numjobs"])):
        clat_hist_idx += 1
        hist_file_path = vm_util.PrependTempDir(
            "%s_clat_hist.%s.log" % (log_file_base, str(clat_hist_idx)))
        hists = _ParseHistogram(hist_file_path, bin_vals[clat_hist_idx - 1])

        for key in hists:
          aggregates[key].update(hists[key])
      samples += _BuildHistogramSamples(aggregates, job_name, parameters)

  return samples

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 87d1b5356187fb4a35aa11204223ed2c6586268d
Time: 2017-10-04
Author: dlott@users.noreply.github.com
File Name: perfkitbenchmarker/linux_packages/fio.py
Class Name:
Method Name: ParseResults


Project Name: Scitator/catalyst
Commit Name: c6ea0fc2354e54e3ae76fee78702c8ee228ecad7
Time: 2019-10-29
Author: 34604336+jchen42703@users.noreply.github.com
File Name: catalyst/dl/callbacks/metrics/auc.py
Class Name: AUCCallback
Method Name: on_loader_end


Project Name: allenai/allennlp
Commit Name: b4f7b9461e7f8f3b2f315f588dbb75f44c208794
Time: 2017-07-15
Author: markn@allenai.org
File Name: allennlp/data/dataset.py
Class Name: Dataset
Method Name: as_arrays