• Stars
    star
    778
  • Rank 58,431 (Top 2 %)
  • Language
    JavaScript
  • License
    GNU Affero Genera...
  • Created about 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Github Language Statistics

GitHub Language Statistics

License (AGPL-3.0) Issue Count Code Style

Data Generation

Languages

Get language top list for Github

SELECT language.name, COUNT(language.name)
AS count FROM [bigquery-public-data:github_repos.languages]
group by language.name order by count DESC

Result of first 10 from 322

{"language_name":"JavaScript","count":"1006022"}
{"language_name":"CSS","count":"745573"}
{"language_name":"HTML","count":"663315"}
{"language_name":"Shell","count":"593461"}
{"language_name":"Python","count":"492715"}
{"language_name":"Ruby","count":"365413"}
{"language_name":"Java","count":"340622"}
{"language_name":"PHP","count":"328907"}
{"language_name":"C","count":"286272"}
{"language_name":"C++","count":"267552"}
...

Licenses

Get license top list for Github

SELECT license, COUNT(license)
AS count FROM [bigquery-public-data:github_repos.licenses]
group by license order by count DESC

Full result

{"license":"mit","count":"1551711"}
{"license":"apache-2.0","count":"455316"}
{"license":"gpl-2.0","count":"376453"}
{"license":"gpl-3.0","count":"284761"}
{"license":"bsd-3-clause","count":"161041"}
{"license":"bsd-2-clause","count":"57412"}
{"license":"unlicense","count":"43899"}
{"license":"lgpl-3.0","count":"38213"}
{"license":"agpl-3.0","count":"38034"}
{"license":"cc0-1.0","count":"28600"}
{"license":"epl-1.0","count":"24074"}
{"license":"lgpl-2.1","count":"23872"}
{"license":"isc","count":"17690"}
{"license":"mpl-2.0","count":"17421"}
{"license":"artistic-2.0","count":"9413"}

Pull Requests

Get the number of Pull Requests per day/month/year

SELECT language as name, year, quarter, count FROM ( SELECT * FROM (
SELECT lang as language, y as year, q as quarter, type,
COUNT(*) as count FROM (SELECT a.type type, b.lang lang, a.y y, a.q q FROM (
SELECT type, actor.login, YEAR(created_at) as y, QUARTER(created_at) as q,
STRING(REGEXP_REPLACE(repo.url, r'https:\/\/github\.com\/|https:\/\/api\.github\.com\/repos\/', '')) as name
FROM [githubarchive:month.201901] WHERE NOT LOWER(actor.login) LIKE "%bot%") a
JOIN ( SELECT repo_name as name, lang FROM ( SELECT * FROM (
SELECT *, ROW_NUMBER() OVER (PARTITION BY repo_name ORDER BY lang) as num FROM (
SELECT repo_name, FIRST_VALUE(language.name) OVER (
partition by repo_name order by language.bytes DESC) AS lang
FROM [bigquery-public-data:github_repos.languages]))
WHERE num = 1 order by repo_name)
WHERE lang != 'null') b ON a.name = b.name)
GROUP by type, language, year, quarter
order by year, quarter, count DESC)
WHERE count >= 100) WHERE type = 'PullRequestEvent'

Manual

Googles BigQuery is free for public datasets like Github, Reddit or Stackoverflow. It is limited to 1000 GB query volume per month. One of the querys above takes about 50-200 MB query volume. The public dataset for Github is available here: https://cloud.google.com/bigquery/public-data/github

URL Schema

madnight.github.io/githut/#/pull_requests/2021/1/Python,Lua,JavaScript
                                 β–²         β–²   β–²        β–²
                                 β”‚         β”‚   β”‚        β”‚
                pull_requests β”€β”€β”€β”˜   year β”€β”˜   β”‚        └─ languages
                pushes                         └─ quarter
                stars
                issues

More Repositories

1

bitcoin-chart-cli

Bitcoin chart for the terminal as command line util
JavaScript
300
star
2

wallstreet

Stock Quotes and Charts for the Terminal
HTML
89
star
3

nano

Mirror of git://git.sv.gnu.org/nano.git
C
74
star
4

awesome-category-theory

A curated list of awesome Category Theory resources.
61
star
5

asciichart

ASCII line charts in terminal β•­β”ˆβ•― Haskell port of kroitor/asciichart
Haskell
27
star
6

dotfiles

Personal set of vim, zsh, git configs and scripts.
Shell
27
star
7

imdb-series-chart

Visualize the IMDB rating of every episode for any TV series.
JavaScript
24
star
8

ndjson-to-json

Converts NDJSON to JSON
JavaScript
17
star
9

kalonline-mod-collection

Kal Online game reverse engineering / modding
C++
13
star
10

babel-preset-php

Mirror of https://gitlab.com/kornelski/babel-preset-php
JavaScript
9
star
11

monad-in-pictures-german

Funktoren, Applikative und Monaden in Bildern
8
star
12

cryptocurrency-calculator-cli

Cryptocurrency Converter Calculator as command line util
JavaScript
8
star
13

jdownloader

Mirror of svn://svn.jdownloader.org/jdownloader/trunk
Java
4
star
14

MetaGer

Mirror of https://gitlab.metager3.de/open-source/MetaGer
PHP
4
star
15

grendy

Github Trending Repositories
PureScript
4
star
16

haskell-logs

Haskell freenode IRC logs
3
star
17

cnbc-market

Stock market information from CNBC
JavaScript
3
star
18

scidvspc

Mirror of svn://svn.code.sf.net/p/scidvspc/code
Tcl
2
star
19

blog

JavaScript
2
star
20

grendel

Grendel is the GitHub Trends API for Grendy
Haskell
2
star
21

yaimdba

Yet another IMDB API
Dockerfile
2
star
22

nightcap

Cryptocurrency Multiple Time Frame RSI Alert
Python
2
star
23

filezilla

Mirror of https://svn.filezilla-project.org/svn/FileZilla3/trunk
C++
1
star
24

lfs

Mirror of svn://svn.linuxfromscratch.org/LFS/trunk/book
XSLT
1
star
25

chessx

Mirror of svn://svn.code.sf.net/p/chessx/code/trunks
C++
1
star
26

dotfiles-mobile

Dotfiles notebook
Shell
1
star
27

wss-recorder-haskell

Record all data from a websocket stream into a mongodb.
Haskell
1
star
28

spon-market

SPON market indicies
JavaScript
1
star
29

jdownloader-client

Mirror of svn://svn.jdownloader.org/jdownloader/MyJDownloaderClient
Java
1
star
30

vim-swap-lines

Move entire line up and down in Vim ( like Ctrl + Shift + Up / Down in other Editors )
Vim Script
1
star
31

gnuchess

Mirror of svn://svn.sv.gnu.org/chess/trunk
C++
1
star
32

cnn-market

Stock market information from CNN
JavaScript
1
star
33

valgrind

Mirror of svn://svn.valgrind.org/valgrind/trunk
C
1
star
34

codeblocks

Mirror of svn://svn.code.sf.net/p/codeblocks/code/trunk
C++
1
star
35

wss-recorder

Record all data from a websocket stream into a mongodb.
JavaScript
1
star