edcd459b9cf96c3e5ffc8d6965df5f2e731b3b84,src/python/pants/cache/restful_artifact_cache.py,RESTfulArtifactCache,use_cached_files,#RESTfulArtifactCache#Any#,65
Before Change
if response is None:
return None
with temporary_file() as outfile:
total_bytes = 0
// Read the data in a loop.
for chunk in response.iter_content(self.READ_SIZE_BYTES):
After Change
byte_iter = response.iter_content(self.READ_SIZE_BYTES)
return self._localcache.store_and_use_artifact(cache_key, byte_iter)
except Exception as e:
logger.warn("\nError while reading from remote artifact cache: {0}\n".format(e) )
return False
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances Project Name: pantsbuild/pants
Commit Name: edcd459b9cf96c3e5ffc8d6965df5f2e731b3b84
Time: 2014-10-30
Author: tinystatemachine@gmail.com
File Name: src/python/pants/cache/restful_artifact_cache.py
Class Name: RESTfulArtifactCache
Method Name: use_cached_files
Project Name: pantsbuild/pants
Commit Name: 9f9c1a951607e1b222402194ad817e90169cd08d
Time: 2015-02-10
Author: rbcommons@tla.org
File Name: src/python/pants/backend/jvm/tasks/junit_run.py
Class Name: Cobertura
Method Name: instrument
Project Name: pantsbuild/pants
Commit Name: a56f11bc822f45997c9af154abb1ce512f93888e
Time: 2016-03-09
Author: kwilson@twopensource.com
File Name: src/python/pants/engine/exp/examples/visualizer.py
Class Name:
Method Name: visualize_execution_graph