about summary refs log tree commit diff
path: root/scripts/cli/validators.py
diff options
context:
space:
mode:
authorpi coding agent <pi@localhost>2026-10-15 20:44:47 +0000
committerFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-10-15 15:53:35 -0500
commitcdafc493256ad56fe2e50ba80d93baffa7c2d149 (patch)
treee0c91a732483dbee1cbf59457c458a859075abae /scripts/cli/validators.py
parent82b9270d344f75302bc06aaaf328b4f432d997c0 (diff)
downloadgn-uploader-cdafc493256ad56fe2e50ba80d93baffa7c2d149.tar.gz
Refactor: extract per-line accumulation helper
Move the per-line processing loop out of `file_stats_singlethread` into a
reusable `_accumulate` helper that returns a `_ChunkStats` value. This
makes the accumulation logic available to both the single-threaded and the
multi-processed implementations and allows a single source of truth for the
processing logic.

The new module-level `_make_line_splitter` and `_make_is_skippable_line`
helpers build the closures from plain configuration values, so callers no
longer need to pass unpicklable lambdas around.

`file_stats_singlethread` is re-expressed in terms of the extracted helpers
and its signature simplified to `(fileconfigs, headers, lines)`.
Diffstat (limited to 'scripts/cli/validators.py')
0 files changed, 0 insertions, 0 deletions