8acc7103622ad8c306deb774d827d6a7f4a9435f,src/python/pants/backend/jvm/tasks/benchmark_run.py,BenchmarkRun,__init__,#BenchmarkRun#,41

Before Change


    self.caliper_args = self.context.options.target_class

    if self.context.options.memory_profiling:
      self.caliper_args += ["--measureMemory"]

    if self.context.options.debug:
      self.jvm_args.extend(JvmDebugConfig.debug_args(self.context.config))
      self.caliper_args += ["--debug"]

    self.caliper_args.extend(self.context.options.extra_caliper_args)

  def prepare(self, round_manager):
    // TODO(John Sirois): these are fake requirements in order to force compile to run before this
    // goal. Introduce a RuntimeClasspath product for JvmCompile and PrepareResources to populate

After Change


    // TODO(Steve Gury):
    // Find all the target classes from the Benchmark target itself
    // https://jira.twitter.biz/browse/AWESOME-1938
    self.args.insert(0, self.get_options().target)
    if self.get_options().memory:
      self.args.append("--measureMemory")
    if self.get_options().debug:
      self.args.append("--debug")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 8acc7103622ad8c306deb774d827d6a7f4a9435f
Time: 2014-10-22
Author: benjyw@gmail.com
File Name: src/python/pants/backend/jvm/tasks/benchmark_run.py
Class Name: BenchmarkRun
Method Name: __init__


Project Name: senarvi/theanolm
Commit Name: 91184b6bdcdbce3a37cc91a54801b98356910849
Time: 2015-11-22
Author: seppo.git@marjaniemi.com
File Name: theanolm/iterators.py
Class Name: BatchIterator
Method Name: _read_sequence


Project Name: senarvi/theanolm
Commit Name: 91184b6bdcdbce3a37cc91a54801b98356910849
Time: 2015-11-22
Author: seppo.git@marjaniemi.com
File Name: theanolm/commands/score.py
Class Name:
Method Name: _score_utterances