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

Before Change


                g_set.update(children[g])

        // fill GRAMMEME_INDICES and GRAMMEME_INCOMPATIBLE
        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)


registry = dict()

for tag_type in [OpencorporaTag, ]:
    registry[tag_type.FORMAT] = tag_type

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: SheffieldML/GPy
Commit Name: 12dba962f123f01795dec10bbd29a2e07940a944
Time: 2015-10-12
Author: ibinbei@gmail.com
File Name: GPy/kern/src/add.py
Class Name: Add
Method Name: input_sensitivity


Project Name: IndicoDataSolutions/Enso
Commit Name: aa4f9c2e83e745405b90f18609b33218f60afb4f
Time: 2018-09-06
Author: benlt@hotmail.co.uk
File Name: enso/experiment/tfidf.py
Class Name: TfidfLogisticRegression
Method Name: predict