5166bec9c1f1a4f9ef2f2ded142fb084edd38165,optuna/storages/_rdb/storage.py,,_scoped_session,#Any#Any#,45

Before Change


                "Another one might have committed a record with the same key(s).".format(repr(e))
            )
        else:
            raise
    except SQLAlchemyError as e:
        session.rollback()
        message = (
            "An exception is raised during the commit. "

After Change


                "e.g. exceeding max length. "
                "(The actual exception is as follows: {})".format(repr(e))
            )
            raise optuna.exceptions.StorageInternalError(message).with_traceback(sys.exc_info()[2])
    except SQLAlchemyError as e:
        session.rollback()
        message = (
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pfnet/optuna
Commit Name: 5166bec9c1f1a4f9ef2f2ded142fb084edd38165
Time: 2020-10-24
Author: keisuke.umezawa@gmail.com
File Name: optuna/storages/_rdb/storage.py
Class Name:
Method Name: _scoped_session


Project Name: pantsbuild/pants
Commit Name: b95299f0ad800da564282387887b1529b2fc2434
Time: 2018-06-12
Author: kwlzn@users.noreply.github.com
File Name: src/python/pants/java/nailgun_client.py
Class Name: NailgunClient
Method Name: execute


Project Name: pfnet/optuna
Commit Name: 4c93449cee6b192ba0b135ce29da37db3124e4d8
Time: 2018-09-10
Author: toshihiko.yanase@gmail.com
File Name: pfnopt/storages/rdb/storage.py
Class Name: RDBStorage
Method Name: _commit