Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 5 additions and 5 deletions.
  1. +1 −1  lib/UTF8Prober.rb
  2. +4 −4 lib/UniversalDetector.rb
View
2  lib/UTF8Prober.rb
@@ -81,7 +81,7 @@ def feed(aBuf)
def get_confidence
unlike = 0.99
if @_mNumOfMBChar < 6
- for i in 0...@_mNumOfMBChar
+ @_mNumOfMBChar.times do
unlike = unlike * ONE_CHAR_PROB
end
return 1.0 - unlike
View
8 lib/UniversalDetector.rb
@@ -28,10 +28,10 @@
# 02110-1301 USA
######################### END LICENSE BLOCK #########################
-# require "EscCharSetProber"
-# require "MBCSGroupProber"
-# require "SBCSGroupProber"
-# require "Latin1Prober"
+require "EscCharSetProber"
+require "MBCSGroupProber"
+require "SBCSGroupProber"
+require "Latin1Prober"
require "singleton"
module UniversalDetector

No commit comments for this range

Something went wrong with that request. Please try again.