b049dae2cc39b32f6e2f1ca8da96c1f55137dae2,src/python/twitter/pants/tasks/jvm_dependency_analyzer.py,JvmDependencyAnalyzer,_compute_missing_deps,#JvmDependencyAnalyzer#Any#Any#,138

Before Change


          if actual_dep_tgt is None:
            missing_file_deps.append((src_tgt, actual_dep))
          elif actual_dep_tgt != src_tgt:  // Obviously intra-target deps are fine.
            if actual_dep_tgt not in transitive_deps_by_target.get(src_tgt, []):
              missing_tgt_deps_map[(src_tgt, actual_dep_tgt)].append((src, actual_dep))
            elif actual_dep_tgt not in src_tgt.dependencies:
              missing_direct_tgt_deps_map[(src_tgt, actual_dep_tgt)].append((src, actual_dep))

After Change


      if src_tgt is not None:
        for actual_dep in filter(must_be_explicit_dep, actual_deps.get(src, [])):
          actual_dep_tgts = targets_by_file.get(actual_dep)
          canonical_actual_dep_tgt = next(iter(actual_dep_tgts))
          // actual_dep_tgts is usually a singleton. If it"s not, we only need one of these
          // to be in our declared deps to be OK.
          if actual_dep_tgts is None:
            missing_file_deps.append((src_tgt, actual_dep))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: b049dae2cc39b32f6e2f1ca8da96c1f55137dae2
Time: 2013-11-25
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/jvm_dependency_analyzer.py
Class Name: JvmDependencyAnalyzer
Method Name: _compute_missing_deps


Project Name: etal/cnvkit
Commit Name: e06b04eacb0eefdd392e54a0ec2a4f24c22ef50c
Time: 2014-09-08
Author: eric.talevich@gmail.com
File Name: cnvlib/target.py
Class Name:
Method Name: assign_names


Project Name: OpenNMT/OpenNMT-tf
Commit Name: ab6f9e4c489beea3bec518d60629c0f8af0b6123
Time: 2019-06-21
Author: guillaume.klein@systrangroup.com
File Name: opennmt/runner.py
Class Name: Runner
Method Name: train