f237f9688e06ae46fe98d195b134d01f5b38b2e0,Orange/widgets/data/owselectrows.py,SelectRowsContextHandler,match,#SelectRowsContextHandler#Any#Any#Any#Any#,76

Before Change


        all_vars.update(metas)
        // Use this after 2022/2/2:
        // if all(all_vars.get(name) == tpe for name, tpe, *_ in conditions):
        if all(all_vars.get(name) == tpe if len(rest) == 2 else name in all_vars
               for name, tpe, *rest in conditions):
            return 0.5
        return self.NO_MATCH


class FilterDiscreteType(enum.Enum):

After Change


                   // After 2022/2/2 remove this line:
                   if len(rest) == 2 else name in all_vars
                   for name, tpe, *rest in conditions]
        if any(matched):
            return 0.5 * sum(matched) / len(matched)
        return self.NO_MATCH

    def filter_value(self, setting, data, domain, attrs, metas):
        if setting.name != "conditions":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: biolab/orange3
Commit Name: f237f9688e06ae46fe98d195b134d01f5b38b2e0
Time: 2020-05-05
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/data/owselectrows.py
Class Name: SelectRowsContextHandler
Method Name: match


Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 970491cd9b3cb21b043c22b50b4d09f9dd2481a7
Time: 2018-10-19
Author: jan@motl.us
File Name: category_encoders/woe.py
Class Name: WOEEncoder
Method Name: _score


Project Name: studioml/studio
Commit Name: 247c3ee18a5a18dc181afa25224a641cd28e2dbb
Time: 2017-07-17
Author: peter.zhokhov@sentient.ai
File Name: studio/model.py
Class Name: Experiment
Method Name: get_model