d21d4b016501405e6b7a6e660b1add3ccd2ac40d,optuna/storages/_rdb/storage.py,RDBStorage,__setstate__,#RDBStorage#Any#,134

Before Change


        try:
            self.engine = create_engine(self.url, **self.engine_kwargs)
        except ImportError as e:
            raise ImportError(
                "Failed to import DB access module for the specified storage URL. "
                "Please install appropriate one. (The actual import error is: " + str(e) + ".)"
            )

        self.scoped_session = orm.scoped_session(orm.sessionmaker(bind=self.engine))
        models.BaseModel.metadata.create_all(self.engine)
        self._version_manager = _VersionManager(self.url, self.engine, self.scoped_session)

After Change


        try:
            self.engine = create_engine(self.url, **self.engine_kwargs)
        except ImportError as e:
            raise ImportError(
                "Failed to import DB access module for the specified storage URL. "
                "Please install appropriate one."
            ) from e

        self.scoped_session = orm.scoped_session(orm.sessionmaker(bind=self.engine))
        models.BaseModel.metadata.create_all(self.engine)
        self._version_manager = _VersionManager(self.url, self.engine, self.scoped_session)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: pfnet/optuna
Commit Name: d21d4b016501405e6b7a6e660b1add3ccd2ac40d
Time: 2020-09-02
Author: 20610905+akihironitta@users.noreply.github.com
File Name: optuna/storages/_rdb/storage.py
Class Name: RDBStorage
Method Name: __setstate__


Project Name: keras-team/keras
Commit Name: 1b7800aceb1b2672630e067425790c3c9769e5f2
Time: 2017-01-12
Author: francois.chollet@gmail.com
File Name: keras/applications/audio_conv_utils.py
Class Name:
Method Name: preprocess_input


Project Name: pfnet/optuna
Commit Name: d21d4b016501405e6b7a6e660b1add3ccd2ac40d
Time: 2020-09-02
Author: 20610905+akihironitta@users.noreply.github.com
File Name: optuna/storages/_rdb/storage.py
Class Name: RDBStorage
Method Name: __init__