076e01d237ab3b58cdb395fb04a7f176ab02209d,src/python/twitter/pants/python/python_chroot.py,PythonChroot,_dump_built_library,#PythonChroot#Any#Any#,181

Before Change


          cache_key.hash + "_" + os.path.basename(egg_file))
      self.debug("       %s => %s" % (src_egg_file, dst_egg_file))
      os.rename(src_egg_file, dst_egg_file)
      self._artifact_cache.insert(cache_key, [dst_egg_file])
      self._builder.add_egg(dst_egg_file)

  def resolve(self, targets):
    children = defaultdict(OrderedSet)

After Change


    absolute_sources = library.expand_files()
    absolute_sources.sort()
    cache_key = self._key_generator.key_for(library.id, absolute_sources)
    cache_dir = os.path.join(self._egg_cache_root, cache_key.hash)
    if os.path.exists(cache_dir):
      self.debug("  Generating (cached) %s..." % library)
      // We have no idea what the egg path is, so we simply walk the directory.
      for dir_name, _, filenames in os.walk(cache_dir):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: 076e01d237ab3b58cdb395fb04a7f176ab02209d
Time: 2013-10-31
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/python/python_chroot.py
Class Name: PythonChroot
Method Name: _dump_built_library


Project Name: RasaHQ/rasa
Commit Name: 320b252b591f881550092d8a8272528f65a57cbb
Time: 2018-09-27
Author: tom@rasa.com
File Name: docs/conf.py
Class Name:
Method Name: setup


Project Name: arraiy/torchgeometry
Commit Name: 4692c2cbf7709d2a1e9599794d0cc5ab847fe383
Time: 2019-05-22
Author: edgar.riba@gmail.com
File Name: docs/source/conf.py
Class Name:
Method Name: