6007917bec1b57a81185e08b50e260e60f92df76,lib/streamlit/caseconverters.py,,convert_dict_keys,#Any#Any#,53

Before Change


    
    for k, v in dic.items():
        converted_key = func(k)
        if converted_key == k: continue

        dic.pop(k)

        if type(v) is dict:
            dic[converted_key] = convert_dict_keys(func, v)

After Change


        converted by `func`.

    
    out_dict = dict()
    for k, v in in_dict.items():
        converted_key = func(k)

        if type(v) is dict:
            out_dict[converted_key] = convert_dict_keys(func, v)
        else:
            out_dict[converted_key] = v
    return out_dict
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: streamlit/streamlit
Commit Name: 6007917bec1b57a81185e08b50e260e60f92df76
Time: 2018-10-16
Author: thiagot@gmail.com
File Name: lib/streamlit/caseconverters.py
Class Name:
Method Name: convert_dict_keys


Project Name: tryolabs/luminoth
Commit Name: 12bba41d0a8f8eb2f236f7efdd4f656338c1281b
Time: 2018-09-04
Author: agustin@tryolabs.com
File Name: luminoth/tools/dataset/readers/object_detection/csv_reader.py
Class Name: CSVReader
Method Name: _get_records


Project Name: ray-project/ray
Commit Name: 50784e249660f84011aee464d163784741337d28
Time: 2020-09-16
Author: fyrestone@outlook.com
File Name: dashboard/head.py
Class Name: DashboardHead
Method Name: _get_nodes