<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>test/fixtures/comment/spam/rapid.txt</filename>
    </added>
    <added>
      <filename>test/fixtures/comment/spam/tk.txt</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -9,12 +9,12 @@ class Splam::Rules::BadWords &lt; Splam::Rule
   def run
     bad_words = %w( sex sexy porn gay erotica viagra erotismo porno porn lesbian amateur tit)
     bad_words |= %w( gratis erotismo porno torrent bittorrent adulto )
-    bad_words |= %w( cialis viagra payday loan )
-    bad_words |= %w( webcam  free-web-host)
+    bad_words |= %w( cialis viagra payday loan jihad )
+    bad_words |= %w( webcam  free-web-host rapidshare muslim)
     bad_words &lt;&lt; /pel?cula/ &lt;&lt; /pornogr?fica/ &lt;&lt; &quot;portal porno&quot; # srsly, spamming in spanish?
 
-    suspicious_words =  %w( free buy galleries dating gallery hard hardcore video homemade celebrity ) &lt;&lt; &quot;credit card&quot;
-    suspicious_words |= %w( adult pharmacy overnight shipping free hot movie nylon arab ?????? xxx)
+    suspicious_words =  %w( free buy galleries dating gallery hard hardcore video homemade celebrity ) &lt;&lt; &quot;credit card&quot; &lt;&lt; &quot;my friend&quot; &lt;&lt; &quot;friend sent me&quot;
+    suspicious_words |= %w( adult pharmacy overnight shipping free hot movie nylon arab ?????? xxx) &lt;&lt; &quot;sent me a link&quot;
     suspicious_words &lt;&lt; &quot;forums/member.php?u=&quot; &lt;&lt; &quot;chat room&quot; &lt;&lt; &quot;free chat&quot; &lt;&lt; &quot;yahoo chat&quot; &lt;&lt; &quot;page.php&quot;
     bad_words.each do |word|
       results = @body.downcase.scan(word) 
@@ -24,6 +24,9 @@ class Splam::Rules::BadWords &lt; Splam::Rule
         @body.scan(/&lt;a[^&gt;]+&gt;(.*?)&lt;\/a&gt;/).each do |match|
           add_score self.class.bad_word_score * 4 * match[0].scan(word).size, &quot;nasty word inside a link: #{word}&quot;
         end
+        @body.scan(/\nhttp:\/\/(.*?#{word})/).each do |match|
+          add_score self.class.bad_word_score ** 4 * match[0].scan(word).size, &quot;nasty word inside a straight-up link: #{word}&quot;
+        end
         @body.scan(/&lt;a(.*?)&gt;/).each do |match|
           add_score self.class.bad_word_score * 4 * match[0].scan(word).size, &quot;nasty word inside a URL: #{word}&quot;
         end</diff>
      <filename>lib/splam/rules/bad_words.rb</filename>
    </modified>
    <modified>
      <diff>@@ -21,6 +21,7 @@ class Splam::Rules::Href &lt; Splam::Rule
       'cn' =&gt; 20,  # Chinese? spammer.
       'us' =&gt; 8,   # .us ? possibly spam
       'it' =&gt; 5,
+      'tk' =&gt; 20,
       'pl' =&gt; 8,
       'info' =&gt; 20, 
       'biz'  =&gt; 40 # no-one uses these for reals
@@ -32,8 +33,8 @@ class Splam::Rules::Href &lt; Splam::Rule
     
     tokens = @body.split(&quot; &quot;)
     if tokens[-1] =~ /^http:\/\//
-      add_score 50, &quot;Text ends in a link&quot;
-      add_score 10, &quot;Text ends in a link and only has one link&quot; if link_count == 1
+      add_score 10, &quot;Text ends in a http token&quot;
+      add_score 50, &quot;Text ends in a http token and only has one token&quot; if link_count == 1
     end
     
     @body.scan(/http:\/\/(.*?)[\/\]?]/) do |match|</diff>
      <filename>lib/splam/rules/href.rb</filename>
    </modified>
    <modified>
      <diff>@@ -81,7 +81,7 @@ class SplamTest &lt; Test::Unit::TestCase
       end
       spam  = comment.splam?
       score = comment.splam_score
-      #$stderr.puts &quot;#{f} score: #{score}&quot;
+      #$stderr.puts &quot;#{f} score: #{score}\n#{comment.splam_reasons.inspect}&quot;
       #$stderr.puts &quot;=====================&quot;
       assert spam, &quot;Comment #{f} was not spam, score was #{score} but threshold was #{Foo.splam_suite.threshold}\nReasons were #{comment.splam_reasons.inspect}&quot;
     end</diff>
      <filename>test/splam_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>bbe48ee06e01fbe926fe34e76ad2019a4be9d79c</id>
    </parent>
  </parents>
  <author>
    <name>courtenay</name>
    <email>court3nay@gmail.com</email>
  </author>
  <url>http://github.com/courtenay/splam/commit/412d8e178c1daa2d09247e2c5c38b49ec0e0280b</url>
  <id>412d8e178c1daa2d09247e2c5c38b49ec0e0280b</id>
  <committed-date>2009-02-06T10:32:33-08:00</committed-date>
  <authored-date>2009-02-06T10:32:33-08:00</authored-date>
  <message>Add some more bad words and spam that slipped through the cracks.</message>
  <tree>46316e9241a0d5ea6b73bd95e3d63f4ed3242963</tree>
  <committer>
    <name>courtenay</name>
    <email>court3nay@gmail.com</email>
  </committer>
</commit>
