Apta Innovations Limited · Source Code Acquisition

What's your code worth?

Enter your lines of code, and your git history if you have it, and the value range calculates itself. Repositories start at 30,000 lines. You keep all your rights.

Showing a few example repositories. Type your own to take over.

Lines of code as counted by cloc: the SUM row, code column. How to count

Git history (optional)

Leave a field blank if you're not sure: it simply earns no credit. How to count

Each commit once, across your local and origin branches and your tags. Run git fetch first. git rev-list --count --branches --remotes=origin --tags

Open, closed and merged, with the GitHub CLI. On GitLab, count merge requests (All). gh pr list --state all --limit 1000 --json number --jq length

Each branch name once, local and on origin together. Run git fetch first; on Windows, use Git Bash. The command

Estimated acquisition value

Enter your lines of code.

Likely

An indicative range, not an offer. It moves with your exact line count and history. The final price is negotiable depending on your project: its stack, completeness, code quality and history. Well-built repositories can earn a quality bonus of up to 20% after technical review.

This is an estimate, not an offer. Final offers are subject to verification, code quality assessment and approval by Apta Innovations Limited.

How this is calculated

  • Lines of code set the value. It grows a little slower than the line count: twice the lines comes to about 67% more, not 100% more. A 100,000-line repository with no history credit is UGX 1,100,000.
  • Your git history adds a credit of up to 35% in total: up to 18% for history depth (commits, full at 1,000), up to 15% for a review record (pull requests, full at 100) and up to 4% for breadth (branches, full at 10). Each credit grows quickly at first, then levels off. Blank fields earn no credit and never lower the estimate.
  • The range runs from about 21% below to 26% above the likely figure. That is how far comparable past repositories landed from what this formula would have predicted for them: most fell inside it, some did not.
  • It is indicative, not an offer. The final price follows verification of the line count and history, a code quality review (worth up to +20%) and approval by Apta Innovations Limited.
Submit your repoHappy with the estimate? Submit before 30 October 2026.

How to count your lines

Count your own code only, excluding dependencies and build output. The free tool cloc does this for you.

1. Install
  • macOS
    brew install cloc
  • Windows
    choco install cloc
  • Linux
    sudo apt install cloc
  • Any OS with Node.js
    npm install -g cloc
2. Run it from the root of your repo
cloc --vcs=git .

--vcs=git counts only files tracked by git, so node_modules, build folders and anything in .gitignore are skipped.

3. Use the SUM row, code column
Example cloc output
Languagefilesblankcommentcode
TypeScript4126,2102,90448,377
Kotlin1983,1021,24021,560
JSON37004,118
SUM6479,3124,14474,055

In this example you would enter 74,055. Prefer scc? Run scc . in the repo root and use the Total row, Code column.

Or run our check-repo.sh, which counts your lines with cloc (or scc) and checks the repo is ready to share. How to use it.

4. Count your history (optional)

Run these from the root of your repo, after git fetch. They only read your history and change nothing. On Windows, run them in Git Bash.

  • Commits
    git rev-list --count --branches --remotes=origin --tags
  • Pull requests
    gh pr list --state all --limit 1000 --json number --jq length
  • Branches
    git for-each-ref --format='%(refname)' refs/heads refs/remotes/origin | sed -e 's#^refs/heads/##' -e 's#^refs/remotes/origin/##' | grep -vx HEAD | sort -u | wc -l

The branch command lists your local branches and the ones on origin, strips the prefixes and counts each name once, so main and origin/main are one branch. The commit command likewise counts each commit once across local branches, origin and tags. The pull request command needs the GitHub CLI, signed in.

You keep all your rights

Ownership and copyright stay with you. Nothing about your code changes hands.

Verified line count

The offer is based on the verified lines of code, excluding dependencies, generated files, duplicated code and build output.

How it works
Deadline · 30 October 2026

Know your price? Tell us about your project.

Questions? WhatsApp Cephas Brian on 0758 294 212 or email xephas@aptahq.com or projects@aptahq.com