Answer prose round 1: split the record-scoring help into one idea per sentence, name the chunk's entries once, fold the changelog bullet into the bullets it changes, and give the decision's amendment its own paragraph
This commit is contained in:
@@ -33,7 +33,7 @@ def votes(seats: list[Seat]) -> dict[str, list[str]] | Failure:
|
||||
|
||||
|
||||
def counted(seats: list[Seat], said: dict[str, list[str]]) -> dict[str, list[str]]:
|
||||
"""Each seat's votes as they count: a dimension's vote counts as same unless one of the seat's `path:line` places names that dimension, and the overall vote unless the seat names any such place."""
|
||||
"""Each seat's votes as they count: a dimension's vote counts as same unless one of the seat's `path:line` places opens with that dimension, and the overall vote unless the seat names any such place."""
|
||||
return {seat.name: [vote if names_a_place(seat, name) else "same" for name, vote in zip(DIMENSIONS, said[seat.name])] for seat in seats}
|
||||
|
||||
|
||||
@@ -63,13 +63,13 @@ def fallen(counted: dict[str, list[str]]) -> list[str]:
|
||||
|
||||
|
||||
def chunk_entries(default_history: str, history: str) -> list[Entry]:
|
||||
"""The checkout's entries whose headings the default branch's history lacks, oldest first; of entries with one time, the later in the file is newer."""
|
||||
"""The checkout's entries whose headings the default branch's history lacks, oldest first; entries sharing a time keep their file order."""
|
||||
held = {entry.heading for entry in entries(default_history)}
|
||||
return sorted((entry for entry in entries(history) if entry.heading not in held), key=lambda entry: entry.time)
|
||||
|
||||
|
||||
def pending_fall(chunk: list[Entry]) -> list[str]:
|
||||
"""The dimensions that fell in the chunk's newest entry: a paired ruling no scoring run has followed yet."""
|
||||
"""The dimensions that fell in the chunk's newest entry, empty unless that entry is a paired ruling."""
|
||||
return chunk[-1].fell if chunk else []
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ def floor_verdict(under: list[str], reasons: list[str]) -> str:
|
||||
return f"None under the floor of {FLOOR}."
|
||||
if reasons:
|
||||
return f"Floor: {', '.join(under)} under the floor of {FLOOR} block the merge, as the chunk {' and '.join(reasons)}."
|
||||
return f"Under the floor of {FLOOR}, blocking nothing on a run due for no reason besides a fall: {', '.join(under)}."
|
||||
return f"Under the floor of {FLOOR}, blocking nothing, as only a fall called this run: {', '.join(under)}."
|
||||
|
||||
|
||||
def fall_outcome(fell: list[str], found: list[decimal.Decimal]) -> tuple[str, list[str]] | None:
|
||||
@@ -99,7 +99,7 @@ def fall_outcome(fell: list[str], found: list[decimal.Decimal]) -> tuple[str, li
|
||||
if dropped := [f"{name} is {value}" for name, value in zip(DIMENSIONS, found) if name in fell and value < FLOOR]:
|
||||
line = f"Ratchet: the paired ruling counts as worse, as {' and '.join(fell)} fell and {', '.join(dropped)}, under the floor of {FLOOR}."
|
||||
return line, [line]
|
||||
return f"The paired ruling stands: {' and '.join(fell)} fell and stays at or above the floor of {FLOOR}.", []
|
||||
return f"The paired ruling stands: {' and '.join(fell)} fell and each stays at or above the floor of {FLOOR}.", []
|
||||
|
||||
|
||||
def means(lines: list[list[str]]) -> list[decimal.Decimal]:
|
||||
|
||||
Reference in New Issue
Block a user