346ee8f1bf71885de5ff56641770d66611219a4e,tests/test_experiment.py,TestExperimentConfigs,create_pod_labels,#,84

Before Change



    @staticmethod
    def create_pod_labels():
        project = "test-id1"
        experiment = uuid.uuid4().hex
        task_type = "master"
        return {"project": project,
                "experiment": experiment,
                "task_type": task_type,
                "task_idx": "0",
                "task": TASK_NAME.format(project="test-id1",
                                         experiment=experiment,
                                         task_type=task_type,
                                         task_idx="0"),
                "job_id": uuid.uuid4().hex,
                "role": "polyaxon-worker",
                "type": "polyaxon-experiment"
                }

    @classmethod
    def create_pod_state(cls):
        event_type = "ADDED"

After Change


        project_uuid = uuid.uuid4().hex
        experiment_group_uuid = uuid.uuid4().hex
        experiment_uuid = uuid.uuid4().hex
        job_uuid = uuid.uuid4().hex
        task_type = "master"
        return {"project_name": project_name,
                "experiment_group_name": experiment_group_name,
                "experiment_name": experiment_name,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: polyaxon/polyaxon
Commit Name: 346ee8f1bf71885de5ff56641770d66611219a4e
Time: 2017-12-19
Author: mouradmourafiq@gmail.com
File Name: tests/test_experiment.py
Class Name: TestExperimentConfigs
Method Name: create_pod_labels


Project Name: jazzband/django-debug-toolbar
Commit Name: f0d0ddbada065ec0ff4fc64aed9d2f9ba48ba5a3
Time: 2013-11-15
Author: aymeric.augustin@m4x.org
File Name: debug_toolbar/toolbar.py
Class Name: DebugToolbar
Method Name: store


Project Name: pantsbuild/pants
Commit Name: c7e6e4cfd90d2d05bb9c9dffd519b32e9a1f15f6
Time: 2015-10-23
Author: benjyw@gmail.com
File Name: src/python/pants/reporting/html_reporter.py
Class Name: HtmlReporter
Method Name: _render_message