23d15da98ec99cf2b848f192c0763b55e1dbfc04,berrynet/client/camera.py,,main,#,82

Before Change


        while True:
            status, im = capture.read()
            if (status is False):
                logger.warn("ERROR: Failure happened when reading frame")

            counter += 1
            if counter == interval:
                logger.debug("Drop frames: {}".format(counter-1))

After Change


                    pass
            else:
                fail_counter += 1
                logger.critical("ERROR: Failure //{} happened when reading frame".format(fail_counter))

                // Re-create capture.
                capture.release()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: DT42/BerryNet
Commit Name: 23d15da98ec99cf2b848f192c0763b55e1dbfc04
Time: 2020-02-15
Author: bofu@dt42.io
File Name: berrynet/client/camera.py
Class Name:
Method Name: main


Project Name: deepmipt/DeepPavlov
Commit Name: 63801e6ec825135fa8c126ed4dd43f1269624f1a
Time: 2018-01-26
Author: ol.gure@gmail.com
File Name: deeppavlov/core/models/serializable.py
Class Name: Serializable
Method Name: __init__


Project Name: deepmipt/DeepPavlov
Commit Name: 6b5ba2416fc16bbc3b35dfe337368dc6427bd2b2
Time: 2018-01-29
Author: yoptar@gmail.com
File Name: deeppavlov/core/models/tf_model.py
Class Name: TFModel
Method Name: get_checkpoint_state