117c2ddb13d4ac975eb77a5ecf826012a7008516,solutions/set_expansion/set_expand.py,SetExpand,__id2term,#SetExpand#Any#,85

Before Change


        
        norm = id.replace(self.mark_char, " ")[:-1]
        if self.grouping:
            assert(norm in self.id2rep)
            return self.id2rep[norm]
        return norm

    def get_vocab(self):

After Change


        
        norm = id.replace(self.mark_char, " ")[:-1]
        if self.grouping:
            if norm in self.id2rep:
                return self.id2rep[norm]
            else:
                logger.warning("id://%s//, norm://%s// is not in id2rep")
                return ""
        return norm

    def get_vocab(self):
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: NervanaSystems/nlp-architect
Commit Name: 117c2ddb13d4ac975eb77a5ecf826012a7008516
Time: 2018-08-14
Author: jonathan.mamou@intel.com
File Name: solutions/set_expansion/set_expand.py
Class Name: SetExpand
Method Name: __id2term


Project Name: tensorpack/tensorpack
Commit Name: 55b2e0f1a613e3199870bdb46afbaa3944ff5719
Time: 2020-07-11
Author: ppwwyyxx@users.noreply.github.com
File Name: tensorpack/callbacks/prof.py
Class Name: GPUMemoryTracker
Method Name: _before_train


Project Name: ray-project/ray
Commit Name: 4ab80eafb9d79ffa2f1ba149fc48d1fdd037c14a
Time: 2020-03-09
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/parameter.py
Class Name: RayParams
Method Name: _check_usage