39d9d8d2079189e4298c9efc8463f51b4ca9d281,labelme/widgets/canvas.py,Canvas,intersectionPoint,#Canvas#Any#Any#,554
Before Change
(size.width() - 1, 0),
(size.width() - 1, size.height() - 1),
(0, size.height() - 1)]
x1, y1 = p1.x(), p1.y()
x2, y2 = p2.x(), p2.y()
d, i, (x, y) = min(self.intersectingEdges((x1, y1), (x2, y2), points))
x3, y3 = points[i]
After Change
// FIXME: below clipping is unnecessary on Linux and Mac,
// but required on Windows to avoid error in intersectingEdges
x1 = min(max(p1.x(), 0), size.width() - 1)
x2 = min(max(p2.x(), 0), size.width() - 1)
y1 = min(max(p1.y(), 0), size.height() - 1)
y2 = min(max(p2.y(), 0), size.height() - 1)
d, i, (x, y) = min(self.intersectingEdges((x1, y1), (x2, y2), points))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: wkentaro/labelme
Commit Name: 39d9d8d2079189e4298c9efc8463f51b4ca9d281
Time: 2019-08-23
Author: www.kentaro.wada@gmail.com
File Name: labelme/widgets/canvas.py
Class Name: Canvas
Method Name: intersectionPoint
Project Name: evilsocket/pwnagotchi
Commit Name: 0aa4f95235a939862142cc9f6e65c5a2a500378d
Time: 2019-10-17
Author: speeskonijn@gmail.com
File Name: pwnagotchi/plugins/default/memtemp.py
Class Name:
Method Name: on_ui_setup
Project Name: matplotlib/matplotlib
Commit Name: 252f4135799027f9ae887e8fd87e3af906187a22
Time: 2018-07-16
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_qt5agg.py
Class Name: FigureCanvasQTAgg
Method Name: paintEvent