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


    if not self.get_options().transitive:
      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)

    // TODO: Work out a nice library-like utility for writing an argfile, as this will be common.
    with temporary_dir() as tmpdir:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

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: tensorflow/transform
Commit Name: 2e5c3bcd5532a824a589b2a7eb4f0d5cca5fd09a
Time: 2020-04-02
Author: zoy@google.com
File Name: tensorflow_transform/beam/analysis_graph_builder.py
Class Name: _OptimizeVisitor
Method Name: _apply_operation_on_fine_grained_view


Project Name: Theano/Theano
Commit Name: 289c3bd43be7cc0ca14bb505611f1f84e0e53c4a
Time: 2016-10-11
Author: gvtulder@gmail.com
File Name: theano/tensor/nnet/tests/test_abstract_conv.py
Class Name: BaseTestConv2d
Method Name: get_output_shape


Project Name: okfn-brasil/serenata-de-amor
Commit Name: ed82e27fef3c21f0d86e0e8efdc923f527da37ae
Time: 2017-05-11
Author: cuducos@users.noreply.github.com
File Name: jarbas/core/management/commands/irregularities.py
Class Name: Command
Method Name: serialize