Skip to content

chore: purge committed sample/corpus data#45

Open
Airwhale wants to merge 3 commits into
mainfrom
chore/purge-committed-data
Open

chore: purge committed sample/corpus data#45
Airwhale wants to merge 3 commits into
mainfrom
chore/purge-committed-data

Conversation

@Airwhale

@Airwhale Airwhale commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Part of an ongoing effort to split the oversized #43 into smaller, reviewable PRs. Pure repo hygiene — no product code.

What

  • Removes 191 tracked data files (~1.4M lines): scraped Reddit user histories (Scrapers/users/, reddit_sample_data/users/), the sample corpus + extraction-output caches (reddit_sample_data/), output/ slices, and binary zips.
  • .gitignore updated to keep data, *.db, zips, pipeline temp files, and local-only agent config (.cursorrules, AGENTS.md, CLAUDE.md, CONTINUITY.md) out of the repo going forward.

Nothing is lost — all recoverable

  • Raw source (Arctic Shift NDJSON, corpus slices, subreddit_posts.json): s3://patientpunk/raw_data/ + s3://patientpunk/6_11_hackathon/.
  • Per-user histories (the one set not previously in S3): synced to s3://patientpunk/raw_data/scraped_user_histories/ and in local PatientPunk_data/repo_export/.
  • outputs/ caches: regenerable intermediates.

Review

191 deletions + the .gitignore edits. Confirm the deleted paths are all data (no code).

Removes 191 tracked data files that were bloating the repo (~1.4M lines):
scraped Reddit user histories (Scrapers/users/, reddit_sample_data/users/),
the sample corpus + extraction-output caches (reddit_sample_data/), the
output/ slices, and binary zips.

All of this is preserved externally and recoverable:
  - Raw source (Arctic Shift NDJSON, covidlonghaulers corpus slices,
    subreddit_posts.json) lives in s3://patientpunk/raw_data/ and
    s3://patientpunk/6_11_hackathon/.
  - The 185 per-user scraped histories were synced to
    s3://patientpunk/raw_data/scraped_user_histories/ and also live in the
    local PatientPunk_data/repo_export/ evacuation copy.
  - The outputs/ caches are regenerable intermediates.

.gitignore is updated to keep data, databases, zips, and pipeline temp files
out of the repo going forward.

This is the base of the stack that splits PR #43 into reviewable pieces.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the .gitignore file to exclude various runtime data, scraped corpus data, dev scratch directories, pipeline intermediate files, and database files, while removing several local JSON files containing scraped Reddit posts and comments. The review feedback correctly points out that ignoring the data/ directory directly prevents Git from tracking !data/.gitkeep, and suggests ignoring data/* instead to ensure the placeholder file is tracked.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread .gitignore Outdated
@Airwhale Airwhale requested a review from Ely-S June 15, 2026 19:37
@Airwhale Airwhale changed the title chore: purge committed sample/corpus data (stack 1/5) chore: purge committed sample/corpus data (stack 1/4) Jun 15, 2026
@Airwhale Airwhale changed the title chore: purge committed sample/corpus data (stack 1/4) chore: purge committed sample/corpus data Jun 15, 2026
Airwhale pushed a commit that referenced this pull request Jun 15, 2026
Independent-of-the-extraction-stack repo-level changes from #43:

  - Agent config: .cursorrules, AGENTS.md, CLAUDE.md
  - Docs: root README, and the kept ADRs (001-pydantic-v2, 003-two-pipeline,
    004-variable-picker). ADRs 002-marimo-for-ui and 005-analysis-warning-policy
    are omitted — they document the UI/stats-engine being dropped (superseded by
    the research-assistant skill).
  - Scrapers: CONTRIBUTING/README/SCRAPER_HELP docs + scrape_corpus.py.
  - .env.example: LLM provider/endpoint config.
  - src/utilities/__init__.py: shared LLM config + get_git_commit provenance
    helper (used by the posts pipeline; load_db has a local fallback).

Working-notes docs (MVP_PLAN, ldn_notes, DATA_NOTES) intentionally left out —
they read as drafts, not settled docs.

Based on main, not the extraction stack — none of these files are touched by
#45-#49, so it can land in any order.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Airwhale pushed a commit that referenced this pull request Jun 15, 2026
Independent-of-the-extraction-stack repo-level changes from #43:

  - Agent config: .cursorrules
    (AGENTS.md / CLAUDE.md are gitignored as local-only agent files — see #45.)
  - Docs: root README, and the kept ADRs (001-pydantic-v2, 003-two-pipeline,
    004-variable-picker). ADRs 002-marimo-for-ui and 005-analysis-warning-policy
    are omitted — they document the UI/stats-engine being dropped (superseded by
    the research-assistant skill).
  - Scrapers: CONTRIBUTING/README/SCRAPER_HELP docs + scrape_corpus.py.
  - .env.example: LLM provider/endpoint config.
  - src/utilities/__init__.py: shared LLM config + get_git_commit provenance
    helper (used by the posts pipeline; load_db has a local fallback).

Working-notes docs (MVP_PLAN, ldn_notes, DATA_NOTES) intentionally left out.

Based on main, not the extraction stack.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
These are personal agent-workflow files (they reference the git-ignored
CONTINUITY.md session ritual), not shared docs. Keep them local; the shared
project context lives in README.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Airwhale Airwhale force-pushed the chore/purge-committed-data branch from 2bd19de to 0fbc78e Compare June 15, 2026 23:18
Airwhale pushed a commit that referenced this pull request Jun 15, 2026
Independent-of-the-extraction-stack repo-level changes from #43:

  - Docs: root README, and the kept ADRs (001-pydantic-v2, 003-two-pipeline,
    004-variable-picker). ADRs 002-marimo-for-ui and 005-analysis-warning-policy
    are omitted — they document the UI/stats-engine being dropped (superseded by
    the research-assistant skill).
  - Scrapers: CONTRIBUTING/README/SCRAPER_HELP docs + scrape_corpus.py.
  - .env.example: LLM provider/endpoint config.
  - src/utilities/__init__.py: shared LLM config + get_git_commit provenance
    helper (used by the posts pipeline; load_db has a local fallback).

Agent config (.cursorrules, AGENTS.md, CLAUDE.md) is gitignored as local-only
files — see #45. Working-notes docs (MVP_PLAN, ldn_notes, DATA_NOTES) omitted.

Based on main, not the extraction stack.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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