<?xml version="1.0" encoding="UTF-8"?>
<guide>
  <body>&lt;h2&gt;What it is&lt;/h2&gt;
&lt;p&gt;The participation graph displays a user&amp;#8217;s participation to a given project aggregated by week. Basically, it shows how many commits a project had  in a week, and how many of those were made by the given user.&lt;/p&gt;
&lt;h2&gt;The data&lt;/h2&gt;
&lt;p&gt;The url to grab participation data for a given project is in the form of&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;http://github.com/cache/participation_graph/&lt;span style=&quot;color:green&quot;&gt;user&lt;/span&gt;/&lt;span style=&quot;color:red&quot;&gt;repo_name&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Let&amp;#8217;s take, for example, the following url:&lt;br /&gt;
&lt;a href=&quot;http://github.com/cache/participation_graph/rails/rails&quot;&gt;http://github.com/cache/participation_graph/rails/rails&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;That would spit out rails&amp;#8217; participation in the rails repo.&lt;/p&gt;
&lt;h2&gt;What it means&lt;/h2&gt;
&lt;p&gt;At the time of this writing, the above url displays something like this:&lt;br /&gt;
&lt;pre&gt;BsCYA6BPAvAeAnAaAdArAwBHBPCgBwAsArBMBNAxA6AlARA7BZAqAeAyA2BZBhBNARAUAwBrBZAmBDB0BCAZBCBkBaBbAYAvAcA6DcBD
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The top line contains the total number of commits per week, the bottom line contains the number of commits made by the user.&lt;/p&gt;
&lt;p&gt;On each line, two characters make up an integer. Encoding is as follows :&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&amp;#8216;A&amp;#8217; .. &amp;#8216;Z&amp;#8217; = 0 .. 25&lt;/li&gt;
	&lt;li&gt;&amp;#8216;a&amp;#8217; .. &amp;#8216;z&amp;#8217; = 26 .. 51&lt;/li&gt;
	&lt;li&gt;&amp;#8216;0&amp;#8217; .. &amp;#8216;9&amp;#8217; = 52 .. 61&lt;/li&gt;
	&lt;li&gt;&amp;#8216;!&amp;#8217; = 62&lt;/li&gt;
	&lt;li&gt;&amp;#8216;-&amp;#8217; = 63&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Which pretty much means that &amp;#8216;AA&amp;#8217; is 0, &amp;#8216;BA&amp;#8217; is 64, and so on. An implementation can be found &lt;a href=&quot;http://github.com/zmack/tribby/tree/master/src/ContributionFetcher.as#L55-77&quot;&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Make your own !&lt;/h2&gt;
&lt;p&gt;So what this really amounts to is that you can pretty much make your own contribution display graph, since you know what the data means and you partially know where to get it from.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;shameless plug&lt;/em&gt;: A decent starting point for this would be &lt;a href=&quot;http://github.com/zmack/tribby/tree/master&quot;&gt;Tribby&lt;/a&gt; which already does the fetching and decoding, so all that&amp;#8217;s left is putting the data in a decent form.&lt;/p&gt;</body>
  <created-at type="datetime">2008-06-01T06:36:51-07:00</created-at>
  <id type="integer">46</id>
  <permalink>making-sense-of-the-participation-graph-data</permalink>
  <title>Making sense of the participation graph data</title>
  <updated-at type="datetime">2009-08-17T01:12:38-07:00</updated-at>
  <user-id type="integer">52870</user-id>
</guide>
