spb/anomaly-atlas Public License
Systematic discovery & rigorous validation of statistical anomalies in open HF market data (hfmarketdata.io) — pre-registered, artifact-null-driven, fully reproducible. Live atlas: www.anomaly-atlas.io
Python 61.4%
JavaScript 28.7%
CSS 8.6%
Shell 0.7%
Makefile 0.5%
1#!/bin/zsh2# =============================================================================3# Project : anomaly-atlas4# File : web/sync-content.sh5# Purpose : Snapshot the research repo into web/content/ + build-info.json6# Author : Simon-Pierre Boucher7# Contact : contact@spboucher.ai8# Data src : hfmarketdata.io (sole data source)9# Created : 2026-08-1210# Modified : 2026-08-1211# Platform : macOS / Apple Silicon (arm64)12# License : All rights reserved (research code)13# =============================================================================14set -euo pipefail1516REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"17CONTENT="$REPO_ROOT/web/content"1819mkdir -p "$CONTENT"20# NOTE: rsync applies filters in order — excludes MUST precede the broad21# includes, or large artifacts slip through.22rsync -a --delete \23 --exclude='*.parquet' --exclude='*.duckdb' --exclude='*.log' \24 --exclude='__pycache__' --exclude='.git' --exclude='.venv' \25 --exclude='node_modules' --exclude='web' --exclude='data' \26 --include='CLAUDE.md' --include='README.md' --include='CITATION.cff' \27 --include='Makefile' --include='pyproject.toml' \28 --include='research/***' --include='experiments/***' --include='benchmarks/***' \29 --include='src/***' --include='tools/***' --include='results/***' \30 --include='atlas/***' --include='docs/***' \31 --exclude='*' \32 "$REPO_ROOT/" "$CONTENT/"3334COMMIT=$(git -C "$REPO_ROOT" rev-parse HEAD 2>/dev/null || echo "unknown")35COMMITS=$(git -C "$REPO_ROOT" rev-list --count HEAD 2>/dev/null || echo 0)36cat > "$CONTENT/build-info.json" <<EOF37{38 "author": "Simon-Pierre Boucher",39 "contact": "contact@spboucher.ai",40 "data_source": "hfmarketdata.io",41 "commit": "$COMMIT",42 "commits": $COMMITS,43 "generated": "$(date -u +%Y-%m-%dT%H:%M:%SZ)"44}45EOF46echo "content synced at commit ${COMMIT:0:7} ($COMMITS commits)"47