Dataset
Long-lived monorepo datasets for AI training
A monorepo dataset is a single repository that holds many of one organization's services, libraries and tools, delivered with its full commit history, its build graph, its code-ownership files and the record of repository-wide changes. SourceX sources long-lived monorepos to a buyer's spec, including the years of history required, from established software companies, and reviews the partner's rights to the code and the third-party code inside it. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- One repository of many services and libraries, with full history, build graph, ownership files and repo-wide change records
- Typical systems
- Git, often with history imported from Subversion or Perforce; Bazel, Buck, Pants or Nx; CODEOWNERS or OWNERS files
- Typical history
- Ten or more years where you specify it; the depth and fidelity of imported history vary by partner
- Modality
- Source code and build definitions, with commit metadata and a dependency graph as structured records
- Delivery formats
- Agreed per order; git bundle or mirror, build graph snapshots as JSON, JSONL change records
- Preparation
- Secrets scanned across every past commit; authors pseudonymized consistently; vendored third-party code inventoried
- Licensing
- Rights reviewed across the full history; a full-history scope includes every past state, so agree any excluded paths and dates
- Availability
- Sourced to your spec; repositories of this age are uncommon and supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| snapshot_id | string | The commit at which the build graph, ownership rules and package map in the record were captured. |
| package_map | array | Top-level layout of the tree: each package or project with its path, kind and main language. |
| build_targets | array | Targets declared in BUILD or BUCK files or project configuration, with rule kind and visibility. |
| dep_edges | array | Direct dependency edges between targets, with scope, including edges to pinned third-party packages. |
| reverse_deps | object | For a target, the direct and transitive dependents and test targets at the snapshot. |
| ownership_rules | array | CODEOWNERS or OWNERS patterns mapped to pseudonymous teams, with the date each rule took effect. |
| sweeping_changes | array | Repository-wide changes grouped under one ID: method, commits, packages and owner groups touched, dates and reverts. |
| affected_targets | array | Per commit, the targets changed, rebuilt and tested and the tests that failed, from CI records or a recomputed graph. |
| history_eras | array | Date ranges labeled by version-control system, build system, language level and formatter, with boundary commits. |
| vcs_migrations | array | Each import between version-control systems: tool, cutover commit, and what survived of authors, merges, branches and timestamps. |
| identity_map | object | How usernames from each system were unified into pseudonymous authors, and which identities are import scripts or bots. |
| vendored_code | array | Third-party code checked into the tree at any point: path, origin, license, dates present and local modifications. |
| history_secrets | array | Credentials found in any commit: type, first and last commit, how the value was handled and whether it was rotated. |
| hash_fidelity | object | Whether delivered commit hashes match the partner's originals or were rewritten by filtering, with a mapping file. |
Field names from the table above; values are masked placeholders.
Example record
{
"snapshot_id": "snap_4be19c0",
"package_map": [
{ "path": "platform/money", "kind": "library", "language": "java" },
{ "path": "services/billing", "kind": "service", "language": "java" }
],
"build_targets": [
{ "label": "//platform/money:money", "rule": "java_library", "visibility": ["//services:__subpackages__"] }
],
"dep_edges": [
{ "from": "//services/billing:invoice", "to": "//platform/money:money", "scope": "compile" }
],
"reverse_deps": { "target": "//platform/money:money", "direct": 41, "transitive": 388, "test_targets": 212 },
"ownership_rules": [
{ "file": "CODEOWNERS", "pattern": "/platform/money/", "owners": ["team_payments_core"], "rule_since": "2019-03-11" }
],
"sweeping_changes": [
{ "change_id": "swc_0412", "summary": "Replace double with Money in all amount fields",
"method": "codemod_plus_manual", "commits": 63, "packages_touched": 57, "owner_groups": 14,
"first_commit": "2021-05-03", "last_commit": "2021-08-19", "reverts": 2 }
],
"affected_targets": [
{ "commit": "c7d02ae", "changed": ["//platform/money:money"], "rebuilt": 388, "tests_run": 212, "tests_failed": 3, "source": "ci_record" }
],
"history_eras": [
{ "from": "2012-02", "to": "2015-09", "vcs": "subversion", "build": "ant", "language_level": "java_6" },
{ "from": "2015-09", "to": "2020-01", "vcs": "git", "build": "maven", "language_level": "java_8" },
{ "from": "2020-01", "to": "snapshot", "vcs": "git", "build": "bazel", "language_level": "java_17" }
],
"vcs_migrations": [
{ "from": "subversion", "to": "git", "cutover_commit": "09ab3f1", "tool": "git-svn",
"authors_map": "present", "unmapped_authors": 9, "merges_preserved": false, "branches_imported": ["trunk"] }
],
"vendored_code": [
{ "path": "third_party/jsonlib", "origin": "open_source", "license": "Apache-2.0",
"present_from": "2013-06", "removed": "2018-11", "locally_modified": true }
],
"history_secrets": [
{ "type": "database_password", "first_commit": "2014-07-22", "removed_from_head": "2014-07-23",
"handling": "value_replaced_in_all_commits", "credential_rotated": true }
],
"hash_fidelity": { "rewritten": true, "reason": "secret_replacement", "original_hash_map": "maps/original_to_delivered.tsv" }
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Train on cross-package changes
Commits that edit a shared library and its callers together, with dependents rebuilt and tests run, show how to change code other teams rely on.
Evaluate long-horizon refactoring
A sweeping change recorded as dozens of commits across owner groups is a task with a real plan, real ordering and a known end state.
Predict affected tests
A diff paired with the targets it invalidated and the tests that failed trains test selection and impact analysis.
Navigate a very large tree
A package map, build graph and ownership rules let you test whether an agent finds the right files and reviewers without reading everything.
Modernize old-era code
The same tree holds a pattern in its old and current form, so moves from one convention to the next have in-repository references.
Use-case guides: Coding agents, Private evaluation sets, Enterprise and computer-use agents
What makes this data valuable
Graph queryable through history
The build graph loads at many past commits, not only at head.
Pinned toolchains and dependencies
Lock files and checked-in toolchain versions give old commits a chance of building.
Ownership files with their own history
Rules that changed with reorganizations show who owned a path when a commit landed.
Documented migrations
Authors maps, conversion settings and cutover commits are on file for each version-control move.
Stable or mapped hashes
Delivered hashes match the originals, or a mapping joins them to tickets and CI records.
Sweeping changes identifiable
Tags, tracking tickets or commit message conventions group the commits of one repository-wide change.
Record timeline
Monorepo dataset
The build graph makes cross-package work measurable
In a company split across many repositories, a shared library and its consumers meet only through published versions. A breaking change ships, and each consumer finds out when it bumps the version, if it ever does. There is no commit where the change and its consequences sit together. A monorepo builds everything at head, so one commit changes the library and every caller, and the build system knows which targets depend on what. In Bazel a reverse-dependency query on the changed target returns every dependent. Nx derives affected projects from its project graph, and Buck and Pants have equivalents.
That turns a risky change into numbers taken from the repository itself: targets invalidated, tests selected, tests broken, packages edited in the same commit. An agent's patch to a shared library can be scored the same way, by building its dependents. Ownership files add a second measure. A CODEOWNERS file or per-directory OWNERS files map paths to teams, so where owner review is enforced a change that crosses six owners needs an approval from each, and the history shows how engineers split such work into reviewable pieces. Visibility rules on targets record which dependencies the organization forbids.
The graph is only as accurate as the build files, which may be generated by a tool or maintained by hand, and dynamic imports or reflection hide edges from it. A repository that moved from Make, Maven or Gradle to its current build system has a queryable graph for only part of its life. Ask at which commits the graph can be queried.
Eras of convention in one tree and how to check history fidelity
Ten years of commits span several eras. The tree holds code written for successive language versions, two or three generations of in-house framework, and files from before and after a formatter was imposed. Old and new sit side by side because internal migrations rarely finish. That is useful for teaching a model which convention applies in a given directory, and a hazard if every past state is weighted equally, since deprecated patterns then count as much as current ones. Era boundaries should be labeled, and mass-reformat commits, which touch every line, listed the way a blame ignore-revs file lists them.
Many repositories of this age did not start in git, and each migration can lose things without saying so. Subversion records one username per commit with no separate committer, so git authors come from an authors map written at conversion time, and a conversion run without a complete map leaves early engineers under generated identities. Subversion tracks merges in a property on files and directories, which its early releases lacked, and a converter can rebuild a merge only where that property exists and the tool reads it. Converted history is therefore often a straight line in which a long-lived branch lands as one large commit under the name of whoever ran the merge. For a Perforce import, ask whether integrations between branches came through as merges or as plain commits. A repository that passed through CVS has changesets a tool reconstructed from per-file revisions.
Fidelity can be checked on a sample. Count merge commits per year, since none before a certain date usually means flattened history or a rebase-only workflow. One committer account behind thousands of early commits is usually an import script. Look for import fingerprints such as git-svn-id lines, or the depot path and change number git-p4 appends to commit messages, and for one very large commit at a cutover. A flattened era is still good source code, but it should not feed tasks that depend on authorship, review or branch structure.
What to check before licensing
- Ask for an inventory of vendored third-party code across the whole history, not only at head, with licenses, since a full-history license covers every past state of the tree.
- Confirm that secret scanning covered every commit on every branch and tag, including deleted files, and that credentials found were rotated.
- Check history fidelity on the sample: merge commits per year, the share of commits by import or bot identities, and import markers in messages.
- Ask for the authors map and conversion settings from each version-control migration, and how identities were unified before pseudonymization.
- Ask at which commits the build graph can be queried and with which tool versions, and whether builds need remote caches, private registries or internal services.
- Confirm the partner owns every part of the tree, including code from acquired companies, client-specific directories and contractor work, and get the list of excluded paths.
- Ask whether history was filtered or rewritten for delivery, and how large binaries, Git LFS objects, submodules and generated code are handled.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
How is a monorepo different from a set of separate repositories?
A monorepo puts a shared library and all of its callers in one tree with one history, so a single commit can change both and the build system can list everything affected. Separate repositories connect only through published versions, and the effect of a change is spread across later version bumps elsewhere.
How can I tell whether history survived a move from Subversion or Perforce?
Check the sample for the signs of a lossy import. Look for years with no merge commits, a single committer behind thousands of early commits, import markers in commit messages and one very large commit at the cutover date. Where history was flattened, the code is still usable, but authorship and branch structure for that period are not reliable.
Can old commits still be built and tested?
Sometimes, and it should be tested, not assumed. Builds from years ago may depend on compiler and build tool versions, internal package registries, remote caches or services that no longer exist. Ask the partner at which commits a clean checkout builds offline, and specify how many buildable points in history your work needs.
Does a full-history license cover old commits as well as the current tree?
Yes, when the licensed scope is the full history it takes in every past state of the tree, including files deleted years ago. That is why third-party code that was once vendored and credentials that were once committed must be identified across all commits, not only at head. If you ask for paths or date ranges to be left out, the filtering rewrites commit hashes, so ask for a mapping to the originals.
Can I license only part of a monorepo?
You can specify a partial scope, and whether a partner agrees is settled per deal, but a partial scope cuts the build graph. Targets inside your scope will depend on packages outside it, and those edges become dangling references unless the delivery keeps them as graph metadata. Ask for the list of excluded paths and for the share of in-scope targets whose dependencies are all present.
What counts as a repository-wide change?
A repository-wide change is one edit applied across many packages, such as an API rename, a formatter rollout, a build rule migration or the removal of a deprecated library. It is usually driven by a script or codemod and landed as a series of commits split by owner. The record links those commits under one ID with the method, the approvals and any reverts.
Related datasets
- Proprietary codebases with full history
Complete private repositories with full version history, build files, tests and docs
- Software engineering histories (issues, PRs, reviews)
Issues linked to commits, pull requests, code review, CI runs, deploys and incidents
- Dependency upgrade and framework migration histories
The plan, ordered pull requests, codemods, shims, CI results and incidents of one large upgrade in a private codebase
- Legacy and rare-language codebases
Private production code in under-represented languages, with copybooks, job control, data definitions and change history
- CI/CD pipeline logs and build failures
Pipeline runs with step logs and exit codes, joined to triggering and fixing commits
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 25 November 2026. Own data like this? See how companies license it to AI developers.