8e3d355fb48beb2e90c50e7573bc521532ac9811,mystic/coupler.py,,or_,#,211

Before Change


    
    k = settings.setdefault("k", 1)
    if k is None: del settings["k"]
    ptype = settings.pop("ptype", None)
    if ptype is None:
        from mystic.penalty import linear_equality as ptype
    penalty = lambda x: min(p(x) for p in penalties)
    pf = ptype(penalty, **settings)(lambda x:0.)

After Change


    
    k = settings.setdefault("k", 1)
    if k is None: del settings["k"]
    if "ptype" in settings:
        ptype = settings["ptype"]; del settings["ptype"]
    else: ptype = None
    if ptype is None:
        from mystic.penalty import linear_equality as ptype
    penalty = lambda x: min(p(x) for p in penalties)
    pf = ptype(penalty, **settings)(lambda x:0.)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: uqfoundation/mystic
Commit Name: 8e3d355fb48beb2e90c50e7573bc521532ac9811
Time: 2017-06-25
Author: mmckerns@968178ea-60bd-409e-af13-df8a517b6005
File Name: mystic/coupler.py
Class Name:
Method Name: or_


Project Name: uqfoundation/mystic
Commit Name: 8e3d355fb48beb2e90c50e7573bc521532ac9811
Time: 2017-06-25
Author: mmckerns@968178ea-60bd-409e-af13-df8a517b6005
File Name: mystic/coupler.py
Class Name:
Method Name: not_


Project Name: uqfoundation/mystic
Commit Name: 8e3d355fb48beb2e90c50e7573bc521532ac9811
Time: 2017-06-25
Author: mmckerns@968178ea-60bd-409e-af13-df8a517b6005
File Name: mystic/coupler.py
Class Name:
Method Name: and_