Answer prose round 1: mark the reading-cost item decision, split the rise rule's reasons, and say the trend counts since the last reset
This commit is contained in:
+3
-3
@@ -20,8 +20,8 @@ It then compares the median tokens of the history's last 5 figures with the 5 be
|
||||
the order their chunks finished, and prints "Rising:" or "Not rising:" with both medians. Rising, it
|
||||
lists the files the last 5 chunks read most. With fewer than 10 figures, it says so.
|
||||
|
||||
Exit 1, saying why, when git cannot start or finds no checkout, the archive or the history cannot
|
||||
be read or written, or a figure in the history cannot be read back.
|
||||
Exit 1, saying why, on unknown arguments, or when git cannot start or finds no checkout, the
|
||||
archive or the history cannot be read or written, or a figure in the history cannot be read back.
|
||||
"""
|
||||
import collections
|
||||
import dataclasses
|
||||
@@ -264,7 +264,7 @@ def merged(history: str, figures: list[str]) -> str:
|
||||
|
||||
def trend(readings: list[Reading]) -> str:
|
||||
if len(readings) < 2 * WINDOW:
|
||||
return f"{len(readings)} chunks measured; the trend needs {2 * WINDOW}."
|
||||
return f"{len(readings)} chunks measured since the last reset; the trend needs {2 * WINDOW}."
|
||||
last, earlier = middle(readings[-WINDOW:]), middle(readings[-2 * WINDOW:-WINDOW])
|
||||
medians = f"the last {WINDOW} chunks' median is {last} new input tokens before their first commit, the {WINDOW} before them {earlier}."
|
||||
if last <= earlier:
|
||||
|
||||
Reference in New Issue
Block a user