Compare commits

...

1 Commits

Author SHA1 Message Date
Alexander Whitestone
a59802aab0 feat(training): generate 1K frontend and creative code pattern pairs (#595)
Some checks failed
Architecture Lint / Linter Tests (pull_request) Successful in 18s
Smoke Test / smoke (pull_request) Failing after 11s
Validate Config / YAML Lint (pull_request) Failing after 16s
Validate Config / JSON Validate (pull_request) Successful in 20s
Validate Config / Python Syntax & Import Check (pull_request) Failing after 59s
Validate Config / Python Test Suite (pull_request) Has been skipped
Validate Config / Shell Script Lint (pull_request) Failing after 41s
Validate Config / Cron Syntax Check (pull_request) Successful in 3s
Validate Config / Deploy Script Dry Run (pull_request) Successful in 3s
Validate Config / Playbook Schema Validation (pull_request) Successful in 8s
Validate Training Data / validate (pull_request) Successful in 6s
Architecture Lint / Lint Repository (pull_request) Failing after 7s
PR Checklist / pr-checklist (pull_request) Failing after 7m7s
Adds training/scripts/generate_code_patterns_frontend.py — a deterministic
generator that produces problem-to-solution training pairs for:
- Three.js (280 pairs): scenes, loaders, particles, raycasting, controllers
- HTML/CSS/JS (240 pairs): grids, sticky navs, debounced search, modals,
  dropdowns, scroll spy
- Playground UI (160 pairs): sliders, color pickers, code preview, split panes
- Gallery (120 pairs): masonry grid, carousel, infinite feed
- Games (200 pairs): game loop, AABB collision, sprite animation, tilemap,
  particle explosions

Each pair includes imports, error handling, and usage context.

Output: training-data/code-patterns-frontend-\&-creative.jsonl (1000 lines, ~1.9 MB)

Generator is seeded (seed=42) for reproducibility.
2026-04-22 01:42:22 -04:00
2 changed files with 2575 additions and 0 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff