fda0e0e7d1399a404788c33d19677c4a22583138,src/sagemaker/local/local_session.py,LocalSagemakerClient,create_endpoint,#LocalSagemakerClient#Any#Any#,108
Before Change
i = 0
http = urllib3.PoolManager()
serving_port = 8080
if self.sagemaker_session.config and "local" in self.sagemaker_session.config:
serving_port = self.sagemaker_session.config["local"].get("serving_port", 8080)
endpoint_url = "http://localhost:%s/ping" % serving_port
while True:
i += 1
if i >= 10:
After Change
i = 0
http = urllib3.PoolManager()
serving_port = get_config_value("local.serving_port", self.sagemaker_session.config) or 8080
endpoint_url = "http://localhost:%s/ping" % serving_port
while True:
i += 1
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: aws/sagemaker-python-sdk
Commit Name: fda0e0e7d1399a404788c33d19677c4a22583138
Time: 2018-05-10
Author: nacho950@gmail.com
File Name: src/sagemaker/local/local_session.py
Class Name: LocalSagemakerClient
Method Name: create_endpoint
Project Name: aws/sagemaker-python-sdk
Commit Name: fda0e0e7d1399a404788c33d19677c4a22583138
Time: 2018-05-10
Author: nacho950@gmail.com
File Name: src/sagemaker/local/local_session.py
Class Name: LocalSagemakerRuntimeClient
Method Name: __init__
Project Name: aws/sagemaker-python-sdk
Commit Name: fda0e0e7d1399a404788c33d19677c4a22583138
Time: 2018-05-10
Author: nacho950@gmail.com
File Name: src/sagemaker/local/image.py
Class Name: _SageMakerContainer
Method Name: _create_tmp_folder