MCPcopy Create free account
hub / github.com/FlyingFeather/DEA-SQL / eval_order

Function eval_order

single_eval.py:183–192  ·  view source on GitHub ↗
(pred, label)

Source from the content-addressed store, hash-verified

181
182
183def eval_order(pred, label):
184 pred_total = label_total = cnt = 0
185 if len(pred['orderBy']) > 0:
186 pred_total = 1
187 if len(label['orderBy']) > 0:
188 label_total = 1
189 if len(label['orderBy']) > 0 and pred['orderBy'] == label['orderBy'] and \
190 ((pred['limit'] is None and label['limit'] is None) or (pred['limit'] is not None and label['limit'] is not None)):
191 cnt = 1
192 return label_total, pred_total, cnt
193
194
195def eval_and_or(pred, label):

Callers 1

eval_partial_matchMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected