Run: % ruby getgitdata.rb % ruby cleanrepos.rb % ruby parserepos.rb % ruby cleancollabs.rb % ruby parsecommits.rb % ruby buildgraph.rb getgitdata.rb: # given a list of user names # grab each of their list of repos in github # *** *** makes github call with personal info (username and password) *** *** # dump output into individual json files # generates repos-*.json files cleanrepos.rb # removes the header 23 lines from the extracted repo files # generates clean-repos-*.json files parserepos.rb: # opens each of the repo files in the directory # for each repo file, grab each of their list of commits # *** *** makes github call with personal info (username and password) *** *** # dump output into individual json files # generates collabs-*.json files cleancollabs.rb # removes the header 24 or 25 lines from the extracted collab files # generates clean-collabs-*.json files parsecommits.rb: # opens each of the commit (collab) files in the directory # for each commit file, grab each of their list of committer logins # dump the output into a single file # generates listcollabs.txt file buildgraph.rb: # parse info from listcollabs.txt into a 2d jagged array # generate graphcollabs.dot file for visualization # requires the graph gem to work properly to generate the png files # to install: # sudo gem install graph # can try to install graphviz as instructed here http://www.rubydoc.info/gems/graph/2.8.1 # otherwise, use online tool at http://www.webgraphviz.com/