| OLD | NEW |
| 1 ######################## BEGIN LICENSE BLOCK ######################## | 1 ######################## BEGIN LICENSE BLOCK ######################## |
| 2 # The Original Code is mozilla.org code. | 2 # The Original Code is mozilla.org code. |
| 3 # | 3 # |
| 4 # The Initial Developer of the Original Code is | 4 # The Initial Developer of the Original Code is |
| 5 # Netscape Communications Corporation. | 5 # Netscape Communications Corporation. |
| 6 # Portions created by the Initial Developer are Copyright (C) 1998 | 6 # Portions created by the Initial Developer are Copyright (C) 1998 |
| 7 # the Initial Developer. All Rights Reserved. | 7 # the Initial Developer. All Rights Reserved. |
| 8 # | 8 # |
| 9 # Contributor(s): | 9 # Contributor(s): |
| 10 # Mark Pilgrim - port to Python | 10 # Mark Pilgrim - port to Python |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 return self.get_state() | 67 return self.get_state() |
| 68 | 68 |
| 69 def get_confidence(self): | 69 def get_confidence(self): |
| 70 unlike = 0.99 | 70 unlike = 0.99 |
| 71 if self._mNumOfMBChar < 6: | 71 if self._mNumOfMBChar < 6: |
| 72 for i in range(0, self._mNumOfMBChar): | 72 for i in range(0, self._mNumOfMBChar): |
| 73 unlike = unlike * ONE_CHAR_PROB | 73 unlike = unlike * ONE_CHAR_PROB |
| 74 return 1.0 - unlike | 74 return 1.0 - unlike |
| 75 else: | 75 else: |
| 76 return unlike | 76 return unlike |
| OLD | NEW |