4d6712e890c6b6647e320dd893b5e7eed4c76f5d,utils/phonology_json_validator.py,,main,#Any#,32
Before Change
feature_list = feature_types.get(phone[1])
for x in xrange(2, len(phone)):
feature_options = features.get(feature_list[x - 2])
if phone[x] not in feature_options:
STDERR.write("Phone %s not int %s\n" %(phone[x], str(feature_options)))
is_valid = False
After Change
feature_list = feature_types.get(phone[1])
phoneme = phone[0]
expected_feature_list = len(feature_list) + 2
if not len(phone) == len(feature_list) + 2:
STDERR.write("Phoneme %s dose not match its feature types, expected features %s", phoneme, expected_feature_list)
is_valid = False
for x in xrange(2, len(phone)):
feature_type = feature_list[x - 2]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: google/language-resources
Commit Name: 4d6712e890c6b6647e320dd893b5e7eed4c76f5d
Time: 2017-02-09
Author: pasindu@google.com
File Name: utils/phonology_json_validator.py
Class Name:
Method Name: main
Project Name: bokeh/bokeh
Commit Name: beb173d604c9f975b7eed1c6e8e1152a3d4aab12
Time: 2017-04-25
Author: lcanavan@continuum.io
File Name: bokeh/io.py
Class Name:
Method Name: export
Project Name: mailgyc/doudizhu
Commit Name: 001177e85fe09a3a2fd4c30600a42b92902b3d43
Time: 2019-09-30
Author: gaoyc@outlook.com
File Name: doudizhu/apps/account/views.py
Class Name: LoginHandler
Method Name: post