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:

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: 7

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: vatlab/SoS
Commit Name: c927fb8e3d13d8f6de93fc114f03834d4d08fc3d
Time: 2017-07-18
Author: ben.bog@gmail.com
File Name: src/sos/Matlab/kernel.py
Class Name: sos_Matlab
Method Name: get_vars


Project Name: studioml/studio
Commit Name: f31b7ad689b1435e76744af4ff443607643a37fd
Time: 2017-12-28
Author: peter.zhokhov@sentient.ai
File Name: studio/experiment.py
Class Name:
Method Name: create_experiment