857cb1f38abfc3f467b6a8e53ae54365e05fcff2,deeplabcut/generate_training_dataset/labeling_toolbox.py,MainFrame,browseDir,#MainFrame#Any#,348

Before Change


        oldBodyParts = self.dataFrame.columns.get_level_values(1)
        _, idx = np.unique(oldBodyParts, return_index=True)
        oldbodyparts2plot =  list(oldBodyParts[np.sort(idx)])
        self.new_bodyparts =  list(set(self.bodyparts) - set(oldbodyparts2plot))

// Checking if user added a new label
        if self.new_bodyparts==[]: // i.e. no new label

After Change


        oldBodyParts = self.dataFrame.columns.get_level_values(1)
        _, idx = np.unique(oldBodyParts, return_index=True)
        oldbodyparts2plot =  list(oldBodyParts[np.sort(idx)])
        self.new_bodyparts =  [x for x in self.bodyparts if x not in oldbodyparts2plot ]
// Checking if user added a new label
        if self.new_bodyparts==[]: // i.e. no new label
            self.figure,self.axes,self.canvas,self.toolbar = self.image_panel.drawplot(self.img,img_name,self.iter,self.index,self.bodyparts,self.colormap)
            self.choiceBox,self.rdb,self.slider,self.checkBox = self.choice_panel.addRadioButtons(self.bodyparts,self.file,self.markerSize)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: AlexEMG/DeepLabCut
Commit Name: 857cb1f38abfc3f467b6a8e53ae54365e05fcff2
Time: 2019-02-23
Author: amathis@fas.harvard.edu
File Name: deeplabcut/generate_training_dataset/labeling_toolbox.py
Class Name: MainFrame
Method Name: browseDir


Project Name: dmlc/gluon-nlp
Commit Name: 03b0e7061cf477fbeccb9c128ee76603df582d86
Time: 2018-09-04
Author: leonard@lausen.nl
File Name: scripts/word_embeddings/evaluate_pretrained.py
Class Name:
Method Name: load_embedding_from_path


Project Name: NervanaSystems/nlp-architect
Commit Name: 20411b7c433f00789cfbbf6200de448407af2bb4
Time: 2018-06-04
Author: jonathan.mamou@intel.com
File Name: set_expansion_demo/set_expand.py
Class Name: SetExpand
Method Name: get_vocab