7bae3828c7149d6d2a409c1236f25f699be92b66,pfnopt/storage/rdb.py,RDBStorage,get_all_trials,#RDBStorage#Any#,245

Before Change


        trials = self.session.query(Trial). \
            filter(Trial.study_id == study_id).all()

        return [self.get_trial(t.trial_id) for t in trials]

    def close(self):
        // type: () -> None

After Change


        // type: (int) -> List[trial_module.Trial]

        trials = self.session.query(Trial).filter(Trial.study_id == study_id).all()
        params = self.session.query(TrialParam).join(Trial). \
            filter(Trial.study_id == study_id).all()
        values = self.session.query(TrialValue).join(Trial). \
            filter(Trial.study_id == study_id).all()

        return self._merge_queried_results(trials, params, values)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: pfnet/optuna
Commit Name: 7bae3828c7149d6d2a409c1236f25f699be92b66
Time: 2018-03-13
Author: sano@preferred.jp
File Name: pfnopt/storage/rdb.py
Class Name: RDBStorage
Method Name: get_all_trials


Project Name: thenetcircle/dino
Commit Name: 614069a65b0c047aa5382cbde291c768bb1df5db
Time: 2016-11-04
Author: oscar.eriks@gmail.com
File Name: dino/db/rdbms/handler.py
Class Name: DatabaseRdbms
Method Name: remove_current_rooms_for_user


Project Name: pfnet/optuna
Commit Name: 93c1b1325065e22bf3aa785ee00bbcdab515e604
Time: 2020-11-16
Author: imamura@ms.k.u-tokyo.ac.jp
File Name: optuna/storages/_rdb/storage.py
Class Name: RDBStorage
Method Name: _update_trial


Project Name: mlflow/mlflow
Commit Name: 9abf61cedb2d84b200eec76d8e036d8c92243e94
Time: 2020-07-13
Author: hkawamura0130@gmail.com
File Name: mlflow/store/model_registry/sqlalchemy_store.py
Class Name: SqlAlchemyStore
Method Name: transition_model_version_stage