001365ce415f70cec6c1161edb15f1c22dccd8cf,models/ui.py,UI,recording_thread,#UI#,61
Before Change
for i in readings:
total+= 100*abs(float(i)-prev)
prev = float(i)
recording = map(abs,readings)
power = sum(recording)
self.buffer[0].append(power)
self.buffer[1].append(total/power)
After Change
prev = float(i)
recording = map(lambda x: abs(x-sum(readings)/len(readings)),readings)
power = sum(recording)
print(sum(readings) /len(readings))
self.buffer[0].append(power)
self.buffer[1].append(total/power)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: arjo129/uSpeech
Commit Name: 001365ce415f70cec6c1161edb15f1c22dccd8cf
Time: 2017-06-15
Author: arjo129@gmail.com
File Name: models/ui.py
Class Name: UI
Method Name: recording_thread
Project Name: enthought/chaco
Commit Name: a50b9c226176cbaeb97b666be08dd5f4a1af881f
Time: 2011-09-15
Author: warren.weckesser@enthought.com
File Name: chaco/tools/data_label_tool.py
Class Name: DataLabelTool
Method Name: dragging
Project Name: erikbern/ann-benchmarks
Commit Name: e192e7c8155546ab549773cdaa2de943b0614038
Time: 2018-09-30
Author: maau@itu.dk
File Name: ann_benchmarks/algorithms/bruteforce.py
Class Name: BruteForceBLAS
Method Name: fit