<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>examples/gruff/gruff_run.sh</filename>
    </added>
    <added>
      <filename>examples/gruff/stat_run.sh</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,18 +1,18 @@
 -module(gruff).
 -export([start/0, stop/0, plot/4]).
 
-start() -&gt; 
-  spawn(fun() -&gt; 
-    register(gruff, self()), 
-    process_flag(trap_exit, true), 
+start() -&gt;
+  spawn(fun() -&gt;
+    register(gruff, self()),
+    process_flag(trap_exit, true),
     Cmd = &quot;ruby ./gruff_provider.rb&quot;,
-    Port = open_port({spawn, Cmd}, [{packet, 4}, nouse_stdio, exit_status, binary]), 
-    port_loop(Port) 
-  end). 
+    Port = open_port({spawn, Cmd}, [{packet, 4}, nouse_stdio, exit_status, binary]),
+    port_loop(Port)
+  end).
 
-stop() -&gt; gruff ! stop. 
+stop() -&gt; gruff ! stop.
 
-plot(Name, Font, Data, Labels) -&gt; 
+plot(Name, Font, Data, Labels) -&gt;
   gruff ! {plot, self(), Name, Font, Data, Labels},
   receive
     {result, Bin} -&gt; Bin
@@ -28,7 +28,6 @@ send_labels(Port, Labels) -&gt;
   Data = {labels, Labels},
   Port ! {self(), {command, term_to_binary(Data)}}.
 
-
 port_loop(Port) -&gt;
   receive
     {plot, Caller, Name, Font, Data, Labels} -&gt;
@@ -37,18 +36,18 @@ port_loop(Port) -&gt;
 
       send_data(Port, Data),
       send_labels(Port, Labels),
-      
+
       EndData = term_to_binary('end'),
       Port ! {self(), {command, EndData}},
       Result = get_result(Port),
       Caller ! {result, Result },
-      
+
       port_loop(Port);
-        
-    stop -&gt; 
-      Port ! {self(), close}, 
-      receive 
-        {Port, closed} -&gt; exit(normal) 
+
+    stop -&gt;
+      Port ! {self(), close},
+      receive
+        {Port, closed} -&gt; exit(normal)
       end
   end.
 
@@ -57,6 +56,6 @@ get_result(Port) -&gt;
     {Port, {data, Data}} -&gt;
       {result, Bin} = binary_to_term(Data),
       Bin;
-    {'EXIT', Port, Reason} -&gt;  
+    {'EXIT', Port, Reason} -&gt;
       exit({port_terminated,Reason})
     end.
\ No newline at end of file</diff>
      <filename>examples/gruff/gruff.erl</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,5 @@
-$:.unshift(File.dirname(__FILE__) + &quot;/../../lib/&quot;)
+$:.unshift File.join(File.dirname(__FILE__), *%w[../../lib])
+
 require 'erlectricity'
 require 'rubygems'
 require 'gruff'</diff>
      <filename>examples/gruff/gruff_provider.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,8 +3,8 @@
 
 start(Title, Fun) -&gt;
   spawn(?MODULE, loop, [Title, Fun, []]).
-  
-loop(Title, Fun, []) -&gt; 
+
+loop(Title, Fun, []) -&gt;
   Data = accumulate([], Fun()),
   loop(Title, Fun, Data, 0).
 
@@ -12,12 +12,12 @@ loop(Title, Fun, Data, Generation) -&gt;
   receive
     {stop} -&gt; ok
   after 3000 -&gt;
-    NewGeneration = Generation + 1,    
+    NewGeneration = Generation + 1,
     NewData = accumulate(Data, Fun()),
     NewChart = gruff:plot(
-       list_to_binary([Title, &lt;&lt; &quot;- Generation&quot; &gt;&gt;, integer_to_list(NewGeneration)]), 
-      &lt;&lt;&quot;/Users/scott/Library/Fonts/Arial&quot;&gt;&gt;,   
-      NewData, 
+       list_to_binary([Title, &lt;&lt; &quot;- Generation&quot; &gt;&gt;, integer_to_list(NewGeneration)]),
+      &lt;&lt;&quot;/Users/scott/Library/Fonts/Arial&quot;&gt;&gt;,
+      NewData,
       []
     ),
     file:write_file(io_lib:format(&quot;~s - ~s.png&quot;, [Title, integer_to_list(NewGeneration)]),NewChart),</diff>
      <filename>examples/gruff/stat_writer.erl</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>examples/gruff/gruff_run.erl</filename>
    </removed>
    <removed>
      <filename>examples/gruff/stat_run.erl</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>b1124555fc7ef36ed1d329ddbd8d891a6c5a51eb</id>
    </parent>
  </parents>
  <author>
    <name>Tom Preston-Werner</name>
    <email>tom@mojombo.com</email>
  </author>
  <url>http://github.com/mojombo/erlectricity/commit/6a4ca190a4c99108a8c45dbb01dd30d0560d7630</url>
  <id>6a4ca190a4c99108a8c45dbb01dd30d0560d7630</id>
  <committed-date>2009-04-26T11:00:20-07:00</committed-date>
  <authored-date>2009-04-26T11:00:20-07:00</authored-date>
  <message>polish up gruff example</message>
  <tree>44573a66405cf14bf2367b161fa89b9357168586</tree>
  <committer>
    <name>Tom Preston-Werner</name>
    <email>tom@mojombo.com</email>
  </committer>
</commit>
