66c44551f903a45b9a2b870c3f7b98390535c36d,ilastik/__init__.py,,convertVersion,#Any#,68

Before Change


def convertVersion(vstring):
    if not isinstance(vstring, str):
        raise Exception("tried to convert non-string version: {}".format(vstring))
    return tuple(int(i) for i in vstring.split("."))


def isVersionCompatible(version):
    Return True if the current project file format is

After Change


    for i in vstring.split("."):
        m = re.search("(\d+)", i)
        assert bool(m), "Don"t understand version component: {}".format( i )
        next_int = int(m.groups()[0])
        int_tuple = int_tuple + (next_int,)
    return int_tuple
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ilastik/ilastik
Commit Name: 66c44551f903a45b9a2b870c3f7b98390535c36d
Time: 2014-04-15
Author: bergs@janelia.hhmi.org
File Name: ilastik/__init__.py
Class Name:
Method Name: convertVersion


Project Name: home-assistant/home-assistant
Commit Name: 9c636ab6fd3eded438e65519a6e118dffc58a701
Time: 2016-08-13
Author: tomi.tuhkanen@iki.fi
File Name: homeassistant/components/media_player/braviatv.py
Class Name:
Method Name: _get_mac_address


Project Name: CellProfiler/CellProfiler
Commit Name: a0f1f391dfe4448067ce7f0f795142a5f5c41661
Time: 2010-05-12
Author: thouis@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/measurements.py
Class Name:
Method Name: find_metadata_tokens