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

Function eval_order

hardness_eval.py:722–731  ·  view source on GitHub ↗
(pred, label)

Source from the content-addressed store, hash-verified

720
721
722def eval_order(pred, label):
723 pred_total = label_total = cnt = 0
724 if len(pred['orderBy']) > 0:
725 pred_total = 1
726 if len(label['orderBy']) > 0:
727 label_total = 1
728 if len(label['orderBy']) > 0 and pred['orderBy'] == label['orderBy'] and \
729 ((pred['limit'] is None and label['limit'] is None) or (pred['limit'] is not None and label['limit'] is not None)):
730 cnt = 1
731 return label_total, pred_total, cnt
732
733
734def eval_and_or(pred, label):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected