<commit_before>---
author: vadim
date: 2016-09-12
title: "397 Languages, 18,000,000 GitHub repositories, 1.2 billion files, 20 terabytes of code: Spaces or Tabs"
draft: false
image: /post/tab_vs_spaces/intro.png
description: "Comprehensive study of spaces and tabs usage in source code in GitHub repositories"
---
Tabs or spaces. We are going to parse every file among all programming languages known by GitHub to decide which one is on top.

<a href="http://content.blog.sourced.tech/tabs_spaces/index.html">![image](/post/tab_vs_spaces/intro.png)</a>

This was inspired by <NAME>'s analysis of 400k repositories and 14 programming languages ([here](https://medium.com/@hoffa/400-000-github-repositories-1-billion-files-14-terabytes-of-code-spaces-or-tabs-7cfe0b5dd7fd)).

[Interactive results presentation.](http://content.blog.sourced.tech/tabs_spaces/index.html)

[GitHub repository with the data.](https://github.com/src-d/tab-vs-spaces)

The rules
---------
* Data source: GitHub files stored in source{d}'s own GitHub mirror as of July 2016.<commit_msg>change publication date<commit_after>---
author: vadim
date: 2016-09-13
title: "397 Languages, 18,000,000 GitHub repositories, 1.2 billion files, 20 terabytes of code: Spaces or Tabs"
draft: false
image: /post/tab_vs_spaces/intro.png
description: "Comprehensive study of spaces and tabs usage in source code in GitHub repositories"
---
Tabs or spaces. We are going to parse every file among all programming languages known by GitHub to decide which one is on top.

<a href="http://content.blog.sourced.tech/tabs_spaces/index.html">![image](/post/tab_vs_spaces/intro.png)</a>

This was inspired by <NAME>'s analysis of 400k repositories and 14 programming languages ([here](https://medium.com/@hoffa/400-000-github-repositories-1-billion-files-14-terabytes-of-code-spaces-or-tabs-7cfe0b5dd7fd)).

[Interactive results presentation.](http://content.blog.sourced.tech/tabs_spaces/index.html)

[GitHub repository with the data.](https://github.com/src-d/tab-vs-spaces)

The rules
---------
* Data source: GitHub files stored in source{d}'s own GitHub mirror as of July 2016.
{'fraction_non_alphanumeric': 0.12582159624413145, 'fraction_numerical': 0.04225352112676056, 'mean_word_length': 4.682666666666667, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4599517', 'n_tokens_mistral': 772, 'n_tokens_neox': 643, 'n_words': 207}