Skip to content

Commit 9c61396

Browse files
author
Grace Lee Rui Yue
committed
style(benchmarks): align shared static baseline
1 parent e307faf commit 9c61396

30 files changed

Lines changed: 44 additions & 14 deletions

File tree

benchmarks/datasets/public-reproductions-v1/reliability-series-path/tests/verifier.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ def _math(s, x, e):
2727
states = r.get("states")
2828
if type(states) is not int:
2929
return False
30-
return _frac(r.get("probability")) == _frac(
31-
e["expected_probability"]
32-
) and states == e["expected_states"]
30+
return (
31+
_frac(r.get("probability")) == _frac(e["expected_probability"])
32+
and states == e["expected_states"]
33+
)
3334

3435

3536
def main():

benchmarks/datasets/public-reproductions-v1/reliability-single-edge/tests/verifier.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ def _math(s, x, e):
2727
states = r.get("states")
2828
if type(states) is not int:
2929
return False
30-
return _frac(r.get("probability")) == _frac(
31-
e["expected_probability"]
32-
) and states == e["expected_states"]
30+
return (
31+
_frac(r.get("probability")) == _frac(e["expected_probability"])
32+
and states == e["expected_states"]
33+
)
3334

3435

3536
def main():

benchmarks/datasets/symbolic-coordination-v1/symbolic-coordination-collision-found-01/tests/verifier_support.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ def aggregate_reward(
428428
raise ValueError("soft assurance weights must not exceed 1.0 in total")
429429
return soft_assurance_base + soft_assurance_weight * assurance_score
430430

431+
431432
__all__ = [
432433
"ASSURANCE_LEVELS",
433434
"MAX_INPUT_BYTES",

benchmarks/datasets/symbolic-coordination-v1/symbolic-coordination-collision-found-02/tests/verifier_support.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ def aggregate_reward(
428428
raise ValueError("soft assurance weights must not exceed 1.0 in total")
429429
return soft_assurance_base + soft_assurance_weight * assurance_score
430430

431+
431432
__all__ = [
432433
"ASSURANCE_LEVELS",
433434
"MAX_INPUT_BYTES",

benchmarks/datasets/symbolic-coordination-v1/symbolic-coordination-grid-exhausted-01/tests/verifier_support.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ def aggregate_reward(
428428
raise ValueError("soft assurance weights must not exceed 1.0 in total")
429429
return soft_assurance_base + soft_assurance_weight * assurance_score
430430

431+
431432
__all__ = [
432433
"ASSURANCE_LEVELS",
433434
"MAX_INPUT_BYTES",

benchmarks/datasets/symbolic-coordination-v1/symbolic-coordination-grid-exhausted-02/tests/verifier_support.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ def aggregate_reward(
428428
raise ValueError("soft assurance weights must not exceed 1.0 in total")
429429
return soft_assurance_base + soft_assurance_weight * assurance_score
430430

431+
431432
__all__ = [
432433
"ASSURANCE_LEVELS",
433434
"MAX_INPUT_BYTES",

benchmarks/datasets/symbolic-coordination-v1/symbolic-coordination-keller-only-01/tests/verifier_support.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ def aggregate_reward(
428428
raise ValueError("soft assurance weights must not exceed 1.0 in total")
429429
return soft_assurance_base + soft_assurance_weight * assurance_score
430430

431+
431432
__all__ = [
432433
"ASSURANCE_LEVELS",
433434
"MAX_INPUT_BYTES",

benchmarks/datasets/symbolic-coordination-v1/symbolic-coordination-keller-only-02/tests/verifier_support.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ def aggregate_reward(
428428
raise ValueError("soft assurance weights must not exceed 1.0 in total")
429429
return soft_assurance_base + soft_assurance_weight * assurance_score
430430

431+
431432
__all__ = [
432433
"ASSURANCE_LEVELS",
433434
"MAX_INPUT_BYTES",

benchmarks/datasets/symbolic-coordination-v1/symbolic-coordination-keller-only-03/tests/verifier_support.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ def aggregate_reward(
428428
raise ValueError("soft assurance weights must not exceed 1.0 in total")
429429
return soft_assurance_base + soft_assurance_weight * assurance_score
430430

431+
431432
__all__ = [
432433
"ASSURANCE_LEVELS",
433434
"MAX_INPUT_BYTES",

benchmarks/datasets/symbolic-coordination-v1/symbolic-coordination-keller-only-04/tests/verifier_support.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ def aggregate_reward(
428428
raise ValueError("soft assurance weights must not exceed 1.0 in total")
429429
return soft_assurance_base + soft_assurance_weight * assurance_score
430430

431+
431432
__all__ = [
432433
"ASSURANCE_LEVELS",
433434
"MAX_INPUT_BYTES",

0 commit comments

Comments
 (0)