b2e3d2222fdff00374c4a4b03beef09a79f01cbc,Software/Python/easygopigo3.py,DistanceSensor,__init__,#DistanceSensor#Any#Any#Any#,2381

Before Change


            raise IOError("Distance Sensor not found")

        self.mutex = None
        if use_mutex is True:
            self.mutex = Mutex()

        self.set_descriptor("Distance Sensor")

    // Returns the values in cms
    def read_mm(self):

After Change


            self.filtered_humidity = []

            // we are using an event so we can close the thread as soon as KeyboardInterrupt is raised
            self.event = threading.Event()
            if self.sensor_type == 0:
                self.set_descriptor("Blue DHT Sensor")
            else:
                self.set_descriptor("White DHT Sensor")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: DexterInd/GoPiGo3
Commit Name: b2e3d2222fdff00374c4a4b03beef09a79f01cbc
Time: 2017-08-18
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DistanceSensor
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: 1f554c8ca1fc56b4830091d7c75aac3056785e9e
Time: 2016-05-26
Author: kwilson@twopensource.com
File Name: src/python/pants/bin/remote_pants_runner.py
Class Name: RemotePantsRunner
Method Name: __init__


Project Name: DexterInd/GoPiGo3
Commit Name: 89d37f85c8bae9d535931b1414eb7fe6fab8adf2
Time: 2017-08-14
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name: DistanceSensor
Method Name: __init__


Project Name: WZBSocialScienceCenter/tmtoolkit
Commit Name: 85534518d042c93a829f75f690acd1aaf4481437
Time: 2020-06-09
Author: markus.konrad@wzb.eu
File Name: tmtoolkit/preprocess/_tmpreproc.py
Class Name: TMPreproc
Method Name: _setup_workers