af1a91b5b709f81e13a8fa67988a408c69e83dc3,perfkitbenchmarker/packages/ycsb.py,,_ParseWorkload,#Any#,366

Before Change


    "contents".
  
  matches = re.findall(r"^([^//]+?)\s*=\s*(.*)$", contents, re.MULTILINE)
  return {k.strip(): v.strip() for k, v in matches}


def _CreateSamples(ycsb_result, include_histogram=True, **kwargs):

After Change


  fp = io.BytesIO(contents)
  result = {}
  for line in fp:
    if (line.strip() and not line.lstrip().startswith("//") and
        not line.lstrip().startswith("!")):
      k, v = re.split(r"\s*[:=]\s*", line, maxsplit=1)
      result[k] = v
  return result


def _CreateSamples(ycsb_result, include_histogram=True, **kwargs):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: af1a91b5b709f81e13a8fa67988a408c69e83dc3
Time: 2015-05-15
Author: connormccoy@google.com
File Name: perfkitbenchmarker/packages/ycsb.py
Class Name:
Method Name: _ParseWorkload


Project Name: biolab/orange3
Commit Name: 8d4d199c35f5163ed21ae705a16ce3c8548d60c6
Time: 2012-11-28
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/data/io.py
Class Name: BasketReader
Method Name: prescan_file


Project Name: mozilla/bugbug
Commit Name: d01c2ee57a3e79f791f301cfd65d35e608817ce4
Time: 2020-03-12
Author: mcastelluccio@mozilla.com
File Name: bugbug/test_scheduling_features.py
Class Name:
Method Name: get_chunk