100a144342153b55e56ef803b8436164fba257e2,polyaxon/stores/service.py,StoresService,create_experiment_job_logs_path,#Any#Any#Any#Any#,227

Before Change


    @classmethod
    def create_experiment_job_logs_path(cls, experiment_job_name, temp, persistence="default"):
        if temp:
            check_archive_path(settings.LOGS_ARCHIVE_ROOT)
            return create_experiment_job_path(experiment_job_name, settings.LOGS_ARCHIVE_ROOT)
        persistence_logs = cls.get_logs_path(persistence=persistence)
        return create_experiment_job_path(experiment_job_name, persistence_logs)

After Change


        import conf

        if temp:
            check_archive_path(conf.get("LOGS_ARCHIVE_ROOT"))
            return create_experiment_job_path(experiment_job_name, conf.get("LOGS_ARCHIVE_ROOT"))
        persistence_logs = cls.get_logs_path(persistence=persistence)
        return create_experiment_job_path(experiment_job_name, persistence_logs)

    @classmethod
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: polyaxon/polyaxon
Commit Name: 100a144342153b55e56ef803b8436164fba257e2
Time: 2019-01-10
Author: mouradmourafiq@gmail.com
File Name: polyaxon/stores/service.py
Class Name: StoresService
Method Name: create_experiment_job_logs_path


Project Name: polyaxon/polyaxon
Commit Name: 100a144342153b55e56ef803b8436164fba257e2
Time: 2019-01-10
Author: mouradmourafiq@gmail.com
File Name: polyaxon/stores/service.py
Class Name: StoresService
Method Name: create_experiment_job_logs_path


Project Name: polyaxon/polyaxon
Commit Name: 100a144342153b55e56ef803b8436164fba257e2
Time: 2019-01-10
Author: mouradmourafiq@gmail.com
File Name: polyaxon/stores/service.py
Class Name: StoresService
Method Name: create_experiment_logs_path


Project Name: polyaxon/polyaxon
Commit Name: 100a144342153b55e56ef803b8436164fba257e2
Time: 2019-01-10
Author: mouradmourafiq@gmail.com
File Name: polyaxon/stores/service.py
Class Name: StoresService
Method Name: create_job_logs_path