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

Before Change


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

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: hellohaptik/chatbot_ner
Commit Name: e870ef14c590502fb0dc5ff3199e2602a87ec008
Time: 2019-03-18
Author: jain.chirag925@gmail.com
File Name: ner_v1/detectors/numeral/budget/budget_detection.py
Class Name: BudgetDetector
Method Name: _detect_min_budget


Project Name: hellohaptik/chatbot_ner
Commit Name: e870ef14c590502fb0dc5ff3199e2602a87ec008
Time: 2019-03-18
Author: jain.chirag925@gmail.com
File Name: ner_v1/detectors/numeral/budget/budget_detection.py
Class Name: BudgetDetector
Method Name: _detect_max_budget