f51b3f2682a27e2d47e17f1abebd321effd774fd,src/python/twitter/pants/tasks/what_changed.py,WhatChanged,_owns,#WhatChanged#Any#Any#,99

Before Change


  def _owns(self, target, file):
    if target not in self._filemap:
      files = self._filemap[target]
      for owned_file in target.sources:
        owned_path = os.path.join(target.target_base, owned_file)
        files.add(owned_path)
    return file in self._filemap[target]


class Workspace(AbstractClass):

After Change



  def _owns(self, target, path):
    if target not in self._filemap:
      self._filemap[target].update(target.sources_relative_to_buildroot())
    return path in self._filemap[target]


class Workspace(AbstractClass):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: f51b3f2682a27e2d47e17f1abebd321effd774fd
Time: 2014-01-22
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/what_changed.py
Class Name: WhatChanged
Method Name: _owns


Project Name: pantsbuild/pants
Commit Name: b808d8f7cbe45d82fbf5a6417d09c50d6fa5e130
Time: 2016-01-15
Author: wangpeiyu@gmail.com
File Name: src/python/pants/backend/jvm/tasks/bundle_create.py
Class Name: BundleCreate
Method Name: bundle


Project Name: pyannote/pyannote-audio
Commit Name: 3908c3d23d45628de21f16896eeab42863ac0e63
Time: 2018-11-09
Author: bredin@limsi.fr
File Name: pyannote/audio/labeling/tasks/base.py
Class Name: LabelingTaskGenerator
Method Name: initialize