f38a634a118fe55d6f98ede2d82624f4cba38fcf,mlflow/store/sqlalchemy_store.py,SqlAlchemyStore,get_experiment_by_name,#SqlAlchemyStore#Any#,288

Before Change


        with self.ManagedSessionMaker() as session:
            experiments = self._list_experiments(
                names=[experiment_name], view_type=ViewType.ALL, session=session).all()
            if len(experiments) == 0:
                return None

            if len(experiments) > 1:
                raise MlflowException("Expected only 1 experiment with name={}. Found {}.".format(
                    experiment_name, len(experiments)), INVALID_STATE)

            return experiments[0].to_mlflow_entity()

    def delete_experiment(self, experiment_id):

After Change


                    SqlExperiment.name == experiment_name,
                    SqlExperiment.lifecycle_stage.in_(stages)) \
                .one_or_none()
            return experiment.to_mlflow_entity() if experiment is not None else None

    def delete_experiment(self, experiment_id):
        with self.ManagedSessionMaker() as session:
            experiment = self._get_experiment(session, experiment_id, ViewType.ACTIVE_ONLY)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: mlflow/mlflow
Commit Name: f38a634a118fe55d6f98ede2d82624f4cba38fcf
Time: 2019-09-04
Author: 39497902+dbczumar@users.noreply.github.com
File Name: mlflow/store/sqlalchemy_store.py
Class Name: SqlAlchemyStore
Method Name: get_experiment_by_name


Project Name: mlflow/mlflow
Commit Name: df7cc84746f88cfe6aae3f086ba20b7e19f7c998
Time: 2020-07-20
Author: 52183359+ankitmathur-db@users.noreply.github.com
File Name: mlflow/store/model_registry/sqlalchemy_store.py
Class Name: SqlAlchemyStore
Method Name: _get_sql_model_version


Project Name: mlflow/mlflow
Commit Name: 53296788e0c01903bd3b1d45e54e329691b97c0f
Time: 2019-05-16
Author: 31962564+eedeleon@users.noreply.github.com
File Name: mlflow/utils/rest_utils.py
Class Name:
Method Name: http_request_safe