rule_id
stringlengths
36
70
label
stringlengths
17
136
family
stringclasses
8 values
code
stringlengths
25
256
cal_higher_order_history_window_rank_mean_bf53cf0468
rank is at most the mean rank of the last 10
higher_order_history
if len(mainline) < 10: return True total = sum(item.rank for item in mainline[-10:]) return card.rank * 10 <= total
cal_higher_order_history_window_rank_mean_c17f33aacd
rank is at most the mean rank of the last 9
higher_order_history
if len(mainline) < 9: return True total = sum(item.rank for item in mainline[-9:]) return card.rank * 9 <= total
cal_higher_order_history_window_rank_mean_cbfaa7812c
rank is at least the mean rank of the last 12
higher_order_history
if len(mainline) < 12: return True total = sum(item.rank for item in mainline[-12:]) return card.rank * 12 >= total
cal_higher_order_history_window_rank_mean_d7f7175c4c
rank is at least the mean rank of the last 6
higher_order_history
if len(mainline) < 6: return True total = sum(item.rank for item in mainline[-6:]) return card.rank * 6 >= total
cal_higher_order_history_window_seen_attribute_4fddfc8506
candidate avoids a color from the last 2
higher_order_history
if len(mainline) < 2: return True return all(card.color != item.color for item in mainline[-2:])
cal_higher_order_history_window_seen_attribute_a355c57a70
candidate avoids a face status from the last 3
higher_order_history
if len(mainline) < 3: return True return all(card.is_face != item.is_face for item in mainline[-3:])
cal_higher_order_history_window_seen_attribute_f62c015e68
candidate repeats a rank parity from the last 3
higher_order_history
if len(mainline) < 3: return True return any(card.rank % 2 == item.rank % 2 for item in mainline[-3:])