Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

docs(evals): rewrap the two comment lines the citation repair lengthened

Aashishc27ab4828958
diff --git a/laya/evals.py b/laya/evals.py
index 77e91c09..77a0c290 100644
--- a/laya/evals.py
+++ b/laya/evals.py
@@ -207,9 +207,10 @@ class Dataset:
# `Example(...)` skipped all three, and every reader of it takes the two fields as mappings: a
# non-object `expected` died as an unhandled ``AttributeError``, in `evaluate` only after the
# runner had answered (`laya/evals.py:1205`), and a non-object `questions` leaked through
- # `questions_fingerprint` (`laya/evals.py::questions_fingerprint`). An `expected` key with no question behind it
- # was answered with "runner returned no answer for question 'x'" -- a verdict about the runner,
- # paid for with a whole inference run, for a mistake in the caller's row. The two opt-in doors
+ # `questions_fingerprint` (`laya/evals.py::questions_fingerprint`). An `expected` key with no
+ # question behind it was answered with "runner returned no answer for question 'x'" -- a
+ # verdict about the runner, paid for with a whole inference run, for a mistake in the
+ # caller's row. The two opt-in doors
# refused the same rows before calling anything, but as tracebacks
# (`laya/evals_shortlist.py:38`, `laya/evals_tournament.py:33`). Checking at the door all four
# readers share names the row and lands before a single call: a leaked traceback exits 1, the
diff --git a/tests/test_evals.py b/tests/test_evals.py
index 5af741da..46b784c3 100644
--- a/tests/test_evals.py
+++ b/tests/test_evals.py
@@ -842,8 +842,9 @@ def test_dataset_names_an_unreadable_file_as_an_evalerror(tmp_path, monkeypatch)
# A row built in Python never passes through `Example.from_dict`, which is the only place these three
# checks were made: `questions` and `expected` must be objects, and every `expected` key must name a
# question that is actually there. Every reader takes the two fields as mappings, so a row that
-# skipped the checks reached `evaluate`'s scoring loop (`laya/evals.py:1205`), `questions_fingerprint`
-# (`laya/evals.py::questions_fingerprint`) or an opt-in door's `_validate_dataset` as an unhandled ``AttributeError`` --
+# skipped the checks reached `evaluate`'s scoring loop (`laya/evals.py:1205`),
+# `questions_fingerprint` (`laya/evals.py::questions_fingerprint`) or an opt-in door's
+# `_validate_dataset` as an unhandled ``AttributeError`` --
# or got as far as the runner and came back as a verdict *about the runner*. `Dataset` is the one door
# all four readers share, so the refusal names the row and lands before a call is paid for.
@pytest.mark.parametrize("field, value, fragment", [