Skip to content

Commit

Permalink
Update license
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuel-keller committed Nov 11, 2016
1 parent 6002755 commit 03c191b
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 32 deletions.
25 changes: 1 addition & 24 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -175,27 +175,4 @@

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright {yyyy} {name of copyright owner}

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

32 changes: 24 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# Number of active repositories in GitHub

This little GO program requests the
[GitHub API](https://developer.github.com/v3/search/#search-repositories)
to extract the **per language** and **per month** number of active repositories.
**Per language** and **per month**

Here are the current results from 2014 to 2016 (until october).
Here are the current results from 2014 to 2016 (until october)

![Statistiques](stats.png)

## 2014 statistics
### 2014 statistics

| Language | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
| :--- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
Expand All @@ -18,7 +16,7 @@ Here are the current results from 2014 to 2016 (until october).
| Rust | 112 | 80 | 77 | 100 | 124 | 117 | 169 | 185 | 146 | 238 | 303 | 313 |
| Swift | 0 | 0 | 0 | 0 | 0 | 1005 | 942 | 1077 | 2343 | 2777 | 2512 | 2344 |

## 2015 statistics
### 2015 statistics

| Language | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
| :--- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
Expand All @@ -28,12 +26,30 @@ Here are the current results from 2014 to 2016 (until october).
| Rust | 423 | 336 | 399 | 421 | 747 | 612 | 609 | 592 | 616 | 600 | 625 | 717 |
| Swift | 2864 | 3079 | 3699 | 4242 | 4252 | 4542 | 4362 | 4376 | 5256 | 6511 | 6753 | 7366 |

## 2016 statistics
### 2016 statistics

| Language | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
| :--- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
| C++ | 19457 | 20193 | 26515 | 26144 | 26067 | 24053 | 21107 | 23883 | 29582 | 42153 | | |
| Java | 72445 | 80629 | 103005 | 104095 | 101442 | 96881 | 92797 | 102902 | 124221 | 157682 | | |
| Go | 5044 | 5077 | 6222 | 6233 | 6377 | 6354 | 6692 | 8076 | 9309 | 11895 | | |
| Rust | 925 | 826 | 1065 | 1063 | 1285 | 1323 | 1285 | 1568 | 1755 | 2495 | | |
| Swift | 8377 | 9948 | 10328 | 9846 | 10042 | 10403 | 10474 | 10832 | 13832 | 13832 | | |
| Swift | 8377 | 9948 | 10328 | 9846 | 10042 | 10403 | 10474 | 10832 | 13832 | 13832 | | |

## The Go program

If you want to fork or reuse this program, here are some useful informations.

This little GO program requests the
[GitHub API](https://developer.github.com/v3/search/#search-repositories)

A typical request for one language for one month is:
https://api.github.com/search/repositories?q=language%3AC%2B%2B%20pushed%3A2016-11

The program exposes the following resource:

http://localhost/{year}

A CSV file is returned.

The program is slow because to not exceed the current rate limit (10 requests/minute)
15 changes: 15 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
Copyright 2016 Emmanuel Keller
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package main

import (
Expand Down

0 comments on commit 03c191b

Please sign in to comment.