Skip to content
This repository has been archived by the owner on Jun 3, 2018. It is now read-only.


Folders and files

Last commit message
Last commit date

Latest commit



93 Commits

Repository files navigation

repostruct Code Health Scrutinizer Code Quality Dependency Status

Collect the folder structures for all Github Repositories of the major programming languages. Contains 1.5 billion filepaths from 7 million repos as of August 2015.


You can download the dataset (13.5GB) from AWS S3.

wget -c
tar -xvz repos.json

Data sample

The data is stored as a JSON file (like the GitHub archive logs) with a single JSON object per line.

Below is an example how the data is structured (for clarity I split it up on multiple lines).


      ["Ruby", "100.0"]

The language_statistics contains the percentage of the languages found in the repository.


Folder structures are pretty boring you think? This dataset could help to answer questions like below:

  • Which Languages use CI Services on Github?
  • How many people use Makefiles?
  • What is the most common folder structure for node projects?
  • Which languages adopt Docker the most (check for Dockerfile)
  • What is the most popular Javascript build tool (check for Gruntfile.js or Gulpfile.js)
  • What is the most popular Java build tool (check for pom.xml or build.gradle)
  • How many files are in a repo on average?
  • What programming languages are mixed together in a project most common?
  • Do people prefer naming the folders css or stylesheets?
  • Which programming languages have the deepest folder hierarchies (I guess Java?)
  • Do people keep executables or build artifacts in their repos?

Run it yourself

Fetch latest GitHub repos

Iterate through all repositories from GitHub that are not forks. If the program times out due to API limitations you can simply continue with the last repository id you fetched.

export GITHUB_ACCESS_TOKEN="adsf24.."
./ <last-repo-id>

Fetch repos from Github Archive

Find all repos that were created or modified in January 2015.

./ 2015 1 >> 2015_jan.txt