Skip to content

docs: close documentation gaps in example source files - #11

Merged
karlkauc merged 1 commit into
mainfrom
docs/example-comments
May 15, 2026
Merged

karlkauc merged 1 commit into
mainfrom
docs/example-comments

Conversation

@karlkauc

Copy link
Copy Markdown
Contributor

Documentation-only. Audited all 41 example source files against the repo's teaching-doc standard (file-header purpose/run/deps/FundsXML assumptions + what/why comments + security note where XML is parsed). 35 already met it; the 6 below were brought up to standard with comment-only edits — no behavioural change.

File Gap closed
XSLT_DataQuality_Checks/Enhanced_Check/FundsXML_CompleteDQReport_HTML.xsl Had no header at all (pre-existing file). Added purpose, run command, why XSLT 1.0 (vs 2.0 elsewhere), deps, FundsXML no-namespace + UniqueID key rationale + tolerance-sync note.
XSLT_Transformations/invocation/RunTransform.java Added explicit Dependencies line; noted it's a generic FundsXML-agnostic wrapper.
XQuery_Examples/invocation/RunXQuery.java Same: Dependencies line + generic-wrapper note.
Large_File_Processing/python/stream_aggregate.py Added Dependencies + Security lines (iterparse already XXE-hardened — now documented).
Large_File_Processing/python/split.py Same.
Large_File_Processing/python/delta_diff.py Same + a why-note on the 0.005 tolerance.

Verified: the Enhanced report still renders (39 KB HTML) and the three Python files compile and run unchanged.

🤖 Generated with Claude Code

Audited all example source files against the repo's teaching-doc standard
(file-header purpose/run/deps/assumptions + what/why + security note). Six
fell short; fixed with comment-only changes (no behaviour change):

- Enhanced_Check/FundsXML_CompleteDQReport_HTML.xsl: add the missing file
  header (purpose, run command, why XSLT 1.0, deps, FundsXML no-namespace +
  UniqueID-key rationale + tolerance sync note) — it was the only example
  with no header at all.
- XSLT_Transformations/invocation/RunTransform.java,
  XQuery_Examples/invocation/RunXQuery.java: add explicit Dependencies line
  and note they are generic FundsXML-agnostic invocation wrappers.
- Large_File_Processing/python/{stream_aggregate,split,delta_diff}.py: add
  explicit Dependencies + Security lines (the iterparse calls were already
  XXE-hardened; now documented).

The other ~35 example files were audited and already meet the standard.
Verified: Enhanced report still renders; the Python files compile & run.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@karlkauc
karlkauc merged commit 5241d78 into main May 15, 2026
2 checks passed
@karlkauc
karlkauc deleted the docs/example-comments branch May 15, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant