831b005905d3f3dd36269cccf9186d1ee1110858,src/python/pants/backend/python/interpreter_cache.py,PythonInterpreterCache,_resolve_and_link,#PythonInterpreterCache#Any#Any#Any#,179
Before Change
installer = installer_provider(sdist)
dist_location = installer.bdist()
target_location = os.path.join(os.path.dirname(target_link), os.path.basename(dist_location))
shutil.move(dist_location, target_location)
_safe_link(target_location, target_link)
self._logger(" installed {}".format(target_location))
return EggPackage(target_location)
After Change
interpreter=interpreter,
context=self._python_repos.get_network_context(),
precedence=precedence)
if not distributions:
return None
assert len(distributions) == 1, ("Expected exactly 1 distribution to be resolved for {}, "
"found:\n\t{}".format(requirement,
"\n\t".join(map(str, distributions))))
dist_location = distributions[0].location
target_location = os.path.join(os.path.dirname(target_link), os.path.basename(dist_location))
shutil.move(dist_location, target_location)
_safe_link(target_location, target_link)
self._logger(" installed {}".format(target_location))
return Package.from_href(target_location)
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
Instances
Project Name: pantsbuild/pants
Commit Name: 831b005905d3f3dd36269cccf9186d1ee1110858
Time: 2015-07-24
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/python/interpreter_cache.py
Class Name: PythonInterpreterCache
Method Name: _resolve_and_link
Project Name: chuyangliu/snake
Commit Name: 4596b34c587f0cf1e96400896960cbb5c10989ed
Time: 2017-12-20
Author: chuyang.s.liu@gmail.com
File Name: snake/game.py
Class Name: Game
Method Name: __game_main
Project Name: UFAL-DSG/tgen
Commit Name: 06d8267f98e921ce3b241d0c487b394570b04cb3
Time: 2016-04-05
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/parallel_seq2seq_train.py
Class Name: ParallelSeq2SeqTraining
Method Name: save_to_file
Project Name: OpenMined/PySyft
Commit Name: f7ef817e9e7bad329adbcb8df0350baeec089c25
Time: 2020-08-10
Author: rladhkstn8@gmail.com
File Name: syft/frameworks/torch/tensors/interpreters/additive_shared.py
Class Name: AdditiveSharingTensor
Method Name: reconstruct
Project Name: akkana/scripts
Commit Name: b392864bbd1e61ef99aed4d168ec4f832dfff49f
Time: 2020-10-15
Author: akkana@shallowsky.com
File Name: qpreso.py
Class Name: PresoView
Method Name: __init__