32dd1ac4e1d44382f481d0e4e22a81cbb5a66510,perfkitbenchmarker/benchmarks/fio_benchmark.py,,GetIODepths,#Any#,85

Before Change


  try:
    return [int(io_depths)]
  except ValueError:
    bounds = io_depths.split("-", 1)

    if len(bounds) != 2:
      raise ValueError

    return range(int(bounds[0]), int(bounds[1]) + 1)

After Change


    ValueError if FLAGS.io_depths doesn"t follow a format it recognizes.
  

  match = IODEPTHS_REGEXP.match(io_depths)

  if match.group(2) is None:
    return [int(match.group(1))]
  else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 32dd1ac4e1d44382f481d0e4e22a81cbb5a66510
Time: 2015-08-13
Author: nlavine@google.com
File Name: perfkitbenchmarker/benchmarks/fio_benchmark.py
Class Name:
Method Name: GetIODepths


Project Name: quantumlib/Cirq
Commit Name: 43aed78ebcba308fc6503ffaa1e0b8eeef229d28
Time: 2020-09-24
Author: balopat@users.noreply.github.com
File Name: cirq/google/api/v2/program.py
Class Name:
Method Name: grid_qubit_from_proto_id


Project Name: fxsjy/jieba
Commit Name: 99d0fb1a8a00c80c97271b2cc58d52c4fcff0032
Time: 2015-11-09
Author: abcdoyle888@gmail.com
File Name: jieba/__init__.py
Class Name: Tokenizer
Method Name: load_userdict