c4537a1a3f223b5129862ae41f1fa955fc6acff9,pymorphy2/tagset.py,OpencorporaTag,_init_restrictions,#Any#Any#,121

Before Change


        for index, (name, parent) in enumerate(dict_grammemes):
            cls.GRAMMEME_INDICES[name] = index
            incompatible = cls.EXTRA_INCOMPATIBLE.get(name, set())
            incompatible = (incompatible | children[parent]) - set([name])

            cls.GRAMMEME_INCOMPATIBLE[name] = frozenset(incompatible)

After Change


        ``OpencorporaTag.GRAMMEME_INCOMPATIBLE`` class attributes.
        
        cls._init_alias_map(dict_grammemes)
        super(OpencorporaTag, cls)._init_restrictions(dict_grammemes)

        GRAMMEME_INDICES = collections.defaultdict(lambda: 0)
        for name, idx in cls.GRAMMEME_INDICES.items():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: kmike/pymorphy2
Commit Name: c4537a1a3f223b5129862ae41f1fa955fc6acff9
Time: 2012-11-23
Author: kmike84@gmail.com
File Name: pymorphy2/tagset.py
Class Name: OpencorporaTag
Method Name: _init_restrictions


Project Name: HazyResearch/fonduer
Commit Name: 8946a24d7c1a21a80ccaf86418c354cf87e84bfa
Time: 2018-09-04
Author: lwhsiao@stanford.edu
File Name: src/fonduer/supervision/labeler.py
Class Name: LabelerUDF
Method Name: apply


Project Name: scipy/scipy
Commit Name: 8aa27bbac3e52d7f214ba22028afcbd4cf13b97d
Time: 2020-07-07
Author: peterbell10@live.co.uk
File Name: scipy/spatial/kdtree.py
Class Name: KDTree
Method Name: query_pairs