3776fe921de5d0cf418568e67180d7485ed0081f,src/python/pants/build_graph/build_graph.py,BuildGraph,apply_injectables,#BuildGraph#Any#,131

Before Change


    target_subsystem_deps = {s for s in itertools.chain(*(t.subsystems() for t in target_types))}
    for subsystem in target_subsystem_deps:
      // TODO: This check is primarily for tests and would be nice to do away with.
      if subsystem.is_initialized():
        subsystem.global_instance().injectables(self)

  def reset(self):

After Change


    target_subsystem_deps = {s for s in itertools.chain(*(t.subsystems() for t in target_types))}
    for subsystem in target_subsystem_deps:
      // TODO: The is_initialized() check is primarily for tests and would be nice to do away with.
      if issubclass(subsystem, InjectablesMixin) and subsystem.is_initialized():
        subsystem.global_instance().injectables(self)

  def reset(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 3776fe921de5d0cf418568e67180d7485ed0081f
Time: 2018-03-05
Author: benjyw@gmail.com
File Name: src/python/pants/build_graph/build_graph.py
Class Name: BuildGraph
Method Name: apply_injectables


Project Name: open-mmlab/mmdetection
Commit Name: 4b984a7c543e7dfbeafe613ff0db18a7fdb76f43
Time: 2020-01-18
Author: 57527488+CapMocha@users.noreply.github.com
File Name: mmdet/apis/train.py
Class Name:
Method Name: parse_losses


Project Name: pytorch/fairseq
Commit Name: 3c726544d240f610cd35ea264d893d6a6ada074a
Time: 2020-10-28
Author: elijah.rippeth@gmail.com
File Name: fairseq/distributed_utils.py
Class Name:
Method Name: distributed_init