1143bfdd4b0cb3ce86f545426622add8591d2b2f,studio/artifact_store.py,FirebaseArtifactStore,put_artifact,#FirebaseArtifactStore#Any#Any#Any#Any#,57

Before Change



            self.logger.debug("Tar cmd = {}".format(tarcmd))

            subprocess.call(["/bin/bash", "-c", tarcmd])

            if key is None:
                key = "blobstore/" + util.sha256_checksum(tar_filename) \
                      + ".tgz"

After Change



            self.logger.debug("Tar cmd = {}".format(tarcmd))

            tarp = subprocess.Popen(["/bin/bash", "-c", tarcmd], 
                                    stdout=subprocess.PIPE)

            tarout, _ = tarp.communicate()
            if tarp.returncode != 0:
                self.logger.info("tar had a non-zero return code!")
                self.logger.info("tar output: \n " + tarout)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: studioml/studio
Commit Name: 1143bfdd4b0cb3ce86f545426622add8591d2b2f
Time: 2017-07-05
Author: peter.zhokhov@sentient.ai
File Name: studio/artifact_store.py
Class Name: FirebaseArtifactStore
Method Name: put_artifact


Project Name: studioml/studio
Commit Name: 0a51eaad328715c74d0ca3caf29cd059d8145a74
Time: 2017-07-05
Author: peter.zhokhov@sentient.ai
File Name: studio/artifact_store.py
Class Name: FirebaseArtifactStore
Method Name: put_artifact


Project Name: studioml/studio
Commit Name: 80852a2ff586ab65e632dbc2e21583461bad18f6
Time: 2017-07-05
Author: peter.zhokhov@sentient.ai
File Name: studio/tests/artifact_store_test.py
Class Name: ArtifactStoreTest
Method Name: test_get_artifact_url