Repeat our numbers: /superflare-forecast-windows/ (factchecked.science)

What is here
  code/    the scripts. fetch_inputs.py fetches every public input by URL, as "factchecked-research/1.0", into
           downloads/, and compares each with the SHA-256 of the copy we used on November 18, 2026.
  inputs/  the 37 flares above X10 (Tan et al. 2025's list) and the GLE list, as /rieger-tidal-periods/ hosts them.
  rules/   the rules of each test, written and hashed before the test ran (HASHES_rules.txt has their hashes).
  out/     our outputs, as the page uses them.

Run it
  python -I code/fetch_inputs.py            (Python 3.10 or later, standard library only)
  then, from code/:  py -3.12 -I 01_window_a.py, 02_stix.py, 02b_stix_ops.py, 03_base_rates.py, 04_phase_test.py,
  05_tables.py, 07_cycle25_max.py   (numpy, pandas and netCDF4; 04_phase_test.py takes about three minutes).
  Each script writes to out/. Run on the inputs we used, they give the files in out/ byte for byte.

Figure 7a, read twice (full version)
  first reading, rules fixed in advance:  rules/RULES_fig7a.txt and code/fig7a_first_reading.py
                                          -> out/fig7a_first_reading.json
  second reading:                         code/06_digitize_fig7a.py -> out/fig7a_digitized.json,
                                          fig7a_robust_sflares.json, fig7a_robust_gles.json, fig7a_events_outside.json
  Both read the figure's curves by pixel colour and write summaries only (crossings, shares, values at events).
  They need your own copy of the paper's PDF (open access, doi:10.1029/2025JA034977): run
  python -I code/extract_fig7.py <paper.pdf> <folder>, then py -3.12 -I code/fig7a_first_reading.py
  <folder>/figure7.jpg and py -3.12 -I code/06_digitize_fig7a.py <folder>/figure7.jpg (numpy and Pillow).
  The figure is the authors' (CC BY-NC-ND 4.0): keep the image to yourself; don't share or adapt it.
  inputs/gle_dates.csv: GLE dates from NOAA NCEI's list (GLE 1-71) and Oulu's (72-77), for the first reading.

Notes
  NOAA NCEI renames its GOES-R flare-summary files every day, so a later fetch gets newer files with other hashes;
  fetch_inputs.py says so and goes on. SILSO updates its file monthly and the STIX lists may be revised.

Data and terms
  NOAA's GOES-R flare summaries, SWPC's reports and NGDC's GOES reports: US government work, public domain.
  SILSO: sunspot number from WDC-SILSO, Royal Observatory of Belgium, Brussels (CC BY-NC 4.0).
  The STIX science flare list: L. Hayes, stix_flarelist_science (BSD 3-Clause). The STIX Data Center's list: the
  Solar Orbiter STIX team. The GLE list: the GLE database of the University of Oulu, acknowledged as it asks.
  The flare list: Tan et al. (2025), ApJL 979, L16 (CC BY 4.0). Our scripts, rules and outputs: Fact-Checked Science.
  The paper under review is not included (CC BY-NC-ND 4.0).
