ede60e7dd71acede36279ff7db0905df2f1329b1,src/sagemaker/user_agent.py,,,#,23

Before Change


import boto3
import botocore

SDK_VERSION = pkg_resources.require("sagemaker")[0].version
OS_NAME = platform.system() or "UnresolvedOS"
OS_VERSION = platform.release() or "UnresolvedOSVersion"
PYTHON_VERSION = "{}.{}.{}".format(
    sys.version_info.major, sys.version_info.minor, sys.version_info.micro

After Change


import botocore
import importlib_metadata

SDK_VERSION = importlib_metadata.version("sagemaker")
OS_NAME = platform.system() or "UnresolvedOS"
OS_VERSION = platform.release() or "UnresolvedOSVersion"
PYTHON_VERSION = "{}.{}.{}".format(
    sys.version_info.major, sys.version_info.minor, sys.version_info.micro
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: aws/sagemaker-python-sdk
Commit Name: ede60e7dd71acede36279ff7db0905df2f1329b1
Time: 2020-01-20
Author: benjamin@python.org
File Name: src/sagemaker/user_agent.py
Class Name:
Method Name:


Project Name: recipy/recipy
Commit Name: 8faa8dde37902c58a59b73632479c5d592ff753d
Time: 2016-09-20
Author: robin@rtwilson.com
File Name: recipyCommon/libraryversions.py
Class Name:
Method Name: get_version


Project Name: aws/sagemaker-python-sdk
Commit Name: ede60e7dd71acede36279ff7db0905df2f1329b1
Time: 2020-01-20
Author: benjamin@python.org
File Name: src/sagemaker/__init__.py
Class Name:
Method Name: