| OLD | NEW |
| 1 ######################## BEGIN LICENSE BLOCK ######################## | 1 ######################## BEGIN LICENSE BLOCK ######################## |
| 2 # The Original Code is Mozilla Universal charset detector code. | 2 # The Original Code is Mozilla Universal charset detector 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) 2001 | 6 # Portions created by the Initial Developer are Copyright (C) 2001 |
| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 if self.get_state() == constants.eDetecting: | 78 if self.get_state() == constants.eDetecting: |
| 79 if (self._mDistributionAnalyzer.got_enough_data() and | 79 if (self._mDistributionAnalyzer.got_enough_data() and |
| 80 (self.get_confidence() > constants.SHORTCUT_THRESHOLD)): | 80 (self.get_confidence() > constants.SHORTCUT_THRESHOLD)): |
| 81 self._mState = constants.eFoundIt | 81 self._mState = constants.eFoundIt |
| 82 | 82 |
| 83 return self.get_state() | 83 return self.get_state() |
| 84 | 84 |
| 85 def get_confidence(self): | 85 def get_confidence(self): |
| 86 return self._mDistributionAnalyzer.get_confidence() | 86 return self._mDistributionAnalyzer.get_confidence() |
| OLD | NEW |