76450c8d4777f12188203e8303d7fd7eb499210c,python/ray/autoscaler/aws/config.py,,_client,#Any#Any#,382

Before Change




def _client(name, config):
    boto_config = Config(retries={"max_attempts": BOTO_MAX_RETRIES})
    aws_credentials = config["provider"].get("aws_credentials", {})
    return boto3.client(
        name,
        config["provider"]["region"],
        config=boto_config,
        **aws_credentials)


def _resource(name, config):
    boto_config = Config(retries={"max_attempts": BOTO_MAX_RETRIES})

After Change




def _client(name, config):
    return _resource(name, config).meta.client


def _resource(name, config):
    region = config["provider"]["region"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: ray-project/ray
Commit Name: 76450c8d4777f12188203e8303d7fd7eb499210c
Time: 2020-05-28
Author: smtp.pdames@gmail.com
File Name: python/ray/autoscaler/aws/config.py
Class Name:
Method Name: _client


Project Name: ray-project/ray
Commit Name: 76450c8d4777f12188203e8303d7fd7eb499210c
Time: 2020-05-28
Author: smtp.pdames@gmail.com
File Name: python/ray/autoscaler/aws/config.py
Class Name:
Method Name: _resource


Project Name: streamlit/streamlit
Commit Name: da3894b5ae20d2f2851504e0fed6a946247f733f
Time: 2018-06-18
Author: armando@playground.global
File Name: lib/streamlit/config.py
Class Name:
Method Name: get_option