<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,6 @@
 DB = 'rebase.db'
-START_DATE = DateTime.parse(&quot;2009-02-08&quot;)
-END_DATE = DateTime.parse(&quot;2009-02-14 23:59:59&quot;)
+START_DATE = DateTime.parse(&quot;2009-04-19&quot;)
+END_DATE = DateTime.parse(&quot;2009-04-19 23:59:59&quot;)
 START_PAGE = 1
 END_PAGE = 3700
 
@@ -10,97 +10,97 @@ require 'launchy'
 require 'feedzirra'
 
 namespace :db do
-	desc &quot;Drop db&quot;
-	task :drop do
-		File.delete(DB) if File.exists?(DB)
-	end
-
-	desc &quot;Purge smaller kinds&quot;
-	task :purge do
-		Event.count(:group =&gt; :kind).each do |k|
-			if k.last &lt; 50 
-				puts &quot;Deleting #{k}&quot;
-				Event.delete_all(['kind = ?', k.first])
-			end
-		end
-	end
-
-	desc &quot;Create dbs&quot;
-	task :create do
-		ActiveRecord::Schema.define(:version =&gt; 1) do
-			create_table 'events' do |t|
-				t.string :kind
-				t.string :user
-				t.datetime :published
-			end
-		end
-	end
-
-	desc &quot;Reset db&quot;
-	task :reset =&gt; [:drop, :create]
+  desc &quot;Drop db&quot;
+  task :drop do
+    File.delete(DB) if File.exists?(DB)
+  end
+
+  desc &quot;Purge smaller kinds&quot;
+  task :purge do
+    Event.count(:group =&gt; :kind).each do |k|
+      if k.last &lt; 50 
+        puts &quot;Deleting #{k}&quot;
+        Event.delete_all(['kind = ?', k.first])
+      end
+    end
+  end
+
+  desc &quot;Create dbs&quot;
+  task :create do
+    ActiveRecord::Schema.define(:version =&gt; 1) do
+      create_table 'events' do |t|
+        t.string :kind
+        t.string :user
+        t.datetime :published
+      end
+    end
+  end
+
+  desc &quot;Reset db&quot;
+  task :reset =&gt; [:drop, :create]
 end
 
 namespace :chart do
-	desc &quot;Events pie&quot;
-	task :pie do
-		c = Chartify.new(START_DATE, END_DATE)
-
-		url = c.pie_chart(&quot;Total Events&quot;) do |chart|
-			total_count = Event.count
-			Event.count(:group =&gt; :kind).sort_by(&amp;:last).reverse.each do |group|
-				chart.data &quot;#{group.first}: #{group.last}&quot;, (group.last.to_f / total_count.to_f) * 100
-			end
-		end
-
-		IO.popen('pbcopy', 'w').print url
-	end
-
-	desc &quot;Events line breakdown&quot;
-	task :line do
-		c = Chartify.new(START_DATE, END_DATE)
-
-		url = c.line_chart(&quot;Events Breakdown&quot;, Event.max_daily_commits) do |chart|
-			colors = %w(000000 ff0000 00ff00 0000ff FFFF00 3CB371 ff00ff FF9900 FFFF99 993399)
-
-			Event.kinds.each_with_index do |kind, i|
-				if Event.count(:conditions =&gt; [&quot;kind = ?&quot;, kind]) &gt; 500
-
-					chart.data kind, 
-										 Event.count(:group =&gt; &quot;strftime('%m-%d-%Y %H', published)&quot;, 
-																 :conditions =&gt; [&quot;kind = ?&quot;, kind]).map(&amp;:last), 
-										 colors.shift
-				end
-			end
-		end
-
-		IO.popen('pbcopy', 'w').print url
-	end
+  desc &quot;Events pie&quot;
+  task :pie do
+    c = Chartify.new(START_DATE, END_DATE)
+
+    url = c.pie_chart(&quot;Total Events&quot;) do |chart|
+      total_count = Event.count
+      Event.count(:group =&gt; :kind).sort_by(&amp;:last).reverse.each do |group|
+        chart.data &quot;#{group.first}: #{group.last}&quot;, (group.last.to_f / total_count.to_f) * 100
+      end
+    end
+
+    IO.popen('pbcopy', 'w').print url
+  end
+
+  desc &quot;Events line breakdown&quot;
+  task :line do
+    c = Chartify.new(START_DATE, END_DATE)
+
+    url = c.line_chart(&quot;Events Breakdown&quot;, Event.max_daily_commits) do |chart|
+      colors = %w(000000 ff0000 00ff00 0000ff FFFF00 3CB371 ff00ff FF9900 FFFF99 993399)
+
+      Event.kinds.each_with_index do |kind, i|
+        if Event.count(:conditions =&gt; [&quot;kind = ?&quot;, kind]) &gt; 500
+
+          chart.data kind, 
+                     Event.count(:group =&gt; &quot;strftime('%m-%d-%Y %H', published)&quot;, 
+                                 :conditions =&gt; [&quot;kind = ?&quot;, kind]).map(&amp;:last), 
+                     colors.shift
+        end
+      end
+    end
+
+    IO.popen('pbcopy', 'w').print url
+  end
  end
 
 desc &quot;Parse away&quot;
 task :parse do
