58f3386dc1878e9d4ef38552c35c3c7f8909d95b,mpl_smart_dates.py,,test_interval,#,167

Before Change



def test_interval(start, end, interval, desc):

    print(start, end, interval)
    if interval == "sec":
        delta = datetime.timedelta(seconds=1)
    elif interval == "min":
        delta = datetime.timedelta(minutes=1)

After Change



    if interval[0].isdigit():
        import re
        match = re.match("(\d+)(.+)", interval)
        mult = int(match.group(1))
        interval = match.group(2)
    else:
        mult = 1

    if interval == "sec":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: akkana/scripts
Commit Name: 58f3386dc1878e9d4ef38552c35c3c7f8909d95b
Time: 2019-05-10
Author: akkana@shallowsky.com
File Name: mpl_smart_dates.py
Class Name:
Method Name: test_interval


Project Name: shijieS/SST
Commit Name: b613f9a4750fdbe6eff1adb82b803b83a5e160c8
Time: 2018-05-29
Author: 1029783071@qq.com
File Name: tools/compare_tools.py
Class Name: CompareTools
Method Name: run


Project Name: deepinsight/insightface
Commit Name: fd10b74b45692e53047149cb4d526067845b4a7d
Time: 2020-11-06
Author: guojia@gmail.com
File Name: deploy/test.py
Class Name:
Method Name: