58f057c0dd1b28cb388c3fd9538bc67289c4e15e,perfkitbenchmarker/benchmarks/fio_benchmark.py,,GenerateJobFileString,#Any#Any#Any#Any#,130

Before Change


    size = str(min(MAX_FILE_SIZE_GB,
                   int(DISK_USABLE_SPACE_FRACTION * disk.disk_size))) + "G"

  return str(jinja2.Template(JOB_FILE_TEMPLATE,
                             undefined=jinja2.StrictUndefined).render(
      filename=filename,
      size=size,
      iodepths=io_depths))


def JobFileString(fio_jobfile, disk, against_device,

After Change


    file_string = file_string + str(job_template.render(
        name=scenario["name"],
        rwkind=scenario["rwkind"],
        blocksize=scenario["blocksize"],
        iodepths=io_depths))

  return file_string
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 2

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 58f057c0dd1b28cb388c3fd9538bc67289c4e15e
Time: 2015-08-26
Author: nlavine@google.com
File Name: perfkitbenchmarker/benchmarks/fio_benchmark.py
Class Name:
Method Name: GenerateJobFileString


Project Name: lcswillems/torch-rl
Commit Name: 2143ec0e8e6a02fade949bf15d9670500ce06234
Time: 2018-04-18
Author: lcswillems@gmail.com
File Name: scripts/enjoy.py
Class Name:
Method Name:


Project Name: comic/grand-challenge.org
Commit Name: 9cea642e99065659d43618b5ab66ed45849e953e
Time: 2017-11-10
Author: pkcakeout@gmail.com
File Name: app/evaluation/widgets/uploader.py
Class Name: AjaxUploadWidget
Method Name: render


Project Name: openai/baselines
Commit Name: 6c44fb28fecdb666182e2951b7b1cbe9cf198ff1
Time: 2018-12-19
Author: peterzhokhoff@gmail.com
File Name: baselines/her/rollout.py
Class Name: RolloutWorker
Method Name: generate_rollouts


Project Name: sebp/scikit-survival
Commit Name: f028981328521c4c0822722ddcbd75783c5d5644
Time: 2016-12-29
Author: sebp@k-d-w.org
File Name: doc/conf.py
Class Name:
Method Name:


Project Name: bokeh/bokeh
Commit Name: ee266472c1987e77c0a91f429b8db549a1ed19b0
Time: 2016-01-04
Author: mattpap@gmail.com
File Name: bokeh/embed.py
Class Name:
Method Name: notebook_div