34df73c2d2d2a305efd438d7dcd9a01b3ed176f0,studio/tartifact_store.py,TartifactStore,put_artifact,#TartifactStore#Any#Any#Any#Any#,60
Before Change
if os.path.exists(cache_dir) and os.path.isdir(cache_dir):
shutil.rmtree(cache_dir)
pcp = subprocess.Popen(
["cp", "-pR", local_path, cache_dir],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
cpout, _ = pcp.communicate()
if pcp.returncode != 0:
self.logger.info(
"cp returned non-zero exit code. Output:")
self.logger.info(cpout)
After Change
debug_str = "Copying local path {} to cache {}" \
.format(local_path, cache_dir)
if ignore_arg != "":
debug_str += ", excluding files in {}" \
.format(ignore_filepath)
self.logger.debug(debug_str)
util.rsync_cp(local_path, cache_dir, ignore_arg,
self.logger)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: studioml/studio
Commit Name: 34df73c2d2d2a305efd438d7dcd9a01b3ed176f0
Time: 2017-09-08
Author: jason.liang@sentient.ai
File Name: studio/tartifact_store.py
Class Name: TartifactStore
Method Name: put_artifact
Project Name: MTG/freesound
Commit Name: 99a1522f89b93b12917087ae7ae7d910cf0c2cf1
Time: 2018-07-18
Author: phil.tgun@gmail.com
File Name: sounds/models.py
Class Name: Sound
Method Name: compute_crc
Project Name: idaholab/raven
Commit Name: 559e68fcac66c449772be2b21af92f502df70e5f
Time: 2019-11-07
Author: paul.talbot@inl.gov
File Name: scripts/TestHarness/testers/CrowPython.py
Class Name: CrowPython
Method Name: CrowPython_1