MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / length_fit_score

Function length_fit_score

experiments/benchmark/evaluate_report_outputs.py:53–64  ·  view source on GitHub ↗
(char_count: int)

Source from the content-addressed store, hash-verified

51
52
53def length_fit_score(char_count: int) -> float:
54 if char_count <= 0:
55 return 0.0
56 if char_count < 2000:
57 return 0.25 + 0.50 * (char_count / 2000)
58 if char_count < 8000:
59 return 0.75 + 0.25 * ((char_count - 2000) / 6000)
60 if char_count <= 22000:
61 return 1.0
62 if char_count >= 40000:
63 return 0.80
64 return 1.0 - 0.20 * ((char_count - 22000) / 18000)
65
66
67def expected_report_keys(episodes_path: Path) -> set[Tuple[str, str, str]]:

Callers 1

evaluate_reportsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected