rule_id
stringlengths
16
61
label
stringlengths
9
117
family
stringclasses
13 values
code
stringlengths
21
212
scaled_compositional_hybrid_7d4af87174fd
red cards with rank distance at most 6 of previous
compositional_hybrid
if not mainline: return True prev = mainline[-1] return card.color == "red" and abs(card.rank - prev.rank) <= 6
exp_compositional_hybrid_8fcbc8e54a6e
red nondecreasing; black different parity or rank distance at most 1 [ea@18]
compositional_hybrid
if not mainline: return True prev = mainline[-1] if card.color == "red": return card.rank >= prev.rank return card.rank % 1 != prev.rank % 1 or abs(card.rank - prev.rank) <= 1
scaled_global_history_4dfd0839d666
red when accepted count is 2 modulo 6, black otherwise
global_history
if not mainline: return True return (card.color == "red") == (len(mainline) % 6 == 2)
scaled_global_history_7e4f34a4eea3
red when accepted count is 4 modulo 6, black otherwise
global_history
if not mainline: return True return (card.color == "red") == (len(mainline) % 6 == 4)
scaled_global_history_824fdc5b0a25
red when accepted count is 4 modulo 5, black otherwise
global_history
if not mainline: return True return (card.color == "red") == (len(mainline) % 5 == 4)
scaled_global_history_8fa2f7d675cc
red when accepted count is 5 modulo 6, black otherwise
global_history
if not mainline: return True return (card.color == "red") == (len(mainline) % 6 == 5)
scaled_global_history_9545b88dc8b9
red when accepted count is 0 modulo 3, black otherwise
global_history
if not mainline: return True return (card.color == "red") == (len(mainline) % 3 == 0)
scaled_global_history_9f06bc4ba948
red when accepted count is 2 modulo 5, black otherwise
global_history
if not mainline: return True return (card.color == "red") == (len(mainline) % 5 == 2)
scaled_global_history_b610ab6a5ec9
red when accepted count is 3 modulo 5, black otherwise
global_history
if not mainline: return True return (card.color == "red") == (len(mainline) % 5 == 3)
scaled_global_history_bccda1670197
red when accepted count is 1 modulo 5, black otherwise
global_history
if not mainline: return True return (card.color == "red") == (len(mainline) % 5 == 1)
scaled_global_history_bf39835b4437
red when accepted count is 2 modulo 3, black otherwise
global_history
if not mainline: return True return (card.color == "red") == (len(mainline) % 3 == 2)
scaled_global_history_f0f2d5c32001
red when accepted count is 0 modulo 5, black otherwise
global_history
if not mainline: return True return (card.color == "red") == (len(mainline) % 5 == 0)
scaled_first_order_transition_94bfb4a1724f
same color or rank above 5 of previous
first_order_transition
if not mainline: return True prev = mainline[-1] return card.color == prev.color or abs(card.rank - prev.rank) <= 5
scaled_first_order_transition_b29a47f6bd14
same color or rank above 7 of previous
first_order_transition
if not mainline: return True prev = mainline[-1] return card.color == prev.color or abs(card.rank - prev.rank) <= 7
scaled_first_order_transition_f7bf705d3afb
same color or rank above 4 of previous
first_order_transition
if not mainline: return True prev = mainline[-1] return card.color == prev.color or abs(card.rank - prev.rank) <= 4
scaled_chunk_run_5e0dd2a50afa
suit matches within chunks of 4; alternates at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 4 prev = mainline[-1] if phase == 0: return card.suit != prev.suit return card.suit == prev.suit
scaled_chunk_run_699141504771
suit matches within chunks of 6; alternates at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 6 prev = mainline[-1] if phase == 0: return card.suit != prev.suit return card.suit == prev.suit
scaled_chunk_run_9e8e30871d11
suit matches within chunks of 5; alternates at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 5 prev = mainline[-1] if phase == 0: return card.suit != prev.suit return card.suit == prev.suit
scaled_chunk_run_2799250fa490
suit matches within chunks of 6; rank within 5 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 6 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 5 return card.suit == prev.suit
scaled_chunk_run_294594186fef
suit matches within chunks of 5; rank within 6 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 5 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 6 return card.suit == prev.suit
scaled_chunk_run_2f92d182ba7f
suit matches within chunks of 7; rank within 4 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 7 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 4 return card.suit == prev.suit
scaled_chunk_run_3e4f2a131ae0
suit matches within chunks of 5; rank within 4 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 5 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 4 return card.suit == prev.suit
scaled_chunk_run_4039035b37c9
suit matches within chunks of 7; rank within 7 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 7 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 7 return card.suit == prev.suit
scaled_chunk_run_43a7dee28dc5
suit matches within chunks of 6; rank within 3 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 6 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 3 return card.suit == prev.suit
scaled_chunk_run_4945d1446dd2
suit matches within chunks of 4; rank within 4 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 4 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 4 return card.suit == prev.suit
scaled_chunk_run_5924d2220f3c
suit matches within chunks of 7; rank within 5 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 7 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 5 return card.suit == prev.suit
scaled_chunk_run_725deb023e3e
suit matches within chunks of 6; rank within 7 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 6 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 7 return card.suit == prev.suit
scaled_chunk_run_73db5daeb432
suit matches within chunks of 8; rank within 4 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 8 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 4 return card.suit == prev.suit
scaled_chunk_run_7891a95919d1
suit matches within chunks of 6; rank within 6 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 6 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 6 return card.suit == prev.suit
scaled_chunk_run_9593e3b2d8d7
suit matches within chunks of 5; rank within 5 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 5 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 5 return card.suit == prev.suit
scaled_chunk_run_a6538dba3a4c
suit matches within chunks of 5; rank within 7 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 5 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 7 return card.suit == prev.suit
scaled_chunk_run_b607756d8e8d
suit matches within chunks of 4; rank within 7 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 4 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 7 return card.suit == prev.suit
scaled_chunk_run_b833377158a3
suit matches within chunks of 7; rank within 6 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 7 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 6 return card.suit == prev.suit
scaled_chunk_run_b8965b2e865e
suit matches within chunks of 4; rank within 3 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 4 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 3 return card.suit == prev.suit
scaled_chunk_run_be0f9bd8a934
suit matches within chunks of 6; rank within 4 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 6 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 4 return card.suit == prev.suit
scaled_chunk_run_cca5be2c3835
suit matches within chunks of 8; rank within 5 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 8 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 5 return card.suit == prev.suit
scaled_chunk_run_d0d11fd8f483
suit matches within chunks of 4; rank within 6 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 4 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 6 return card.suit == prev.suit
scaled_chunk_run_d271378a9eb4
suit matches within chunks of 5; rank within 3 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 5 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 3 return card.suit == prev.suit
scaled_chunk_run_d874d148938c
suit matches within chunks of 8; rank within 7 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 8 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 7 return card.suit == prev.suit
scaled_chunk_run_de15cef7cf9e
suit matches within chunks of 4; rank within 5 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 4 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 5 return card.suit == prev.suit
scaled_chunk_run_fdf2e10e5aab
suit matches within chunks of 7; rank within 3 at boundaries
chunk_run
if not mainline: return True phase = (len(mainline)-1) % 7 prev = mainline[-1] if phase == 0: return card.suit != prev.suit and abs(card.rank - prev.rank) <= 3 return card.suit == prev.suit
exp_global_history_cf038b944fec
when the cumulative accepted-rank sum is 2 modulo 5, require nondecreasing rank; otherwise require nonincreasing rank
global_history
if not mainline: return True prev = mainline[-1] total = sum(item.rank for item in mainline) if total % 5 == 2: return card.rank >= prev.rank return card.rank <= prev.rank