076e01d237ab3b58cdb395fb04a7f176ab02209d,src/python/twitter/pants/cache/restful_artifact_cache.py,RESTfulArtifactCache,use_cached_files,#RESTfulArtifactCache#Any#,51

Before Change


        // Extract the tarfile.
        with open_tar(outfile.name, "r") as tarfile:
          tarfile.extractall(self.artifact_root)
      return True
    except Exception as e:
        self.log.warn("Error while reading from artifact cache: %s" % e)
        return False

After Change


                       (total_bytes,self._url_string(remote_path)))

        // Extract the tarfile.
        artifact = TarballArtifact(self.artifact_root, outfile.name, self.compress)
        artifact.extract()
        return artifact
    except Exception as e:
      self.log.warn("Error while reading from remote artifact cache: %s" % e)
      return None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 076e01d237ab3b58cdb395fb04a7f176ab02209d
Time: 2013-10-31
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/cache/restful_artifact_cache.py
Class Name: RESTfulArtifactCache
Method Name: use_cached_files


Project Name: J535D165/recordlinkage
Commit Name: 4a24e4e36ee175aef54b92eb03e08a2be7811a96
Time: 2018-03-10
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/datasets/febrl.py
Class Name:
Method Name: _febrl_links


Project Name: austin-taylor/flare
Commit Name: 9cc8397cee3dcc24d1697cb45378eddc660cc8e1
Time: 2019-10-21
Author: jdpberba@gmail.com
File Name: flare/data_science/features.py
Class Name:
Method Name: domain_tld_extract