05cb9508a1281d02de8009fe1d333a26670fe966,src/orion/storage/track.py,Track,__init__,#Track#Any#,32

Before Change


    Forward declaration because of a weird factory bug where Track is not found

    def __init__(self, uri):
        assert False, "This should not be called"


HAS_TRACK = False
REASON = None

After Change


            raise ImportError("Track is not installed!")

        self.uri = uri
        self.options = parse_uri(uri)["query"]

        self.client = TrackClient(uri)
        self.backend = self.client.protocol
        self.project = None
        self.group = None
        self.objective = self.options.get("objective")
        self.lies = dict()
        assert self.objective is not None, "An objective should be defined!"

    def _get_project(self, name):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: Epistimio/orion
Commit Name: 05cb9508a1281d02de8009fe1d333a26670fe966
Time: 2021-03-30
Author: breuleux@gmail.com
File Name: src/orion/storage/track.py
Class Name: Track
Method Name: __init__


Project Name: Epistimio/orion
Commit Name: 3860c9c27e43d880370c714944043d63cfa2097d
Time: 2021-04-06
Author: xavier.bouthillier@umontreal.ca
File Name: src/orion/storage/track.py
Class Name: Track
Method Name: __init__


Project Name: home-assistant/home-assistant
Commit Name: bc0eb9bf32f6493847e291e2506f99e0a0d2ce24
Time: 2021-03-19
Author: dk891@gmx.de
File Name: tests/components/uvc/test_camera.py
Class Name: TestUVCSetup
Method Name: test_setup_full_config


Project Name: Epistimio/orion
Commit Name: 05cb9508a1281d02de8009fe1d333a26670fe966
Time: 2021-03-30
Author: breuleux@gmail.com
File Name: src/orion/storage/track.py
Class Name: Track
Method Name: __init__