f373fff0861a23f1fb4a82a108cbd7817761083d,linearmodels/panel/model.py,PanelOLS,from_formula,#Any#Any#,152

Before Change


    def from_formula(formula, data):
        na_action = NAAction(on_NA="raise", NA_types=[])
        data = PanelData(data)
        parts = formula.split("~")
        parts[1] = " 0 + " + parts[1]
        parts[1], entity_effect = PanelOLS._parse_effect(parts[1], "EntityEffect")
        parts[1], fixed_effect = PanelOLS._parse_effect(parts[1], "FixedEffect")
        if entity_effect and fixed_effect:
            raise ValueError("Cannot use both FixedEffect and EntityEffect")

After Change


                effects[term.name()] = True
                rm_list.append(term)
        for term in rm_list:
            mod_descr.rhs_termlist.remove(term)

        if effects["EntityEffect"] and effects["FixedEffect"]:
            raise ValueError("Cannot use both FixedEffect and EntityEffect")
        entity_effect = effects["EntityEffect"] or effects["FixedEffect"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: bashtage/linearmodels
Commit Name: f373fff0861a23f1fb4a82a108cbd7817761083d
Time: 2017-03-24
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/panel/model.py
Class Name: PanelOLS
Method Name: from_formula


Project Name: OpenNMT/OpenNMT-py
Commit Name: 70a99a9759c8fb8d5731270639ebf95dd0e02a04
Time: 2018-10-11
Author: vince62s@yahoo.com
File Name: preprocess.py
Class Name:
Method Name: build_save_in_shards_using_shards_size


Project Name: Netflix/vmaf
Commit Name: 4b8fac0f31860b19efdda701920abc60991f2d1f
Time: 2020-11-12
Author: kswanson@netflix.com
File Name: python/vmaf/core/quality_runner.py
Class Name: VmafossExecQualityRunner
Method Name: _get_quality_scores