The Repo Adoption-Count Standard: Count, Count Separately, or Exclude
Label every repo in a raw pull Count, Count Separately, or Exclude using written criteria, so a second analyst reruns your adoption figure and lands within tolerance.
Key takeaways
- In a hand inspection of 434 GitHub repositories, only 275 (63.4%) were software development, so about a third of a raw pull is not a project at all.
- Duplicates made up about 1.6% of a 1,853,205-project sample, while a classifier rated only 24.07% of about 1.86 million repos as engineered, so put most of your exclusion effort into removing non-projects, not into deduplication.
- GitHub's dependency graph had errors in 90.57% of Java and 73.08% of Python repositories studied, so a dependents count can serve as a cross-check but never as the frame itself.
- At the July 2024 peak, 16.66% of repositories gaining 50 or more stars had a fake-star campaign, and star sellers' usual minimum order is 50, so a star floor lets fraud in.
- About 63% of the LLM-SDK repositories Octoverse counted were created inside its 12-month reporting window, so any year-on-year growth figure needs a second version without the newest cohort.
- In Refolk's index, US practitioners listing PyTorch outnumber those listing LangChain 3.31 to 1, and a repo-based ratio far from that is a reason to audit the frame.
This standard decides which public repositories may go into a published figure like "N public projects use this framework" or "category repos grew X%". It is for strategy teams, talent-intelligence analysts, and operators sizing a market. It gives you three row labels with reason codes, a rule for choosing the sample frame, a seven-step procedure two analysts can run independently, and the one-line method note that lets anyone rerun your number.
What Count, Count Separately, and Exclude mean
Every repository in a raw pull gets exactly one of three labels. Count means an independent project that demonstrably uses the technology. Count Separately means real use of a kind a reader should not mistake for adoption. Exclude means a copy, a shell, or an artifact of the tool that found it. The headline figure is the Count total. The Count Separately tally ships beside it, never inside it.
- Count. An independent repository, mapped to its own lineage, whose code declares or imports the technology, created on or before the cutoff date. This is your adoption number.
- Count Separately. A repository that uses the technology but is not an independent adoption decision: template children, coursework and tutorials, one-commit generated repos, and repos carrying a detected fake-star campaign.
- Exclude. A repository that belongs in no count: forks, clone-push copies, mirrors, the technology's own repository, non-development repos, repeat hits from the same repository, dependents-graph entries no manifest confirms, and anything created after the cutoff.
Four terms come up throughout:
- Sample frame: the mechanism that defines which repositories you can see at all. It is a topic tag, a manifest or import search, code search, or the dependents graph.
- Reason code: a short tag recording why a row got its label, so a second grader can check the reasoning and not just the outcome.
- Ultimate parent: the original repository that a fork or copy descends from.
- Clone-push copy: a repository made by cloning another and pushing it as new, with no fork flag set.
Why three labels and not two: forcing template spawn or coursework into Count inflates the figure. Forcing it into Exclude hides volume a reader may legitimately want, and it gives two graders something to argue about that the label should have settled.
How much of a raw repo pull is contamination
Most of a raw pull is contamination. Published studies put non-development repositories at about a third of a hand-inspected sample, and non-engineered repositories at about three quarters of a large automated sample. True duplicates come in under 2%.
| Contaminant | Rate | Base |
|---|---|---|
| Non-development repos | 36.6% (derived) | 434 inspected by hand |
| Not engineered (reaper classifier) | 75.93% (derived) | about 1.86M repos |
| Duplicates | 1.62% (derived) | 1,853,205 projects |
| Fake-star campaigns, July 2024 | 16.66% | repos gaining 50+ stars that month |
| Dependents error | about 10% | Java and Python sample |
Where each number comes from:
- Non-development. In Kalliamvakou et al.'s manual inspection of 434 repositories, 275 (63.4%) were software development. The same work found 71.6% of repositories were personal.
- Not engineered. Munaiah et al.'s reaper tool measured 1,857,423 repositories, and its classifier labelled 24.07% as well-engineered software projects.
- Duplicates. A deduplication study of about 1.85 million projects found 30,095 duplicates, which arise through the fork process or through a clone-push sequence. Its companion dataset covers 10.6M GitHub projects that are copies of others.
- Fake stars. At the July 2024 peak, 3,499 popular repositories (16.66%) had fake-star campaigns. An earlier preprint of the same work gave 15.84%.
Do not add these rates together. They come from different bases and they overlap. A personal repo is not automatically a non-project, either: personal projects can be real adopters. The Count label is about independent work and confirmed use, not team size.
Put your exclusion effort where the volume is: non-projects first, duplicates last.
The practical consequence is a matter of budget. Deduplication is mechanical and small. Separating real projects from shells, notes, and spawn is where most of the grading hours go.
Which sample frame to use
For "N projects use library X", use a manifest or import frame. Use a topic-tag frame only for category-membership questions, and confirm a sample of its rows against manifests. Use code search for discovery and the dependents graph only as a cross-check. Write the frame and its blind spots down before you pull anything.
| Frame | Proves | Lies when | Hard limit |
|---|---|---|---|
| Topic tag | Owner calls it part of the category | Tag without use; adopters never tag | 1,000 results per search |
| Manifest or import | Declared or called dependency | Vendored copies; many manifests per repo | You parse it yourself |
| Code search | String appears in code | Hits in docs, comments, tutorials | 4,000 repos; 10 req/min |
| Dependents graph | GitHub parsed a manifest | Misses repos, unevenly by ecosystem | No API endpoint for the count |
Why the dependents graph is a cross-check, not a frame
GitHub's dependency graph is the tempting shortcut, and the evidence against it is strong. The journal version of one study reports about 20% errors in dependencies and about 10% in dependents. The SSRN preprint of the same study reports over 27% inaccuracy for dependencies and up to 10% for dependents. The two versions disagree, so quote a range, not a point. The named root causes are oversimplified processing of manifest and lock files, plus missing occurrences, incorrect package links, non-existent source repositories, and missing links to source repositories.
| Metric (Bifolco et al.) | Java | Python |
|---|---|---|
| Repos with errors | 90.57% | 73.08% |
| Dependencies correct | 75.17% | 84.48% |
| Dependents correct | 96.62% | 70.94% |
| All dependents accurate | 13.30% | 21.88% |
Three behaviours matter for counting:
- It mostly misses repos. One documented case: when a Java pom.xml does not specify a dependency's groupID, the graph leaves that dependency out. Errors of this kind shrink a count. They do not pad it.
- It is uneven across ecosystems. Dependents were 96.62% correct for Java but 70.94% for Python. Comparing two ecosystems' dependents counts side by side builds that gap into your conclusion.
- "Used by" is a display, not a measurement. GitHub's docs say dependent counts are approximate and may not match the dependents listed. The section only appears when more than 100 repositories depend on the package (GitHub support described this as a rule change made in late 2023). It also counts a single package from the repository. No official REST or GraphQL endpoint returns the count. Open-source scrapers such as github-dependents-info read the dependents page instead.
What each frame actually sees
Evidence of use, weakest outer layer first
- Topic tagThe owner's own label; proves association, not use
- Code search hitThe string exists somewhere, including docs and comments
- Dependents graph entryGitHub's parse of a manifest, which misses repos
- Manifest or lockfile you parsedA declared dependency you checked yourself
- Import in sourceThe code actually calls the technology
How accurate topic tags are is not established in any study I can cite. If a topic-tag frame drives your figure, draw a random sample of tagged rows, check each one against its manifest, and report the confirmed share in the method note.
The literature disagrees on order. Research curation tools such as reaper and PHANTOM curate GitHub first and then apply a frame. Practitioners usually frame first. My rule for briefs is frame first: the frame defines the population you are describing, and curating all of GitHub is research-scale work. Then apply the row criteria below inside the frame.
How to sanity-check the frame against people counts
Compare the ratio between two technologies in your repo counts with the ratio between practitioners who list them as skills. A large gap does not prove either side wrong. It is a reason to audit the frame before you publish.
| Skill | Market | People |
|---|---|---|
| PyTorch | US | 78,387 |
| LangChain | US | 23,711 |
| LangChain | Germany | 3,173 |
In Refolk's index, LangChain practitioners in the US outnumber those in Germany 7.47 to 1. If your repo frame shows PyTorch and LangChain adoption at nearly the same level, or a US-to-Germany split nowhere near that, check the usual suspects first:
- a frame that sees one ecosystem's manifests better than the other's
- a cohort of new LLM-SDK repos swelling one side
- template spawn counted as adoption
People who list a skill are a different population from repositories, so treat this as a smoke test, not a calibration. One caution if you pull the same numbers yourself: the top-title and top-employer lists that come back with these counts are drawn from a sample of only 25 profiles. Do not publish them as distributions.
Getting the people side used to mean running a second data project. In Refolk it is one plain-English question, so the cross-check takes minutes. The same query also gives you named maintainers you can use to spot-check whether rows you labelled Count belong to real, active people.
Row-level admission criteria
Run each row through the tests below in order. The first test that fails decides the label and the reason code. The fixed order is what makes two graders land on the same answer: they never weigh criteria against each other.
- Created after the cutoff? Exclude, code
LATE. - A copy or the technology itself? Exclude a fork (
FORK), clone-push copy (CLONE), mirror or rename (MIRROR), or the technology's own repository (SELF). The ultimate parent gets graded on its own row. - A repeat hit from a repository already in the sheet? Exclude, code
MONO. A monorepo with twelve manifests is one repository. - Not software development? Exclude, code
NONDEV. This covers notes, dotfiles, document storage, and empty repos. - No confirmed use? Exclude. Use
GRAPHif only the dependents graph lists the row and your manifest parse disagrees, orNOUSEif only a tag or a text mention put it in the frame. - Not an independent adoption decision? Count Separately: template child (
TMPL), coursework or tutorial (EDU), one-commit generated repo (GEN), or detected star campaign (STAR). - Passed everything? Count, code
USE.
What each criterion proves, and how it lies
- FORK, CLONE, MIRROR. Proves the code came from elsewhere. It lies when a copy has no fork flag, which is always true of clone-push copies. Map to the parent through shared commit history, not the fork field.
- Vendored copies. A host project that carries the library's source inside its own tree is evidence the host uses it. The host counts once if it passes the other tests. A repo whose contents are essentially the library re-uploaded is
CLONE. - MONO. Proves a repeat. It lies in the other direction when distinct projects share one organisation but live in separate repositories. Those are separate rows and they stay separate.
- NONDEV. Proves the repo is not a project. It lies when a sparse README hides real code, so open the file tree before you exclude.
- GRAPH and NOUSE. Proves the frame saw something your own parse did not confirm. It lies when your parser misses a manifest format, so test your parser on a known-positive sample first.
- TMPL. Proves a generator, not a decision, made the repo. It lies when someone started from a template and then built a real project on it. If the child has substantive work of its own beyond the template, a team may write a rule promoting it to Count. Write that rule down.
- EDU. Proves learning, not adoption. It lies when a course project later becomes a maintained tool, so grade on the state at the cutoff date.
- GEN. No validated marker set separating real projects from generated spawn has been published. I use a single commit as the operational line because it is checkable, not because anyone has validated it. Template origin, an empty README, and bursts of repos from one owner are supporting signals. State whatever line you choose in the method note.
- STAR. Proves someone bought attention. You cannot tell from outside whether the rest of the activity is real once stars are bought, so the row stays out of the headline.
Where a row lands
How to run the count, step by step
The procedure takes seven steps with two independent graders and one reconciliation. Pulling the data (half a day to two days) and double grading (one to three days) take most of the time.
The adoption-count procedure
- Fix the category definition and cutoff dateThe analyst lead writes a one-line definition, the frame or frames, and an ISO cutoff date, in about an hour. Done when all three are in the brief file before any pull.
- Choose the frame and write its blind spotsChoose topic tag, manifest or import, code search, or the dependents graph, and record what it cannot see, for example that "Used by" appears only above 100 dependents and that dependents carry about 10% error. Done when the frame and its blind spots sit next to the definition.
- Pull under the search capsSlice by created date and star range until every slice returns fewer than 1,000 results. Done when no slice sits at the cap and no response came back with incomplete_results set to true.
- Deduplicate to ultimate parentsMark forks, clone-push copies, renames, and mirrors, and map each to its ultimate parent through shared commit history. Done when every copy points to a parent and the duplicate tally is recorded.
- Grade every row independently, twiceTwo analysts each give every row one label and one reason code, working in the written test order. Done when both grading columns are full.
- Reconcile against the written ruleThe lead computes the share of rows with matching labels and settles each disagreement by the first failing test, not by vote. Done when agreement is recorded and the headline counts are inside the tolerance written before grading.
- Ship with a one-line method notePublish the Count total with the Count Separately tally beside it. Done when one line states frame, cutoff, raw N, and exclusion tallies by reason code.
Pulling under the caps
The REST search API returns up to 1,000 results per search. Code search looks at up to 4,000 matching repositories and returns results from those. Authenticated search is rate-limited to 30 requests per minute, and code search to 10. Slicing by created date and star range keeps each search under the cap. That technique is documented only in secondary write-ups, and I know of no published study that specifies an exact star-range procedure. Verify it the boring way: every slice must come back under 1,000. How search handles forks and archived repositories by default was not something I could verify, so read the current search docs before each pull and record in the method note what you found.
The grading sheet
Both graders work from the same sheet and never see each other's columns until reconciliation. Use stable repository IDs, not owner/name pairs, because renames will otherwise split one repository into two rows.
repo_id,owner,name,frame_hit,created_at,commit_count,is_fork,template_origin,ultimate_parent,grader_a_label,grader_a_code,grader_b_label,grader_b_code,final_label,final_code,note COUNT: USE COUNT_SEPARATELY: TMPL (template child) | EDU (coursework, tutorial) | GEN (one-commit generated; threshold: commit_count = 1) | STAR (fake-star campaign detected) EXCLUDE: LATE (after cutoff) | FORK | CLONE (clone-push copy) | MIRROR (mirror or rename) | SELF (the technology's own repo) | MONO (repeat hit, same repo) | NONDEV (not software development) | GRAPH (dependents entry, manifest disagrees) | NOUSE (tag or mention only) TEST ORDER: LATE > copy codes > MONO > NONDEV > GRAPH/NOUSE > Count Separately codes > USE
Keep the codes exactly as written so tallies roll up mechanically; add your own operational thresholds to the GEN line.
How adoption counts go wrong
Each failure below produces a number that looks clean. Every one has a check, and none of the checks is optional.
- Silent search cap. Looks like: a slice of exactly 1,000 rows, or incomplete_results set to true. Check: re-split until every slice is under the cap.
- Trusting "Used by". Looks like: no "Used by" section, read as zero adoption, when the package simply has 100 or fewer dependents. Or one number for a repository that publishes several packages, when it reflects only one of them. Check: the dependents page for each package.
- Treating the dependency graph as ground truth. Looks like: a dependents count published as an adoption count. Check: parse a sample of manifests and lockfiles directly. The graph drops, for example, any Java dependency whose pom.xml omits its groupID.
- Comparing ecosystems on dependents. Looks like: "Java adoption beats Python" built on graph counts. Check: remember that dependents were 96.62% correct for Java and 70.94% for Python in one study, then compare manifest-parsed counts instead.
- Duplicates without a fork flag. Looks like: two independent adopters with identical histories. Check: map to ultimate parents through shared commit history.
- Stars used as a quality floor. Looks like: a 50-star filter that feels conservative. Star sellers' usual minimum order is 50, so the floor lines up with the fraud. StarScout found 18,617 repositories with campaigns and 301k participating accounts, using two signatures: low-activity stargazers (1.06 million stars) and lockstep bursts (4.93 million). Only 78 campaign repos (0.42%) reached the Trending page, so a repo's absence from Trending says nothing about whether it is clean. Check: look for stargazer accounts with low activity and stars arriving in lockstep bursts.
- Growth inflated by new inflow. Looks like: a dramatic year-on-year jump. Octoverse reported 1.1 million public repositories importing LLM SDKs (+178% year over year), and 693,867 of them were created inside the 12-month window, about 63%. Check: rerun the count with a minimum activity threshold or without the newest cohort, and publish both versions.
- Spawn mistaken for adoption. Looks like: hundreds of new adopters from a single template or a single owner in a burst. Check: the template-origin field and the commit count. No validated threshold has been published, so state yours.
- Year mismatch. Looks like: your "this year" figure set against a report year that runs on a different calendar. Octoverse's year ran from Sep 1, 2024 through Aug 31, 2025. Check: state the ISO cutoff date and the window explicitly.
The common thread: each failure enters through the frame or the pull, before anyone grades a row. That is why the procedure puts the frame and caps first and grading fifth.
How to ship the figure and keep it current
Ship the Count total with the Count Separately tally beside it and a one-line method note. To update the figure, rerun the whole procedure with a new cutoff rather than editing the old number.
Method: <frame> for "<one-line category definition>", cutoff <YYYY-MM-DD>; raw N <n> (all slices under 1,000, none incomplete); Count <n>; Count Separately <n> (TMPL <n>, EDU <n>, GEN <n> at commit_count = 1, STAR <n>); Excluded <n> (LATE <n>, FORK <n>, CLONE <n>, MIRROR <n>, SELF <n>, MONO <n>, NONDEV <n>, GRAPH <n>, NOUSE <n>); grader agreement <x>% of rows, tolerance <t>; growth shown with and without repos created after <YYYY-MM-DD>.
Fill every field; if a field is zero, write zero so readers know you checked.
Three habits keep the figure defensible:
- Re-read the mechanisms, not just the data. The search caps, rate limits, and the "Used by" threshold are platform behaviours, and the "Used by" rule has changed at least once. Check the current docs before every rerun and note any change.
- Keep the sheet. Store the graded sheet with stable repository IDs and final codes. The next rerun only needs to grade new rows and recheck labels that depend on time, such as
GENandEDU. - Date the people side. If the brief pairs the repo count with a practitioner count, pull both sides at the same cutoff. A Refolk count is a snapshot of the index on the day you ran it, so record that date in the note.
Before the figure leaves the team
- The category definition, frame, and ISO cutoff date were written down before the pull began.
- No search slice returned 1,000 results and no response had incomplete_results set to true.
- Every fork, clone-push copy, mirror, and rename maps to an ultimate parent, and each parent appears once.
- Every row carries one label and one reason code from each of two independent graders.
- The agreement tolerance was written before grading, and the reconciled result is inside it.
- A sample of dependents-graph rows was confirmed or rejected by parsing manifests or lockfiles directly.
- No star threshold was used to admit or reject rows.
- Any growth figure ships in two versions, with and without the newest cohort.
- The method note states frame, cutoff, raw N, and exclusion tallies by reason code.
- Any people-side ratio quoted beside the repo count carries the date it was pulled.
Questions practitioners ask
How do I count repositories that use a library?
Use the manifest or import frame. Parse the dependency files or import lines yourself and count one row per independent repository. Collapse forks and copies to their ultimate parent, and drop extra hits from the same repository. Report template children, coursework, one-commit generated repos, and star-campaign repos as a separate tally. Use GitHub's dependents graph only to cross-check, because a published study found errors in most of the Java and Python repositories it examined.
Is GitHub's dependents count accurate?
No, not accurate enough to publish as a figure on its own. GitHub's own documentation calls dependent counts approximate. One study found dependents fully accurate in only 13.30% of Java cases and 21.88% of Python cases, and accuracy differs between ecosystems. "Used by" counts a single package, and it only appears once a package has more than 100 dependents. No official API endpoint returns the count.
Should I exclude forks and mirrors from a repo analysis?
Yes. Exclude them, and count their ultimate parent once. Watch out for clone-push copies: they do not carry a fork flag, so a fork filter misses them. Map them through shared commit history. In one large sample, duplicates were about 1.6% of projects. That is real, but far smaller than the share of repositories that are not engineered projects at all, so deduplicate carefully without letting it eat the schedule.
What star threshold should I use to filter toy repositories?
None. A star floor no longer keeps noise out. Star sellers' usual minimum order is 50, which matches the common 50-star research cutoff, and at the July 2024 peak 16.66% of repositories gaining 50 or more stars had fake-star campaigns. Filter on evidence of use and independent work instead, and grade flagged star-campaign repos as Count Separately.
How should I report year-over-year growth in a category's repositories?
Ship two numbers: one with all Count rows, and one that leaves out repositories created inside the reporting window or applies a minimum activity threshold you have written down. Without that second number, growth is mostly a cohort effect. In Octoverse's data, about 63% of LLM-SDK repositories were under 12 months old. Also state the cutoff date, because report years do not always match calendar years.
What agreement tolerance should two graders hit?
Your team sets it, because no public benchmark exists. Write it down before anyone grades, as two numbers: the share of rows where both analysts give the same label, and the maximum gap between their headline Count totals. If reconciliation misses the tolerance, rewrite the criterion behind most disagreements and regrade those rows. Do not loosen the tolerance after the fact.
Try it on the search you came here for
Stop building boolean strings. Just describe the person.
Type one sentence. I plan the search, read GitHub, public LinkedIn and Crunchbase records, and the open web as it is right now, and hand back a ranked list with the reason next to every name.
01Describe them
One plain sentence. Role, city, stack, stage, whatever matters to you.
02I read the web live
GitHub, public LinkedIn and Crunchbase records, the open web. Not a database that went stale last quarter.
03You read the shortlist
Ranked, with the reasoning under every name. Open a profile, ask a follow-up, narrow it down.
- Staff backend engineers in NYC who shipped Rust in production
- Series A fintechs in SF under 50 people, growing headcount this year
- Maintainers of fast-growing Rust web frameworks on GitHub
- No boolean, no filters, no seat to buy. One box.
- Read at search time, so a profile updated yesterday counts today.
- Every step visible as it runs, every name with its reason.
500 free credits on sign-up. No card, no demo call. See real searches.