f65356ce7e624cea941a636a1cb2c912e9ecc186,lingpy/data/ipa/sampa.py,,,#,4

Before Change



for _line in xsdata.split("\n"):
    _line = _line.strip()
    if not _line or _line[0] == "//":
        continue
    _key, _val = _line.split()
    try:
        assert _key not in xs 
    except:
        sys.stderr.write(_key + "\n")

After Change



for line in f:
    line = line.strip("\n").strip("\r")
    if line and not line.startswith("//"):
        key,val = line.split("\t")
        try:
            assert key not in xs
        except:
            sys.stderr.write(key + "\n")
            sys.stderr.flush()
        _xsKeys.append(key)
        xs[key] = eval(""+val+"")

_kk = []
for _k in _xsKeys:
    _kk.append(re.escape(_k))
_kk.sort(reverse = True)  // long before short
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: lingpy/lingpy
Commit Name: f65356ce7e624cea941a636a1cb2c912e9ecc186
Time: 2012-11-19
Author: mattis.list@gmail.com
File Name: lingpy/data/ipa/sampa.py
Class Name:
Method Name:


Project Name: scipy/scipy
Commit Name: e5b8e81d2d33823142cc88eed6a5368c8e283a98
Time: 2017-09-13
Author: apbard@users.noreply.github.com
File Name: scipy/spatial/distance.py
Class Name:
Method Name: pdist


Project Name: scipy/scipy
Commit Name: e5b8e81d2d33823142cc88eed6a5368c8e283a98
Time: 2017-09-13
Author: apbard@users.noreply.github.com
File Name: scipy/spatial/distance.py
Class Name:
Method Name: cdist