e0dd5a855870e007cc7c8900d79d73e8d56ce971,homeassistant/components/recorder/__init__.py,Recorder,run,#Recorder#,162

Before Change


                    try:
                        States.record_state(
                            Session,
                            event.data["entity_id"],
                            event.data.get("new_state"),
                            event_id)
                        break

After Change



            for _ in range(0, RETRIES):
                try:
                    session.commit()
                    break
                except sqlalchemy.exc.OperationalError as e:
                    log_error(e, retry_wait=QUERY_RETRY_WAIT,
                              rollback=True)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: home-assistant/home-assistant
Commit Name: e0dd5a855870e007cc7c8900d79d73e8d56ce971
Time: 2016-07-11
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/recorder/__init__.py
Class Name: Recorder
Method Name: run


Project Name: dpressel/mead-baseline
Commit Name: 60fd6764c1b29d88b2b8b33fbc5d1f1c1dc9d344
Time: 2018-09-19
Author: sagnik1987@gmail.com
File Name: python/xpctl/sql/backend.py
Class Name: SQLRepo
Method Name: put_model


Project Name: snorkel-team/snorkel
Commit Name: da0dd1052decff8fe2fd6d46a49992a91d7f232f
Time: 2016-09-02
Author: stephenhbach@gmail.com
File Name: snorkel/annotations.py
Class Name: CandidateFeaturizer
Method Name: create