Skip to content

Data types

Selling source code to AI companies: what to know

By Noah Loul · Updated

9 sections

Short answer

Source code can be valuable to AI companies because they teach coding models real-world engineering practices. They are typically licensed under a written agreement rather than sold outright, and preparation usually involves checking licenses and scrubbing secrets.

Document stack

Data types

Source code can be valuable to AI companies because they teach coding models real-world engineering practices. They are typically licensed under a written agreement rather than sold outright, and preparation usually involves checking licenses and scrubbing secrets.Illustrative

Why it's valuable

Source code teach coding models real-world engineering practices. Large volumes, long histories and specialized domains increase interest.

How to prepare it

Preparation commonly involves checking licenses and scrubbing secrets.

On SourceX deals, SourceX de-identifies the data, through approved processing routes, before it is used or shared.

Licensing terms

With SourceX, the signed supplier agreement sets the data in scope, the exclusivity term, the fee and payment timing. It also records that re-identification may still be possible and that SourceX is not liable for it.

What a code dataset contains

A repository holds more than source files. The history around the code, meaning who changed what, why, and what reviewers said, is often what an AI team values most.

What a code dataset contains
Part of the repositoryWhat it showsWhat is checked first
Source filesHow working software is structuredThird-party and open-source code
Commit historyHow code changes over time, and whyNames and emails of contributors
Pull requests and reviewsHow engineers critique and improve codeCustomer names and internal references
TestsWhat correct behaviour looks likeTest data copied from real records
Configuration filesHow systems are set upKeys, tokens and passwords

Ownership comes first

Code is the data type where ownership is most often mixed. A typical repository contains code your employees wrote, code contractors wrote, open-source libraries and sometimes code written for a customer.

Employee code is usually the company's, under employment and IP assignment terms. Contractor code depends on the contract. Code written for a customer may belong to the customer.

Open-source components keep their own licenses. Some licenses carry conditions on redistribution, so the open-source parts of a repository are identified and handled separately from your own code.

Secrets and personal details in code

Repositories often contain credentials. Keys, tokens and passwords get committed by accident, and they stay in the history even after they are deleted from the current files. Scrubbing covers the history, not only the latest version.

Commit metadata carries names and email addresses. Comments and test fixtures sometimes hold customer names or real records copied in for debugging.

PII detection is automated scanning that finds personal details, such as names, emails, phone and account numbers, in data. Tools combine pattern matching with named entity recognition, with human review of samples to measure what was missed.

What makes a code dataset stronger

Review history. Pull requests where engineers explain what is wrong and how to fix it teach more than the final code does.

Tests and outcomes. Code with tests shows what correct behaviour looks like, which matters for evaluation.

Rarity. Legacy languages and specialized domains are harder to find publicly than mainstream web code.

On a SourceX deal

SourceX also reviews source code, CAD files, audio, video and games. A company that lists source code is asked a few facts about it once, and those answers travel with the inventory.

The signed supplier agreement sets the data in scope, so you choose which repositories are included and which stay out.

Find out if yours qualifies

SourceX licenses data like this directly from companies and pays them for it: we handle everything from qualification and rights review to contracts, delivery and payment. We can check current demand; nothing is shared during the initial assessment. See if your company's data qualifies.

Frequently asked questions

Can I license the same data to multiple Acquisition Partners?

Often yes, unless you grant exclusivity.

Can I license code that includes open-source libraries?

Your own code may be licensable. Open-source components keep their own licenses and are identified and handled separately.

What about secrets committed years ago?

They remain in the history, so scrubbing covers the full history and not only the current files.

Do I choose which repositories are included?

Yes. The signed supplier agreement sets the data in scope.

See if your company qualifies

A short company assessment. No data uploads are needed.

See if your company qualifies