- make sure required files have been installed ('sudo gem install [...]')
- Run: 'rake rip:repositories'
- Run: 'rake rip:commits'
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
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:in
rip_commits'
/github-statistics/lib/github_commit_ripper.rb:28:in loop' /github-statistics/lib/github_commit_ripper.rb:28:in
rip_commits'
/github-statistics/lib/github_commit_ripper.rb:14:in rip_all_commits' /github-statistics/lib/github_commit_ripper.rb:11:in
each_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:in
call'
/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:in
each'
/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:in
invoke_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:in
invoke_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:in
invoke_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:in
each'
/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:in
standard_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:in
run'
/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:in
run'
/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
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.
You omitted Perl. It's tied at #4 in the top 10 languages on github - https://github.com/languages ... C# and PHP don't even make github's list.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.