Fun With The Launchpad API : Software Licenses

April 26, 2009
Launchpad License Breakdowns

In a nod to Michael Bernstein's F/OSS License App for Web App Wednesday, I threw together some code that does a similar thing for Launchpad. Things rolled downhill from there to do some other really fun things, but I thought I'd stop and blog about the first result before hacking on the rest of the data.

The above image is the result of this hacking. I used the Google Charts API to create the pie chart. It's obvious that GPLv2 is the most popular license, being that 35% of all Launchpad projects are licensed that way.


Committer Statistics for Bazaar

January 29, 2009
http://media.theironlion.net/etc/graphstats.png

For the last few months, I've been entranced with data visualization. I'm convinced that if we take data and find creative ways to visualize it, we'll be able to optimize what produces that data, as well as improve the ways we collect (and thusly visualize) that data.

One of the things I've wanted to do is hack a little more on bzr-stats, which is a a Bazaar plugin for generating statistics. I used the current trunk of bzr-stats as the groundwork for creating a graph, but the more I think about what I want to do, the more I'm realizing that I probably need to write my own plugin, as I don't think bzr-stats is going to take me where I want to go, and already has a set direction. I'll probably just fork bzr-stats into another project.

Regardless, I did a little prototype hacking tonight, and created a pie graph of all committers to a given project, and attached their percentages. The code is ugly, and there are lots of cases I don't yet deal with. For instance, if a user only has one revision, it's still displayed. It'd be nice to set a percentage threshold where you get lumped into an "Other" category, so as not to clutter up the chart.

As I get more time, I think it would be cool to see the frequency of commits over time, the various types of contributions (bzr-stats kinda does this), and other types of trend tracking. If nothing else, it'll be cool to see how contributions pick up when Launchpad is open sourced. If you're interested in seeing the crummy prototype code, the branch is here.

Update: For those interested, I generated a pie chart for bzr.dev that can be found right here