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):
  Create PKB samples from a YCSB result.

After Change


    dict mapping from property key to property value for each property found in
    "contents".
  
  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: 4

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: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: cb24656dda7d02b1791acc7242bf379350de9183
Time: 2015-04-21
Author: connormccoy@google.com
File Name: perfkitbenchmarker/publisher.py
Class Name: PrettyPrintStreamPublisher
Method Name: PublishSamples


Project Name: cve-search/cve-search
Commit Name: cbd383c139bd7391369e3adbc1f42369df197c05
Time: 2015-10-17
Author: a@foo.be
File Name: lib/Config.py
Class Name: Configuration
Method Name: getFile