---
title: "Buying software engineering data for AI: repositories, issues, reviews"
description: "What software engineering data AI teams buy, from repositories to issues and code review, what makes it usable, UK ownership checks and what is removed."
canonical: https://plety.net/about/for-buyers/buying-software-engineering-data
last-updated: 2026-11-30
---

# Buying software engineering data for AI: repositories, issues, reviews

By Plety. Updated 2026-11-30.

Buying software engineering data for AI means licensing a company's private repositories with their commit history, issues, pull requests and review comments, after the company has removed secrets, personal data and code it does not own. The buyer checks who owns the code, which outside licences and client contracts apply, and whether the history and tests are complete enough to use.

## What software engineering data do AI developers buy, and why?

Software engineering data is the working record of how a team builds software: source code with its commit history, the issues that report bugs and requests, the pull requests that propose changes, reviewers' comments and the results of automated tests.

Published work shows four uses. For evaluation, SWE-bench (Jimenez and others, ICLR 2024) turned 2,294 real GitHub issues and their pull requests from 12 popular Python repositories into tasks; at publication the best model, Claude 2, solved 1.96%. For agent environments, SWE-Gym (Pan and others, arXiv, December 2024) packages 2,438 real Python tasks, each with a codebase, an executable runtime, unit tests and a task in natural language, and its authors reported gains of up to 19 percentage points in resolve rate from training on it. For training, SWE-RL (Wei and others, arXiv, February 2025) applied reinforcement learning to open software evolution data, meaning code snapshots, changes, issues and pull requests, and reported a 41.0% solve rate on SWE-bench Verified. For code review, CodeReviewer (Li and others, arXiv, March 2022) was pre-trained on code changes and reviews from open-source projects in nine languages.

All four were built from public open-source projects. Licensed private repositories add work that is not in public sets, which is also why the rights checks below matter. The seller's side of review and issue history is at https://plety.net/about/records/code-review-and-issue-history.

## What makes a software archive usable?

A software archive is usable when its history is complete, issues link to the changes that fixed them, and the tests still run. SWE-bench and SWE-Gym both depend on that pairing of a problem, a fix and a test, so a buyer should ask about those links before anything else.

*What a buyer should ask about a software archive*

| Feature | Why it matters | Question for the seller |
| --- | --- | --- |
| Full Git history | Training on changes needs every commit, not a snapshot | Is history exported with all branches and tags? |
| Issue and pull request links | Pairs a problem with its fix | What share of merged pull requests reference an issue? |
| Review comments | Trains and tests review tools | Are line-level comments, suggestions and approval states kept? |
| Tests and build files | Lets a grader run the code | Do tests run in a container, and are past CI results included? |
| Languages and frameworks | Buyers fill gaps in what their models know | How many lines of code are there in each language, and which frameworks? |
| Time span and team size | Shows how the codebase evolved | What are the first and last commit dates, and how many contributors were there? |

## Which UK legal points must a buyer check?

A buyer must check who owns the code, which third-party licences and client contracts apply, and how personal data in the history was handled. A computer program is a literary work under section 3(1)(b) of the Copyright, Designs and Patents Act 1988. Under section 11(2), an employer owns copyright in work its employees make in the course of employment, subject to any agreement to the contrary; under section 11(1), the author owns everything else first, so code written by contractors stays with them unless it was assigned. Section 90(3) says an assignment is not effective unless it is in writing and signed by or on behalf of the assignor, so the buyer should ask for the contractor agreements.

Third-party code and client work come next. Open-source code copied into a repository keeps its own licence terms; the authors of The Stack, for example, kept only permissively licensed code and set up a way for developers to have their code removed. Agencies and software houses may have written code for clients under contracts that give the client the rights, and that code is not the seller's to license.

Personal data sits in the history itself. Git records each author's name and email address, and the Pro Git book says this information is immutably baked into every commit. Issues and logs can also hold customer data pasted in to reproduce bugs. Licensing that data is processing that needs a lawful basis under Article 6(1) of the UK GDPR, and notice under Article 13(3) or 14(4) before the new use starts. Recording consent does not arise for code, but recorded stand-ups or design calls bundled with it bring in the checks at https://plety.net/about/for-buyers/buying-sales-call-recording-data.

