Skip to content

Commit

Permalink
re-integrated with some changes from paulmillr
Browse files Browse the repository at this point in the history
  • Loading branch information
oskar-j committed Nov 12, 2013
1 parent 990f027 commit 109da8c
Show file tree
Hide file tree
Showing 167 changed files with 32,504 additions and 27 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
all: get format

get:
../node_modules/coffee-script/bin/coffee -c get-repositories.coffee
../node_modules/coffee-script/bin/coffee -c get-details.coffee
../node_modules/coffee-script/bin/coffee get-users.coffee
../node_modules/coffee-script/bin/coffee get-details.coffee

format:
../node_modules/coffee-script/bin/coffee format-languages.coffee
../node_modules/coffee-script/bin/coffee format-users.coffee
../node_modules/coffee-script/bin/coffee format-repositories.coffee
File renamed without changes.
53 changes: 42 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,46 @@
cs-github-wikiteams
===================
# GitHub top users

This software is available to public
Generated stats: [git.io/top](http://git.io/top).

Copyright (C) 2013 - WikiTeams contributors
## Usage

cs-github-wikiteams is for free. You don't have to pay for it, and you can use it any way you want. It is developed as an Open Source project under the GNU General Public License (GPL). That means you have full access to the source code of this program. You can find it on our website at https://github.com/wikiteams/cs-github-wikiteams
Should you wish to modify or redistribute this program, or any part of it, you should read the full terms and conditions set out in the license agreement before doing so. A copy of the license is available on our website.
If you simply wish to install and use this software, you need only be aware of the disclaimer conditions in the license, which are set out below.
NO WARRANTY
Because the program is licensed free of charge, there is no warranty for the program, to the extent permitted by applicable law. Except when otherwise stated in writing the copyright holders and/or other parties provide the program "as is" without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the quality and performance of the program is with you. Should the program prove defective, you assume the cost of all necessary servicing, repair or correction.
In no event unless required by applicable law or agreed to in writing will any copyright holder, or any other party who may modify and/or redistribute the program as permitted above, be liable to you for damages, including any general, special, incidental or consequential damages arising out of the use or inability to use the program (including but not limited to loss of data or data being rendered inaccurate or losses sustained by you or third parties or a failure of the program to operate with any other programs), even if such holder or other party has been advised of the possibility of such damages.
Make sure you’ve got node.js and coffeescript installed.

This script allows to parse 1000 "biggest repositories" with a coffescript
```bash
# Install deps.
npm install
# Download and format everything.
make

# or

# Download data.
make get

# Generate stats.
make format
```

## License

The MIT License (MIT)

Copyright (c) 2013 Paul Miller (http://paulmillr.com/)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
1 change: 1 addition & 0 deletions check-logins.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ filtered = prev
.sort (a, b) ->
b.followers - a.followers

console.log 'Filtered logins:'
console.log filtered
console.log JSON.stringify filtered.map(utils.prop 'login'), null, 2
17 changes: 12 additions & 5 deletions format-users.coffee
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#!/usr/bin/env coffee
fs = require 'fs'

# Reducer.
minimum = (min, current) ->
if current < min
current
else
min

top = (stats, field, type) ->
get = (stat) ->
value = stat[field]
Expand All @@ -23,9 +30,9 @@ top = (stats, field, type) ->
.join ', '

stats2markdown = (datafile, mdfile, title) ->
minFollowers = 176
maxNumber = 256
stats = require(datafile)
minFollowers = stats.map((_) -> _.followers).reduce(minimum, 1000)
maxNumber = 256

today = new Date()
from = new Date()
Expand All @@ -46,12 +53,12 @@ stats2markdown = (datafile, mdfile, title) ->
.slice(0, #{maxNumber})
```
Made with data mining of GitHub.com ([raw data](https://gist.github.com/4524946), [script](https://github.com/paulmillr/top-github-users)) by [@paulmillr](https://github.com/paulmillr) with contribs of [@lifesinger](https://githubcom/lifesinger). Updated every sunday.
Made with data mining of GitHub.com ([raw data](https://gist.github.com/4524946), [script](https://github.com/paulmillr/top-github-users)) by [@paulmillr](https://github.com/paulmillr) with contribs of [@lifesinger](https://github.com/lifesinger). Updated once per week.
<table cellspacing="0"><thead>
<th scope="col">#</th>
<th scope="col">Username</th>
<th scope="col">Contributions</th>
<th scope="col">User</th>
<th scope="col">Contribs</th>
<th scope="col">Language</th>
<th scope="col">Location</th>
<th scope="col" width="30"></th>
Expand Down
Loading

0 comments on commit 109da8c

Please sign in to comment.