3e96b208fe5bc38223eb453b68a03dae51a33544,lib/streamlit/caseconverters.py,,to_lower_camel_case,#Any#,19

Before Change


    
    titleCaseWords = [w for w in snake_case_str.title().split("_")]
    if titleCaseWords:
        return titleCaseWords[0].lower() + "".join(titleCaseWords[1:])
    else:
        return ""

After Change


        foo_bar -> fooBar
        fooBar -> foobar
    
    words = snake_case_str.split("_")
    if len(words) > 1:
        capitalized = [w.title() for w in words]
        capitalized[0] = words[0]
        return "".join(capitalized)
    else:
        return snake_case_str
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: streamlit/streamlit
Commit Name: 3e96b208fe5bc38223eb453b68a03dae51a33544
Time: 2018-10-22
Author: thiagot@gmail.com
File Name: lib/streamlit/caseconverters.py
Class Name:
Method Name: to_lower_camel_case


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: c30a1ba3ebde90f3466a92a921674f9d90b8104d
Time: 2018-12-03
Author: ehankland@google.com
File Name: perfkitbenchmarker/providers/aws/aws_disk.py
Class Name:
Method Name: EbsDriveIsNvme


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: c30a1ba3ebde90f3466a92a921674f9d90b8104d
Time: 2018-12-03
Author: ehankland@google.com
File Name: perfkitbenchmarker/providers/aws/aws_disk.py
Class Name:
Method Name: LocalDriveIsNvme