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

Before Change



            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()

After Change


                .options(*self._get_eager_experiment_query_options()) \
                .filter(
                    SqlExperiment.name == experiment_name,
                    SqlExperiment.lifecycle_stage.in_(stages)) \
                .one_or_none()
            return experiment.to_mlflow_entity() if experiment is not None else None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: pfnet/optuna
Commit Name: 32f2649c5cda9acca3354e3246d798d8e0cec5dc
Time: 2020-07-04
Author: hiroyuki.vincent.yamazaki@gmail.com
File Name: optuna/storages/_rdb/storage.py
Class Name: RDBStorage
Method Name: _get_trials


Project Name: home-assistant/home-assistant
Commit Name: a2e45b8fdde315b756691b4ae573ad55f55dc002
Time: 2016-07-02
Author: rhooper@toybox.ca
File Name: homeassistant/components/history.py
Class Name:
Method Name: get_states