Code Monkey home page Code Monkey logo

github-statistics's Introduction

Installation

  • make sure required files have been installed ('sudo gem install [...]')

Use

  • Run: 'rake rip:repositories'
  • Run: 'rake rip:commits'

github-statistics's People

Contributors

andrewvos avatar michaelminter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

github-statistics's Issues

missing repositories.yml

I am interested in using your ruby scripts to collect commit messages from Github. I will performing sentiment analysis on them.

Since the repositories.yml ( or commits*.yml) was not available, I defined one for my experiment. Unfortunately, the way I defined this file does not seem to match the format expected by your program.

For example, this is what I have in repositories.yml:
[{user_id: rails, repository: rails}, {user_id: MacRuby, repository: MacRuby}]

or

  • { user_id: rails, repository: rails }
  • { user_id: MacRuby, repository: MacRuby }

Then, when I executed the following rake rip:commits, I get the following errors

** Invoke rip:commits (first_time)
** Execute rip:commits
Repository 1 of 2
repositoryrailsuser_idrails
repositoryrailsuser_idrails
nil
Commit page 1
rake aborted!
undefined method map' for nil:NilClass /github-statistics/lib/github_commit_ripper.rb:38:inrip_commits'
/github-statistics/lib/github_commit_ripper.rb:28:in loop' /github-statistics/lib/github_commit_ripper.rb:28:inrip_commits'
/github-statistics/lib/github_commit_ripper.rb:14:in rip_all_commits' /github-statistics/lib/github_commit_ripper.rb:11:ineach_index'
/github-statistics/lib/github_commit_ripper.rb:11:in rip_all_commits' /github-statistics/Rakefile:21 /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:incall'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in execute' /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:ineach'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in execute' /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:ininvoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in synchronize' /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:ininvoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in invoke' /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:ininvoke_task'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in top_level' /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:ineach'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in top_level' /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:instandard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:in top_level' /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:inrun'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in standard_exception_handling' /Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:inrun'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2.2/bin/rake:33
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
Tasks: TOP => rip:commits
nil
http://github.com/api/v2/json/commits/list///master/?page=1{"error":"api route not recognized"}

From the last line, the values for user_id and repository are nil.

Any help on the repositories.yml file or any other file that I need in order to run your scripts will be greatly appreciated. Thanks.

Huascar A. Sanchez

Are you taking into a ratio of cuss words, or just all cuss words?

If it's just all the cuss words than the data is sort of useless. If JS, for example, has 1000 projects and Python has 3 and in Pythons 3 projects there are 100 cuss words and there are 200 in the JS projects, thatd mean Python coders actually cuss more.

I was wondering if that's taken into account or if it's just a simple count of every time someone cussed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.