f65356ce7e624cea941a636a1cb2c912e9ecc186,lingpy/data/ipa/sampa.py,,,#,4
Before Change
except:
sys.stderr.write(_key + "\n")
sys.stderr.flush()
raise
_xsKeys.append(_key)
xs[_key] = _val;
_kk = []
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
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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: mynlp/ccg2lambda
Commit Name: 66a06524eba0b22d14204baeb2ca6d4c9db7d1d0
Time: 2017-05-12
Author: pascual@nii.ac.jp
File Name: scripts/semantic_types.py
Class Name:
Method Name: convert_coq_to_nltk_type
Project Name: pantsbuild/pants
Commit Name: b2fbf435a7158a02c8199015e0c8a8a794c02f56
Time: 2018-10-03
Author: benjyw@gmail.com
File Name: src/python/pants/auth/basic_auth.py
Class Name: BasicAuth
Method Name: authenticate