Answer principles round 1: 0 🔴, 5 🟡 (0 misread); make a move a union with ToStatus, take only parsed events in figures, catch OSError at each file operation, pass progress through the bench, type the sides, and split the README bullet
CI / tests (pull_request) Successful in 5m4s
CI / tests (pull_request) Successful in 5m4s
This commit is contained in:
@@ -8,6 +8,7 @@ import typing
|
||||
from claude_code.entries import AssistantTurn, Entry, Text, tool_calls, ToolCall, ToolResult, ToolResults
|
||||
from task_bench.runs import HOME, WORK
|
||||
from reading_cost.measure import reads_of
|
||||
from task_bench.figures import Side
|
||||
|
||||
# A trace keeps the first TEXT_LINES lines of the model's text between two calls, and the first TEXT_WIDTH characters of each.
|
||||
TEXT_LINES = 3
|
||||
@@ -40,7 +41,7 @@ class Bug(typing.NamedTuple):
|
||||
runs: list[Run]
|
||||
|
||||
|
||||
def digest(sides: dict[str, str], table: list[str], bugs: list[Bug], is_file: typing.Callable[[str], bool]) -> str:
|
||||
def digest(sides: dict[Side, str], table: list[str], bugs: list[Bug], is_file: typing.Callable[[str], bool]) -> str:
|
||||
"""The digest of a bench of the commits sides names: where each side's code is, the table of its figures, then each bug.
|
||||
is_file says whether a path in the project names a file."""
|
||||
code = f"Base {sides['base']}, head {sides['head']}. A bug's name gives its line at the base. Each side's code without the bugs is in `trees/base` and `trees/head` in the bench's folder."
|
||||
|
||||
Reference in New Issue
Block a user