01c3a882833dc5031df2f4440717870b35e4833a,utilities/constraints_classes.py,ConstraintSearch,list_subjects_potential,#ConstraintSearch#Any#,30

Before Change


            name_pot_temp = name[
                            index_init: index_constraint[sort_indices[i]]]
            for c in self.list_clean:
                if c in name_pot_temp:
                    name_pot_temp = name_pot_temp.replace(c, "")
            name_pot.append(name_pot_temp)
            index_init = index_constraint[sort_indices[i]] + \
                         len(self.list_contain[sort_indices[i]])
        name_pot.append(name[index_init:])

After Change


            if c in name_temp:
                name_temp = name_temp.rstrip(c)
                name_temp = name_temp.lstrip(c)
                index_clean = name_temp.find(c)
                if index_clean == 0:
                    name_temp = name_temp[len(c):]
        name_pot.append(name_temp)
        return name_pot

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: NifTK/NiftyNet
Commit Name: 01c3a882833dc5031df2f4440717870b35e4833a
Time: 2017-05-29
Author: wenqi.li@ucl.ac.uk
File Name: utilities/constraints_classes.py
Class Name: ConstraintSearch
Method Name: list_subjects_potential


Project Name: nltk/nltk
Commit Name: 0bcc8da0344cddc9dfff82a788df519c19489500
Time: 2017-10-17
Author: lyyb46@gmail.com
File Name: nltk/tokenize/treebank.py
Class Name: TreebankWordTokenizer
Method Name: span_tokenize


Project Name: AllenCellModeling/pytorch_fnet
Commit Name: 2b4dfea5674a6b6b4d6556d7546a387f41f947fa
Time: 2017-11-10
Author: chek.o@outlook.com
File Name: tools/colorize_tifs.py
Class Name:
Method Name: