| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 if (self._mContextAnalyzer.got_enough_data() and | 82 if (self._mContextAnalyzer.got_enough_data() and |
| 83 (self.get_confidence() > constants.SHORTCUT_THRESHOLD)): | 83 (self.get_confidence() > constants.SHORTCUT_THRESHOLD)): |
| 84 self._mState = constants.eFoundIt | 84 self._mState = constants.eFoundIt |
| 85 | 85 |
| 86 return self.get_state() | 86 return self.get_state() |
| 87 | 87 |
| 88 def get_confidence(self): | 88 def get_confidence(self): |
| 89 contxtCf = self._mContextAnalyzer.get_confidence() | 89 contxtCf = self._mContextAnalyzer.get_confidence() |
| 90 distribCf = self._mDistributionAnalyzer.get_confidence() | 90 distribCf = self._mDistributionAnalyzer.get_confidence() |
| 91 return max(contxtCf, distribCf) | 91 return max(contxtCf, distribCf) |
| OLD | NEW |