chore: GitHub language statistics count VIctory and skip generated tables #359

Merged
LooperSalty merged 1 commit from upstream-pr/359 into main 2026-11-26 12:46:34 +00:00
LooperSalty commented 2026-11-26 12:43:06 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-26T12:43:06Z.


The repository page shows Python 74 %, C++ 10.9 %, Pawn 10.5 %, Rust 1.8 %. That picture is wrong:

  • GitHub's numbers (GET /repos/LooperSalty/AnyXboxX/languages) still give Rust 40,195 bytes. That is the old rust/ workspace from before #351; crates/ now holds 1.41 MB of Rust, and GitHub has not recomputed yet.
  • Linguist treats third_party/ as vendored, so third_party/victory is not counted: 5.5 MB of Rust that AGENTS.md calls our own code.
  • "Pawn" is crates/anyxboxx-kernelx/kernelx_forwarders.inc, a generated table of 2,661 forwarders (230 KB), detected from its .inc extension.

This adds a .gitattributes with linguist attributes only (checkouts are unchanged):

  • third_party/victory/** is counted as our code; the other third_party folders stay vendored.
  • The generated tables (kernelx_forwarders.inc, gdk_api_table.inc, mnemonics.rs, rdna2_ops.py, rdna2_shapes.py) are marked linguist-generated.

Expected from git ls-tree byte counts: Rust about 80 %, Python about 15 %, C++ about 5 %.

Test plan

  • git check-attr linguist-vendored linguist-generated on the listed paths
  • CI green
  • After merge, the language bar on the repository page (it can take a few minutes)

🤖 Generated with Claude Code

https://claude.ai/code/session_01LwHrL62nyr3m1M4tJsHRox

<!-- greyfinch-sync:LooperSalty/AnyXboxX:issue:6626891935 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/359). Originally posted by [LooperSalty](https://github.com/LooperSalty) on 2026-11-26T12:43:06Z. --- The repository page shows **Python 74 %, C++ 10.9 %, Pawn 10.5 %, Rust 1.8 %**. That picture is wrong: - GitHub's numbers (`GET /repos/LooperSalty/AnyXboxX/languages`) still give Rust 40,195 bytes. That is the old `rust/` workspace from before #351; `crates/` now holds 1.41 MB of Rust, and GitHub has not recomputed yet. - Linguist treats `third_party/` as vendored, so `third_party/victory` is not counted: 5.5 MB of Rust that AGENTS.md calls our own code. - "Pawn" is `crates/anyxboxx-kernelx/kernelx_forwarders.inc`, a generated table of 2,661 forwarders (230 KB), detected from its `.inc` extension. This adds a `.gitattributes` with linguist attributes only (checkouts are unchanged): - `third_party/victory/**` is counted as our code; the other `third_party` folders stay vendored. - The generated tables (`kernelx_forwarders.inc`, `gdk_api_table.inc`, `mnemonics.rs`, `rdna2_ops.py`, `rdna2_shapes.py`) are marked `linguist-generated`. Expected from `git ls-tree` byte counts: Rust about 80 %, Python about 15 %, C++ about 5 %. ## Test plan - [x] `git check-attr linguist-vendored linguist-generated` on the listed paths - [ ] CI green - [ ] After merge, the language bar on the repository page (it can take a few minutes) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01LwHrL62nyr3m1M4tJsHRox
chatgpt-codex-connector[bot] commented 2026-11-26 12:43:13 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T12:43:13Z.


Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-26T12:43:10.852922Z
We couldn’t complete this review. Comment @codex review to try again.
fadaccb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7192370037 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/359#issuecomment-7192370037). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-26T12:43:13Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"fadaccbe1ae125a22d1ccbb6fc75d42e2a25570b","has_any_findings":true,"has_unresolved_findings":true,"status":"failed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ❌ Failed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ❌ **Failed** <relative-time datetime="2026-11-26T12:43:10.852922Z">2026-11-26T12:43:10.852922Z</relative-time><br/>We couldn’t complete this review. Comment `@codex review` to try again. | `fadaccb` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
chatgpt-codex-connector[bot] commented 2026-11-26 12:43:15 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T12:43:15Z.


You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7192370589 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/359#issuecomment-7192370589). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-26T12:43:15Z. --- You have reached your Codex usage limits for code reviews. You can see your limits in the [Codex usage dashboard](https://chatgpt.com/codex/cloud/settings/usage). To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your [settings](https://chatgpt.com/settings/code-review).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LooperSalty/AnyXboxX!359
No description provided.