6229c419d8f1b63cac22f23f24e19ef28d89b0a3,src/python/pants/backend/graph_info/tasks/cloc.py,CountLinesOfCode,console_output,#CountLinesOfCode#Any#,34

Before Change


    // TODO: This should use an input file snapshot which should be provided on the Target object,
    // rather than hackily re-snapshotting each of the input files.
    // See https://github.com/pantsbuild/pants/issues/5762
    input_pathglobs = PathGlobs(tuple(input_files))
    input_snapshot = self.context._scheduler.product_request(Snapshot, [input_pathglobs])[0]

    directory_digest = self.context._scheduler.merge_directories((
      cloc_snapshot.directory_digest,
      input_snapshot.directory_digest,
      list_file_snapshot.directory_digest,
    ))

    cmd = (
      "/usr/bin/perl",

After Change


      targets = self.context.target_roots

    input_snapshots = tuple(
      target.sources_snapshot(scheduler=self.context._scheduler) for target in targets
    )
    input_files = set(f.path for snapshot in input_snapshots for f in snapshot.files)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 6229c419d8f1b63cac22f23f24e19ef28d89b0a3
Time: 2018-06-27
Author: dawagner@gmail.com
File Name: src/python/pants/backend/graph_info/tasks/cloc.py
Class Name: CountLinesOfCode
Method Name: console_output


Project Name: pantsbuild/pants
Commit Name: 906e4e5f4077cd1627eb5b5400f9cd7d5bbb8fab
Time: 2018-09-18
Author: dorothyordogh@gmail.com
File Name: src/python/pants/backend/jvm/tasks/jvm_compile/zinc/zinc_compile.py
Class Name: BaseZincCompile
Method Name: compile


Project Name: pantsbuild/pants
Commit Name: d45af2806326ee71c8f163daea6c0512b58fadd2
Time: 2019-07-28
Author: stuhood@gmail.com
File Name: src/python/pants/backend/jvm/subsystems/zinc.py
Class Name: Zinc
Method Name: _run_bootstrapper