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

Before Change


        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")
        entity_effect |= fixed_effect

After Change


        effects = {"EntityEffect":False, "FixedEffect":False, "TimeEffect":False}
        for term in mod_descr.rhs_termlist:
            if term.name() in effects:
                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"]
        time_effect = effects["TimeEffect"]
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: streamlit/streamlit
Commit Name: 5dd967cff860a345b9b710c3a6c90410ca232568
Time: 2019-01-17
Author: thiagot@gmail.com
File Name: lib/streamlit/__main__.py
Class Name:
Method Name: kill_proxy


Project Name: streamlit/streamlit
Commit Name: 49e69f4d021c2c71a360ba7acf2a5453dd11919f
Time: 2019-01-25
Author: treuille@users.noreply.github.com
File Name: lib/streamlit/__main__.py
Class Name:
Method Name: kill_proxy