45dd2904ef2fae3d16bf61bf10ba722df50c0ec1,plotnine/aes.py,,rename_aesthetics,#Any#,142

Before Change


    }

    if isinstance(obj, dict):
        for eng, us in lookup.items():
            with suppress(KeyError):
                obj[us] = obj.pop(eng)
    else:
        obj = [lookup[x] if x in lookup else x for x in obj]
    return obj

After Change


    
    if isinstance(obj, dict):
        for name in obj:
            new_name = name.replace("colour", "color")
            if name != new_name:
                obj[new_name] = obj.pop(name)
    else:
        obj = [name.replace("colour", "color") for name in obj]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: has2k1/plotnine
Commit Name: 45dd2904ef2fae3d16bf61bf10ba722df50c0ec1
Time: 2019-03-09
Author: has2k1@gmail.com
File Name: plotnine/aes.py
Class Name:
Method Name: rename_aesthetics


Project Name: OpenMined/PySyft
Commit Name: 29d4c8008bf062f0e90b0c0653907bed2ee3d48b
Time: 2021-02-02
Author: xvtongye1986@163.com
File Name: src/syft/core/node/domain/client.py
Class Name: RequestQueueClient
Method Name: clear_handlers


Project Name: facebookresearch/Horizon
Commit Name: 03acf3cd9eeaed74b415aaf86178751bd4a212fa
Time: 2019-07-16
Author: jjg@fb.com
File Name: ml/rl/readers/data_streamer.py
Class Name:
Method Name: pin_memory