Statistics
Scope and counting units¶
The statistics are generated during book compilation from the five per-range metrics exports. A publication is a base arXiv ID; a version is one revision of that publication. The processed input contains 25,000 distinct publication IDs without overlap between the five ranges. Each range contains 5,000 publications. This checks the exported M2 input, rather than independently comparing it with the course registration sheet.
All five ranges were processed independently using the same M2 implementation. The exports for Ranges 1-2 include the merged results of targeted retries.
Source
from pathlib import Path
import sys
root = next(p for p in (Path.cwd(), *Path.cwd().parents) if (p / 'milestone2' / 'reporting.py').is_file())
if str(root) not in sys.path:
sys.path.insert(0, str(root))
from milestone2.reporting import load_results, total, coverage_chart, versions_chart, reduction_chart, performance_table, runtime_chart, resources_chart, statistics_table, statistics_analysis, performance_analysis, reduction_analysis
data = load_results()
ranges = data['ranges']Parsing outcomes¶
Figure 1. The left panel shows recorded version outcomes as percentages of all versions in each range. The right panel expands partial and failed counts. Empty versions explicitly marked by M1 are separate from parsing failures. Partial versions have unresolved includes and are not counted as fully parsed.
Source
coverage_chart(data)
Source
statistics_table(data)
statistics_analysis(data)Versions per publication¶
Figure 2. Distribution of the number of versions recorded for each publication. The per-publication audit is available as version coverage CSV. Every recorded version is assigned exactly one of parsed, empty, partial, or failed; this accounting check does not establish extraction accuracy.
Source
versions_chart(data)
Element and reference counts¶
Figure 3. Counts before and after the processing pipeline. Element reduction includes normalization, empty-node pruning, and content sharing. It is not an isolated measurement of cross-version duplicate removal. Reference counts are occurrences before consolidation and unified entries afterwards; this does not measure matching accuracy.
Source
reduction_chart(data)
reduction_analysis(data)
Recorded failure reasons¶
The issue export distinguishes missing source directories, missing document roots, and unresolved includes. Some unresolved targets have library-like names or contain macro parameters; names alone do not establish whether article content is missing. These records retain their original partial status. Download recorded issues.
Source
from milestone1.reporting import table
table(['Recorded reason', 'Failed versions'], [[reason, f'{count:,}'] for reason, count in data['failed_version_reasons'].items()])Checkpoint inspection¶
The checkpoint inspection covers all 27 recorded failed versions and eight purposefully selected partial versions from five publications. Thirty checkpoint archives were verified against their manifest sizes and SHA256 checksums. These are targeted diagnostic checks, not a random sample for estimating extraction accuracy.
Source
from milestone2.reporting import source_audit_table
source_audit_table(data)Among the three sources without a document-class root, one main.tex contains HTML, while two source bundles use TeX without \documentclass and end with \bye. Those cases differ from a missing source directory. The checkpoints for the other failures contain extraction-size-limit records or publication-level ZIP errors.
The sampled partial versions include preamble library inputs (xy, glyphtounicode), an include parameter inside a macro definition (\input{#1}), and filename case mismatches. For example, a source requests sec/3_method while the retained file is sec/3_Method.tex; another requests intro and appendix while the files are Intro.tex and Appendix.tex. These mismatches can resolve on Windows while failing on a case-sensitive filesystem. A successful local Windows probe is not used to replace the recorded Colab result.
The original 306 partial and 27 failed outcome counts remain unchanged. These eight partial-version checks do not establish the cause of every partial record, and the findings apply to the checkpoint snapshots inspected. Download checkpoint audit and provenance.
Targeted follow-up of suspicious includes¶
A separate follow-up inspected eight additional publications, covering 18 recorded partial versions. Selection focused on apparent body-section omissions, root ambiguity, unusual include targets, and auxiliary inputs. It does not estimate error prevalence across all partial versions.
The local diagnostics use the M2 parser with the checkpoint sources. Raw-node counts are diagnostic outputs before standardization, not replacement corpus statistics or Colab benchmark measurements. The original source files and exported outcome counts remain unchanged.
Source
from milestone2.reporting import followup_audit_table
followup_audit_table(data)Sources¶
The tables and figures use the per-range exports. For Ranges 1-2, counts and output sizes reflect the exports that include targeted retries. Download analysis data.