From 03c191b9079da9ac8d606fe7abbee71cd8cc507f Mon Sep 17 00:00:00 2001 From: Emmanuel Keller Date: Fri, 11 Nov 2016 17:31:19 +0100 Subject: [PATCH] Update license --- LICENSE | 25 +------------------------ README.md | 32 ++++++++++++++++++++++++-------- main.go | 15 +++++++++++++++ 3 files changed, 40 insertions(+), 32 deletions(-) diff --git a/LICENSE b/LICENSE index 8dada3e..4909afd 100644 --- a/LICENSE +++ b/LICENSE @@ -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. + diff --git a/README.md b/README.md index 6866523..eff7c9e 100644 --- a/README.md +++ b/README.md @@ -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 | | :--- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | @@ -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 | | :--- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | @@ -28,7 +26,7 @@ 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 | | :--- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | @@ -36,4 +34,22 @@ Here are the current results from 2014 to 2016 (until october). | 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 | | | \ No newline at end of file +| 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) \ No newline at end of file diff --git a/main.go b/main.go index 7ce3e70..b7c50b4 100644 --- a/main.go +++ b/main.go @@ -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 (