<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -57,8 +57,8 @@ module CharDet
       if order &gt;= 0
 	@_mTotalChars += 1
 	# order is valid
-	if order &lt; @_mTableSize:
-	  if 512 &gt; @_mCharToFreqOrder[order]:
+	if order &lt; @_mTableSize
+	  if 512 &gt; @_mCharToFreqOrder[order]
 	    @_mFreqChars += 1
 	  end
 	end
@@ -72,7 +72,7 @@ module CharDet
 	return SURE_NO
       end
 
-      if @_mTotalChars != @_mFreqChars:
+      if @_mTotalChars != @_mFreqChars
 	r = @_mFreqChars / ((@_mTotalChars - @_mFreqChars) * @_mTypicalDistributionRatio)
 	if r &lt; SURE_YES
 	  return r
@@ -227,10 +227,10 @@ module CharDet
       #   first  byte range: 0xa0 -- 0xfe
       #   second byte range: 0xa1 -- 0xfe
       # no validation needed here. State machine has done that
-      if aStr[0..0] &gt;= &quot;\xA0&quot;:
-	return 94 * (aStr[0] - 0xA1) + aStr[1] - 0xa1
+      if aStr[0..0] &gt;= &quot;\xA0&quot;
+        return 94 * (aStr[0] - 0xA1) + aStr[1] - 0xa1
       else
-	return -1
+        return -1
       end
     end
   end</diff>
      <filename>lib/rchardet/chardistribution.rb</filename>
    </modified>
    <modified>
      <diff>@@ -40,7 +40,7 @@ module CharDet
       super
       @_mActiveNum = 0
 
-      for prober in @_mProbers:
+      for prober in @_mProbers
 	if prober
 	  prober.reset()
 	  prober.active = true</diff>
      <filename>lib/rchardet/charsetgroupprober.rb</filename>
    </modified>
    <modified>
      <diff>@@ -41,7 +41,7 @@ module CharDet
 
     def reset
       super()
-      for codingSM in @_mCodingSM:
+      for codingSM in @_mCodingSM
 	next if not codingSM
 	codingSM.active = true
 	codingSM.reset()</diff>
      <filename>lib/rchardet/escprober.rb</filename>
    </modified>
    <modified>
      <diff>@@ -56,7 +56,7 @@ module CharDet
 	elsif codingState == EItsMe
 	  @_mState = EFoundIt
 	  break
-	elsif codingState == EStart:
+	elsif codingState == EStart
 	  charLen = @_mCodingSM.get_current_charlen()
 	  if i == 0
 	    @_mLastChar[1] = aBuf[0..0]</diff>
      <filename>lib/rchardet/eucjpprober.rb</filename>
    </modified>
    <modified>
      <diff>@@ -150,9 +150,9 @@ module CharDet
 	  @_mNeedToSkipCharNum = i - aLen
 	  @_mLastCharOrder = -1
 	else
-	  if (order != -1) and (@_mLastCharOrder != -1):
+	  if (order != -1) and (@_mLastCharOrder != -1)
 	    @_mTotalRel += 1
-	    if @_mTotalRel &gt; MAX_REL_THRESHOLD:
+	    if @_mTotalRel &gt; MAX_REL_THRESHOLD
 	      @_mDone = true
 	      break
 	    end
@@ -169,7 +169,7 @@ module CharDet
 
     def get_confidence
       # This is just one way to calculate confidence. It works well for me.
-      if @_mTotalRel &gt; MINIMUM_DATA_THRESHOLD:
+      if @_mTotalRel &gt; MINIMUM_DATA_THRESHOLD
 	return (@_mTotalRel - @_mRelSample[0]) / @_mTotalRel
       else
 	return DONT_KNOW
@@ -208,7 +208,7 @@ module CharDet
       return -1, 1 unless aStr
       # find out current char's byte length
       aStr = aStr[0..1].join if aStr.class == Array
-      if (aStr[0..0] == &quot;\x8E&quot;) or ((aStr[0..0] &gt;= &quot;\xA1&quot;) and (aStr[0..0] &lt;= &quot;\xFE&quot;)):
+      if (aStr[0..0] == &quot;\x8E&quot;) or ((aStr[0..0] &gt;= &quot;\xA1&quot;) and (aStr[0..0] &lt;= &quot;\xFE&quot;))
 	charLen = 2
       elsif aStr[0..0] == &quot;\x8F&quot;
 	charLen = 3</diff>
      <filename>lib/rchardet/jpcntx.rb</filename>
    </modified>
    <modified>
      <diff>@@ -71,7 +71,7 @@ module CharDet
 
       @_mLastChar[0] = aBuf[aLen - 1.. aLen-1]
 
-      if get_state() == EDetecting:
+      if get_state() == EDetecting
 	if @_mContextAnalyzer.got_enough_data() and (get_confidence() &gt; SHORTCUT_THRESHOLD)
 	  @_mState = EFoundIt
 	end</diff>
      <filename>lib/rchardet/sjisprober.rb</filename>
    </modified>
    <modified>
      <diff>@@ -91,11 +91,11 @@ module CharDet
       end
 
       @_mGotData = true
-      if @result['encoding'] and (@result['confidence'] &gt; 0.0):
+      if @result['encoding'] and (@result['confidence'] &gt; 0.0)
 	@done = true
 	return
       end
-      if @_mInputState == EPureAscii:
+      if @_mInputState == EPureAscii
 	if @_highBitDetector =~ (aBuf)
 	  @_mInputState = EHighbyte
 	elsif (@_mInputState == EPureAscii) and @_escDetector =~ (@_mLastChar + aBuf)
@@ -138,12 +138,12 @@ module CharDet
       end
       @done = true
 
-      if @_mInputState == EPureAscii:
+      if @_mInputState == EPureAscii
 	@result = {'encoding' =&gt; 'ascii', 'confidence' =&gt; 1.0}
 	return @result
       end
 
-      if @_mInputState == EHighbyte:
+      if @_mInputState == EHighbyte
 	confidences = {}
         @_mCharSetProbers.each{ |prober| confidences[prober] = prober.get_confidence }
 	maxProber = @_mCharSetProbers.max{ |a,b| confidences[a] &lt;=&gt; confidences[b] }</diff>
      <filename>lib/rchardet/universaldetector.rb</filename>
    </modified>
    <modified>
      <diff>@@ -63,7 +63,7 @@ module CharDet
 	end
       end
 
-      if get_state() == EDetecting:
+      if get_state() == EDetecting
 	if get_confidence() &gt; SHORTCUT_THRESHOLD
 	  @_mState = EFoundIt
 	end</diff>
      <filename>lib/rchardet/utf8prober.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>945438bc28ed6c20fc8f5175b98b2b87e13afdeb</id>
    </parent>
  </parents>
  <author>
    <name>Michael Fellinger</name>
    <email>m.fellinger@gmail.com</email>
  </author>
  <url>http://github.com/jmhodges/rchardet/commit/f54c49e6067a3403cadb2329947d3627490b7b39</url>
  <id>f54c49e6067a3403cadb2329947d3627490b7b39</id>
  <committed-date>2009-09-09T19:55:10-07:00</committed-date>
  <authored-date>2009-08-22T09:37:23-07:00</authored-date>
  <message>Remove syntax errors

Signed-off-by: Jeff Hodges &lt;jeff@somethingsimilar.com&gt;</message>
  <tree>8b47a43e8071fa8f649124721b238c9d56a69ffc</tree>
  <committer>
    <name>Jeff Hodges</name>
    <email>jeff@somethingsimilar.com</email>
  </committer>
</commit>