## What must the seller remove first?

The seller must remove secrets, personal data and code it does not own, inside its own systems, before any repository is delivered. GitHub's secret scanning, as of November 2026, scans the entire Git history on all branches and the descriptions and comments of issues and pull requests for credentials such as API keys, passwords and tokens. GitHub advises rotating an exposed credential immediately and notes that removing secrets from history is time-intensive and often unnecessary once the credential is revoked, so the seller should revoke every key it finds, not only mask it.

Personal data should be replaced with consistent tokens: author names and emails rewritten across the history, and customer data scrubbed from issues, logs and test fixtures. Client repositories, code under licences the buyer will not accept and anything covered by a non-disclosure agreement should be left out, and the seller should list what was left out and why.

## How is software data delivered, and with what provenance?

Software data is usually delivered as Git bundles or mirror clones that keep the full history, with issues, pull requests and review comments exported as JSON keyed by repository and number, plus a manifest listing every file with its checksum. If the buyer plans to run tests, the seller should say how each repository builds, ideally with a container definition.

The provenance record should list the repositories included and excluded, the date range, the secret-scanning and masking methods, an inventory of third-party licences and the permitted uses, such as training, evaluation or both. Files go straight from the company to the buyer. Plety, which acts for sellers, never holds, views or passes on records, samples, logins or money.

## Questions

### Is public open-source code a substitute?

For some uses. The Stack alone holds 3.1 TB of permissively licensed code in 30 programming languages (Kocetkov and others, November 2022), but private repositories, with their issues and reviews, cover work that public sets do not.

### Why does private code help evaluation?

Code that has never been public is less likely to be in a model's training data, so tests built from it are less exposed to data contamination; see https://plety.net/about/for-buyers/what-is-data-contamination-in-ai. The licence should say whether the buyer may publish tasks built from it.

### Does the seller need to keep its GitHub organisation open?

Only until the export is checked. The buyer should confirm that the bundles, issue exports and checksums match the manifest before the seller closes accounts or deletes repositories.

## Sources

- [Copyright, Designs and Patents Act 1988, section 11 (first ownership of copyright)](https://www.legislation.gov.uk/ukpga/1988/48/section/11)
- [Copyright, Designs and Patents Act 1988, section 90 (assignment and licences)](https://www.legislation.gov.uk/ukpga/1988/48/section/90)
- [Jimenez and others, SWE-bench: can language models resolve real-world GitHub issues? (ICLR 2024)](https://arxiv.org/abs/2310.06770)
- [Pan and others, Training software engineering agents and verifiers with SWE-Gym (arXiv, December 2024)](https://arxiv.org/abs/2412.21139)
- [Wei and others, SWE-RL: reinforcement learning on open software evolution (arXiv, February 2025)](https://arxiv.org/abs/2502.18449)
- [Li and others, Automating code review activities by large-scale pre-training (arXiv, March 2022)](https://arxiv.org/abs/2203.09095)
- [Kocetkov and others, The Stack: 3 TB of permissively licensed source code (arXiv, November 2022)](https://arxiv.org/abs/2211.15533)
- [GitHub Docs, About secret scanning (as of November 2026)](https://docs.github.com/en/code-security/concepts/secret-security/secret-scanning)

## Read next

- [Licensing source code to AI buyers](https://plety.net/about/records/source-code.md)
- [Licensing code review and issue history to AI buyers](https://plety.net/about/records/code-review-and-issue-history.md)
- [How to license GitHub repositories and issues to AI companies](https://plety.net/about/records/github-repositories-and-issues.md)
- [Licensing records from a software or SaaS company](https://plety.net/about/industries/software-and-saas-companies.md)
- [What are RL environments for AI agents?](https://plety.net/about/for-buyers/what-are-rl-environments-for-ai-agents.md)

---

Plety Limited, company number 17598186, registered in England and Wales. Registered office: 15 Hackbridge, Wallington, United Kingdom, SM6 7AU. Contact: partnerships@plety.net. Book a call: https://plety.net/book.

General information, not legal advice.