-	urls = []
-	(START_PAGE..END_PAGE).each { |x| urls &lt;&lt; &quot;http://github.com/timeline.atom?page=#{x}&quot; }
-
-	Feedzirra::Feed.fetch_and_parse(urls, 
-		:on_success =&gt; lambda {|u, a| puts &quot;Got #{u}&quot;} ).each do |k, v|
-
-		if v.is_a?(Fixnum)
-			puts &quot;\nBroken page: #{k}&quot;
-			next
-		else
-			puts &quot;\nWorking on #{k}, #{v.entries.size} entries...&quot;
-		end
-
-		v.entries.each do |entry|
-			next unless START_DATE &lt; entry.published &amp;&amp; entry.published &lt; END_DATE
-
-			e = Event.new
-			e.user = entry.author
-			e.published = entry.published
-			e.kind = entry.title.split[1]
-			e.save
-			puts e
-		end
-	end
+  urls = []
+  (START_PAGE..END_PAGE).each { |x| urls &lt;&lt; &quot;http://github.com/timeline.atom?page=#{x}&quot; }
+
+  Feedzirra::Feed.fetch_and_parse(urls, 
+    :on_success =&gt; lambda {|u, a| puts &quot;Got #{u}&quot;} ).each do |k, v|
+
+    if v.is_a?(Fixnum)
+      puts &quot;\nBroken page: #{k}&quot;
+      next
+    else
+      puts &quot;\nWorking on #{k}, #{v.entries.size} entries...&quot;
+    end
+
+    v.entries.each do |entry|
+      next unless START_DATE &lt; entry.published &amp;&amp; entry.published &lt; END_DATE
+
+      e = Event.new
+      e.user = entry.author
+      e.published = entry.published
+      e.kind = entry.title.split[1]
+      e.save
+      puts e
+    end
+  end
 end</diff>
      <filename>Rakefile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>31d640a2887b6aa71c6cd385b316d8f8f66e2814</id>
    </parent>
  </parents>
  <author>
    <name>Nick Quaranto</name>
    <email>nick@quaran.to</email>
  </author>
  <url>http://github.com/qrush/rebase/commit/1049b05563d3057067b16b0889890392ee03ac4a</url>
  <id>1049b05563d3057067b16b0889890392ee03ac4a</id>
  <committed-date>2009-04-20T17:04:29-07:00</committed-date>
  <authored-date>2009-04-20T17:04:29-07:00</authored-date>
  <message>Tabs suck</message>
  <tree>249e623dac82fc80d917416bea83553ea1b1c2b6</tree>
  <committer>
    <name>Nick Quaranto</name>
    <email>nick@quaran.to</email>
  </committer>
</commit>
