17ea7784247c1b5dc68109a2bb27e377c3797238,labelme/canvas.py,Canvas,mouseMoveEvent,#Canvas#Any#,119

Before Change


                    "Click & drag to move shape "%s"" % shape.label)
                self.setStatusTip(self.toolTip())
                self.overrideCursor(CURSOR_GRAB)
                self.update()
                break
        else:  // Nothing found, clear highlights, reset state.
            if self.hShape:
                self.hShape.highlightClear()

After Change


                self.setStatusTip(self.toolTip())
                self.update()
                break
            elif index2 is not None:
                if self.selectedVertex():
                    self.hShape.highlightClear()
                self.addVertex, self.hShape = index2, shape
                self.hVertex = None
                self.overrideCursor(CURSOR_DRAW)
                self.setToolTip("Click & drag to add point")
                self.setStatusTip(self.toolTip())
                self.update()
                break
            elif shape.containsPoint(pos):
                if self.selectedVertex():
                    self.hShape.highlightClear()
                self.hVertex, self.addVertex, self.hShape = None, None, shape
                self.setToolTip(
                    "Click & drag to move shape "%s"" % shape.label)
                self.setStatusTip(self.toolTip())
                self.overrideCursor(CURSOR_GRAB)
                self.update()
                break
        else:  // Nothing found, clear highlights, reset state.
            if self.hShape:
                self.hShape.highlightClear()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: wkentaro/labelme
Commit Name: 17ea7784247c1b5dc68109a2bb27e377c3797238
Time: 2018-06-14
Author: onlyalex1995@gmail.com
File Name: labelme/canvas.py
Class Name: Canvas
Method Name: mouseMoveEvent


Project Name: GPflow/GPflow
Commit Name: bf443c0d6de7ca1bebae6290ca55e92b7edcf0dc
Time: 2016-06-24
Author: james.hensman@gmail.com
File Name: GPflow/model.py
Class Name: Model
Method Name: _optimize_tf


Project Name: ClimbsRocks/auto_ml
Commit Name: 8099388eaca5a1a17affc8729ace64231699c930
Time: 2017-03-03
Author: ClimbsBytes@gmail.com
File Name: auto_ml/utils_models.py
Class Name:
Method Name: get_model_from_name


Project Name: uber/ludwig
Commit Name: 9de6ee32f0e2e6cc6157f0772aa8c28a8d662fe8
Time: 2019-02-01
Author: w4nderlust@gmail.com
File Name: ludwig/models/model.py
Class Name: Model
Method Name: batch_evaluation


Project Name: ray-project/ray
Commit Name: 6f9d39fb3ee94510dc29bef2c4de855412a5575b
Time: 2021-02-10
Author: architkulkarni@users.noreply.github.com
File Name: python/ray/monitor.py
Class Name: Monitor
Method Name: update_load_metrics


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: de0194d364a3bc339105171eefb321d92b4f3c4e
Time: 2018-06-29
Author: akshayubhat@gmail.com
File Name: server/dvalib/retriever.py
Class Name: FaissFlatRetriever
Method Name: nearest