|
|
|
|
|
|
3
|
using DataFrames
|
3
|
using DataFrames
|
|
4
|
using Gadfly
|
4
|
using Gadfly
|
|
5
|
|
5
|
|
|
|
|
6
|
# this started out as an experiment, just trying to see what i can do
|
|
|
|
7
|
# with julia and some json.
|
|
|
|
8
|
#
|
|
|
|
9
|
# this will generate a graph of the times repositories of a user were
|
|
|
|
10
|
# created vs the last push times to that repository.
|
|
|
|
11
|
#
|
|
|
|
12
|
# it started out as a silly experiment that simply plotted two
|
|
|
|
13
|
# numeric/ordered values from the data, but it's quite interesting:
|
|
|
|
14
|
# quite a few users have this pattern where they constantly create (or
|
|
|
|
15
|
# fork) repositories and then move on after a while. for most people
|
|
|
|
16
|
# and projects we see a roughly linear increase, suggesting that people
|
|
|
|
17
|
# continue creating repositories on github and work a bit on them and
|
|
|
|
18
|
# then move on.
|
|
|
|
19
|
# still, there are projects that were started early and are still active,
|
|
|
|
20
|
# for example mbostock/d3 or my own heyLu/confidence (my dotfiles)
|
|
|
|
21
|
#
|
|
|
|
22
|
# next up: having fun with commits? (or activity?)
|
|
|
|
23
|
|
|
6
|
github_get(path) = takebuf_string(get(string("https://api.github.com", path), headers=[("User-Agent", "Julia-Experiment")]).body)
|
24
|
github_get(path) = takebuf_string(get(string("https://api.github.com", path), headers=[("User-Agent", "Julia-Experiment")]).body)
|
|
7
|
|
25
|
|
|
8
|
function toDataFrame(dicts, keys = keys(dicts[1]))
|
26
|
function toDataFrame(dicts, keys = keys(dicts[1]))
|