8d4140e264a0a47d3d690a5adc6386c027e2f8e2,polystores/stores/gcs_store.py,GCSStore,parse_gcs_url,#Any#,88

Before Change


        Returns:
            tuple(bucket_name, blob).
        
        parsed_url = urllib.parse.urlparse(gcs_url)
        if not parsed_url.netloc:
            raise PolyaxonStoresException("Received an invalid url `{}`".format(gcs_url))
        if parsed_url.scheme != "gs":
            raise PolyaxonStoresException("Received an invalid url `{}`".format(gcs_url))
        blob = parsed_url.path.lstrip("/")
        return parsed_url.netloc, blob

    def get_bucket(self, bucket_name):
        
        Gets a bucket by name.

After Change


        Returns:
            tuple(bucket_name, blob).
        
        try:
            spec = rhea_parser.parse_gcs_path(gcs_url)
            return spec.bucket, spec.blob
        except RheaError as e:
            raise PolyaxonStoresException(e)

    def get_bucket(self, bucket_name):
        
        Gets a bucket by name.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 20

Instances


Project Name: polyaxon/polyaxon
Commit Name: 8d4140e264a0a47d3d690a5adc6386c027e2f8e2
Time: 2019-07-13
Author: mouradmourafiq@gmail.com
File Name: polystores/stores/gcs_store.py
Class Name: GCSStore
Method Name: parse_gcs_url


Project Name: polyaxon/polyaxon
Commit Name: 8d4140e264a0a47d3d690a5adc6386c027e2f8e2
Time: 2019-07-13
Author: mouradmourafiq@gmail.com
File Name: polystores/stores/gcs_store.py
Class Name: GCSStore
Method Name: parse_gcs_url


Project Name: polyaxon/polyaxon
Commit Name: 8d4140e264a0a47d3d690a5adc6386c027e2f8e2
Time: 2019-07-13
Author: mouradmourafiq@gmail.com
File Name: polystores/stores/azure_store.py
Class Name: AzureStore
Method Name: parse_wasbs_url


Project Name: polyaxon/polyaxon
Commit Name: 8d4140e264a0a47d3d690a5adc6386c027e2f8e2
Time: 2019-07-13
Author: mouradmourafiq@gmail.com
File Name: polystores/stores/s3_store.py
Class Name: S3Store
Method Name: parse_s3_url