Skip to content

Leave incidental Mojo repos out of the rankings by default - #268

Merged
winding-lines merged 3 commits into
mainfrom
incidental-mojo
Nov 30, 2026
Merged

winding-lines merged 3 commits into
mainfrom
incidental-mojo

Conversation

@winding-lines

@winding-lines winding-lines commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

The rule

A repo counts as incidental Mojo when all of these hold:

  • It entered the census only through a pushed commit: the check that accepted it (found_by after /, the how of detect.verify) is push.
  • Its signals (found_by before /) include neither search nor name nor description. GitHub's search path records search / language, because a repo the search gives is language:Mojo and repo_verdict accepts it by language, so it is never push-only. A name or description signal means the repo's name or description says Mojo, so it is a Mojo repo however little code it has yet. A repo accepted by language or manifest ... is never incidental, however small.
  • Its history has been read and its last commit has fewer than 50 lines of Mojo (INCIDENTAL_LINES in src/incidental.mojo). A repo whose history isn't read yet (0 commits) isn't marked, since its lines aren't known.

how and the signals were already in the console: mojo.repos.found_by is in Library.found_by, so this needs no new column, no backfill and no deploy step.

The counts (production's data)

These are production's numbers, from the public https://mojourney.dev/api/repos on 2026-11-29 (1,965 repos). It has found_by, mojo_lines and stars for every repo, so beta wasn't needed.

  • Threshold 10 lines: 22 repos marked. Threshold 50: 27. Threshold 200: 32. Without the name/description exception these would be 30, 39 and 52.
  • 78 repos were accepted by push (127 had a push signal at all; the other 49 were accepted by language or a manifest). None of the 78 has the search signal.
  • 159 repos accepted by language (127) or a manifest (32) have fewer than 50 lines. The rule leaves these unmarked on purpose.

At 50 lines, the name/description exception un-marks 12 repos: rd4com/mojo-learning (135 stars, 0 lines), jpaguilarc99/mojo-modular, llinauer/mojoGPT (35 lines), Brianoksoftware/learning-mojo (31), MartinStuwe/mojo_sklearn_logistic_regression, MartinStuwe/mojo_entropy, MartinStuwe/mojo_input_name, MartinStuwe/mojo_hello_world, tamakiii-sandbox/hello-mojo, K0210/mojo_test, rurumimic/mojo and faisalrdevv/mojo.

The 10 most starred that are still marked at threshold 50 (all push / push):

Repo Stars Lines
mouredev/retos-programacion-2023 5,663 2
arjuncvinod/Hello-World-in-Different-Languages 115 4
modular/max-agentic-cookbook 103 0
cameronmcnz/rock-paper-scissors 19 0
ridholess/Halo-Dunia23 8 4
chao921125/chao921125 8 0
JminJ/TIL 3 2
atejada/led_numbers 2 23
getmodpc/update 2 9
blayyyyyk/snake-ml 2 0

All four repos named in the issue entered by push. mouredev/retos-programacion-2023 and arjuncvinod/Hello-World-in-Different-Languages are multi-language collections with a Mojo file or two, and they stay marked. modular/max-agentic-cookbook stays marked: it has no name or description signal and has no .mojo file at its last commit. rd4com/mojo-learning (name,description,push / push) is no longer marked.

What it gets wrong

  • ByteJoseph/primes (42 lines, the GitHub topic mojo) is still marked: topics aren't a detection signal, and neither its name nor its description triggered one.
  • modular/max-agentic-cookbook is Modular's own, about MAX, and is marked because it has no Mojo code; that seems right for rankings by Mojo code.
  • Unread histories. A push-only repo whose history mojo_history can't read (too big, or failing) keeps 0 commits and is never marked.

What is left out by default, and how to include it

  • /repos, under every sort and filter: there is a new "Incidental Mojo: left out / included (N)" row in the filters, and ?incidental=1 includes them. The lead line says "N incidental Mojo repos left out" and links to the other view. Every column-header and filter link keeps the choice, just as estimate=1 is kept.
  • The Overview: Rising, Most stars, Most active and Most depended on never show an incidental repo. The repo count, histories, commits, lines, the 30-day changes, the new and active counts, the version donuts, the monthly curves (commits per month too) and the category table all leave them out. The coverage line says "The repo counts, curves and tables here leave out N incidental Mojo repos", linking to /repos?incidental=1. Its JSON (/api/overview) and the MCP overview tool add incidental_repos_left_out.
  • MCP list_repos gains incidental (boolean, default false), incidental_left_out in its answer and incidental on each result. rising never has them.

These still have them:

  • /repos/<owner>/<name> says "Counted as incidental Mojo." and why.
  • MCP get_repo adds found_by, incidental and incidental_why.
  • /search, search_repos and similar_repos still find them.
  • /api/repos stays the complete table, with "incidental": true|false on each repo. It is a dump rather than a ranking, and it is what this count was made from.

Totals

I excluded incidental repos from the totals rather than leaving them alone. Builder.finish takes the names to skip and leaves them out of every total, bucket and series. A small per-repo, per-month commit count (cell_commits) lets it take their commits out of the commits-per-month curve. The Overview's repos then equal the Repos table's default count. The Migrations page (mojo.migrations) and /llms.txt's repo count are unchanged.

Data checks

RepoFacts has incidental and Tops has Most stars and the Overview's two counts. A new check, incidental_left_out, fails a build if an incidental repo is in Rising, Most stars, Most active or Most depended on, or if the Overview's repos plus the incidental repos it left out don't equal the repos. The existing checks still compare every repo, incidental ones included, against its page.

Tests

  • tests/test_incidental.mojo covers the rule: how, the signals, push-only and the search, name and description signals (each and together), the threshold edge (49 and 50), language and manifest repos, unread histories, the sentence, and the top-table keys.
  • tests/test_overview.mojo covers finish with a skipped repo (totals, buckets, the commits and lines series) and select_repos and the URLs with and without incidental=1.
  • tests/test_checks.mojo covers the new check: tops and counts that pass, and ones that fail.
  • tests/test_mcp.mojo covers list_repos with and without incidental, and get_repo, search_repos, overview and tools/list.
  • tests/test_console_routes.mojo covers /repos with and without ?incidental=1, the repo page, /api/repos, / and /api/overview.

pixi run build-console and pixi run test pass on macOS arm64.

🤖 Generated with Claude Code

https://claude.ai/code/session_017TycsyUqdnuDeZrYc3z6wV

winding-lines and others added 3 commits November 29, 2026 21:15
A repo is incidental Mojo when it entered the census only through a pushed
commit that changed a .mojo file (found_by's check is `push` and GitHub's
search didn't give it) and its last commit has fewer than 50 lines of Mojo
(INCIDENTAL_LINES in src/incidental.mojo). The Repos table, the Overview's
numbers and top tables and MCP list_repos leave them out unless asked
(?incidental=1, incidental: true); their pages, get_repo and /api/repos keep
them and say they are incidental and why. A data check keeps them out of
the top tables.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017TycsyUqdnuDeZrYc3z6wV
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017TycsyUqdnuDeZrYc3z6wV
A `name` or `description` signal in found_by means the repository's name
or description mentions Mojo, as rd4com/mojo-learning's does: it is a Mojo
repository however little code it has, so it is no longer incidental.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017TycsyUqdnuDeZrYc3z6wV
@winding-lines
winding-lines merged commit f6ffebc into main Nov 30, 2026
10 checks passed
@winding-lines
winding-lines deleted the incidental-mojo branch November 30, 2026 05:59
@winding-lines winding-lines mentioned this pull request Nov 30, 2026
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