lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hoss...@apache.org
Subject svn commit: r811070 [1/3] - in /lucene/java/trunk: contrib/analyzers/common/src/java/org/apache/lucene/analysis/ar/ contrib/analyzers/common/src/java/org/apache/lucene/analysis/br/ contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/ ...
Date Thu, 03 Sep 2009 18:31:48 GMT
Author: hossman
Date: Thu Sep  3 18:31:41 2009
New Revision: 811070

URL: http://svn.apache.org/viewvc?rev=811070&view=rev
Log:
LUCENE-1884: massive javadoc and comment cleanup -- primarily dealing with typos

Modified:
    lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ar/ArabicLetterTokenizer.java
    lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/br/BrazilianStemmer.java
    lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/HyphenationCompoundWordTokenFilter.java
    lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/hyphenation/TernaryTree.java
    lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/hyphenation/package.html
    lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/package.html
    lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/fr/FrenchStemmer.java
    lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/nl/DutchStemmer.java
    lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ru/RussianStemmer.java
    lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/shingle/ShingleMatrixFilter.java
    lucene/java/trunk/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BigramDictionary.java
    lucene/java/trunk/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/WordDictionary.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/NoMoreDataException.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/SimpleQueryMaker.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/SimpleSloppyPhraseQueryMaker.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/programmatic/Sample.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/programmatic/package.html
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/stats/Report.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/stats/TaskStats.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/OpenReaderTask.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/PerfTask.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReadTask.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ResetSystemEraseTask.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ResetSystemSoftTask.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/SetPropTask.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/WriteLineDocTask.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Config.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Format.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/StringBufferReader.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/quality/QualityBenchmark.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/quality/QualityStats.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/quality/utils/QualityQueriesFinder.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/stats/TestData.java
    lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/stats/TimeData.java
    lucene/java/trunk/contrib/fast-vector-highlighter/src/java/org/apache/lucene/search/vectorhighlight/ScoreOrderFragmentsBuilder.java
    lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/GradientFormatter.java
    lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/Highlighter.java
    lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/QueryTermExtractor.java
    lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java
    lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/package.html
    lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/FieldSettings.java
    lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedIndex.java
    lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedIndexReader.java
    lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedIndexWriter.java
    lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedTerm.java
    lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedTermDocumentInformation.java
    lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedTermPositions.java
    lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/package.html
    lucene/java/trunk/contrib/misc/src/java/org/apache/lucene/index/FieldNormModifier.java
    lucene/java/trunk/contrib/misc/src/java/org/apache/lucene/misc/ChainedFilter.java
    lucene/java/trunk/contrib/misc/src/java/org/apache/lucene/misc/SweetSpotSimilarity.java
    lucene/java/trunk/contrib/misc/src/java/org/apache/lucene/queryParser/complexPhrase/ComplexPhraseQueryParser.java
    lucene/java/trunk/contrib/misc/src/java/org/apache/lucene/queryParser/precedence/PrecedenceQueryParser.jj
    lucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/similar/MoreLikeThis.java
    lucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/similar/SimilarityQueries.java
    lucene/java/trunk/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/ModifierQueryNode.java
    lucene/java/trunk/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/PathQueryNode.java
    lucene/java/trunk/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/QueryNodeImpl.java
    lucene/java/trunk/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/TextableQueryNode.java
    lucene/java/trunk/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/TokenizedPhraseQueryNode.java
    lucene/java/trunk/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/nodes/package.html
    lucene/java/trunk/contrib/queryparser/src/java/org/apache/lucene/queryParser/core/package.html
    lucene/java/trunk/contrib/regex/src/java/org/apache/lucene/search/regex/JakartaRegexpCapabilities.java
    lucene/java/trunk/contrib/regex/src/java/org/apache/lucene/search/regex/JavaUtilRegexCapabilities.java
    lucene/java/trunk/contrib/spatial/src/java/org/apache/lucene/spatial/geometry/FloatLatLng.java
    lucene/java/trunk/contrib/spatial/src/java/org/apache/lucene/spatial/geometry/LatLng.java
    lucene/java/trunk/contrib/spatial/src/java/org/apache/lucene/spatial/geometry/shape/Ellipse.java
    lucene/java/trunk/contrib/spatial/src/java/org/apache/lucene/spatial/geometry/shape/LineSegment.java
    lucene/java/trunk/contrib/spatial/src/java/org/apache/lucene/spatial/tier/projections/CartesianTierPlotter.java
    lucene/java/trunk/contrib/spatial/src/java/org/apache/lucene/spatial/tier/projections/SinusoidalProjector.java
    lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/JaroWinklerDistance.java
    lucene/java/trunk/contrib/surround/src/java/org/apache/lucene/queryParser/surround/parser/QueryParser.jj
    lucene/java/trunk/contrib/swing/src/java/org/apache/lucene/swing/models/ListSearcher.java
    lucene/java/trunk/contrib/swing/src/java/org/apache/lucene/swing/models/TableSearcher.java
    lucene/java/trunk/contrib/wikipedia/src/java/org/apache/lucene/wikipedia/analysis/WikipediaTokenizer.java
    lucene/java/trunk/contrib/wordnet/src/java/org/apache/lucene/wordnet/Syns2Index.java
    lucene/java/trunk/contrib/wordnet/src/java/org/apache/lucene/wordnet/package.html
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/CorePlusExtensionsParser.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/DOMUtils.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/FilterBuilder.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/FilterBuilderFactory.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/ParserException.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/QueryBuilderFactory.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/BooleanFilterBuilder.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/BooleanQueryBuilder.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/BoostingQueryBuilder.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/BoostingTermBuilder.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/ConstantScoreQueryBuilder.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/DuplicateFilterBuilder.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/FilteredQueryBuilder.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/FuzzyLikeThisQueryBuilder.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/LikeThisQueryBuilder.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/MatchAllDocsQueryBuilder.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/RangeFilterBuilder.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanBuilderBase.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanFirstBuilder.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanNearBuilder.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanNotBuilder.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanOrBuilder.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanOrTermsBuilder.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanQueryBuilderFactory.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/SpanTermBuilder.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/TermQueryBuilder.java
    lucene/java/trunk/contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/TermsFilterBuilder.java
    lucene/java/trunk/src/java/org/apache/lucene/analysis/CharReader.java
    lucene/java/trunk/src/java/org/apache/lucene/analysis/CharacterCache.java
    lucene/java/trunk/src/java/org/apache/lucene/analysis/TeeSinkTokenFilter.java
    lucene/java/trunk/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java
    lucene/java/trunk/src/java/org/apache/lucene/analysis/standard/StandardTokenizerImpl.jflex
    lucene/java/trunk/src/java/org/apache/lucene/analysis/tokenattributes/FlagsAttributeImpl.java
    lucene/java/trunk/src/java/org/apache/lucene/document/AbstractField.java
    lucene/java/trunk/src/java/org/apache/lucene/document/DateTools.java
    lucene/java/trunk/src/java/org/apache/lucene/document/Field.java
    lucene/java/trunk/src/java/org/apache/lucene/document/FieldSelectorResult.java
    lucene/java/trunk/src/java/org/apache/lucene/document/Fieldable.java
    lucene/java/trunk/src/java/org/apache/lucene/document/NumberTools.java
    lucene/java/trunk/src/java/org/apache/lucene/document/NumericField.java
    lucene/java/trunk/src/java/org/apache/lucene/index/DirectoryReader.java
    lucene/java/trunk/src/java/org/apache/lucene/index/FieldInfos.java
    lucene/java/trunk/src/java/org/apache/lucene/index/FreqProxTermsWriter.java
    lucene/java/trunk/src/java/org/apache/lucene/index/IndexModifier.java
    lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java
    lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java
    lucene/java/trunk/src/java/org/apache/lucene/index/LogByteSizeMergePolicy.java
    lucene/java/trunk/src/java/org/apache/lucene/index/MultiLevelSkipListWriter.java
    lucene/java/trunk/src/java/org/apache/lucene/index/ParallelReader.java
    lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfos.java
    lucene/java/trunk/src/java/org/apache/lucene/index/SegmentReader.java
    lucene/java/trunk/src/java/org/apache/lucene/index/SegmentTermPositions.java
    lucene/java/trunk/src/java/org/apache/lucene/index/Term.java
    lucene/java/trunk/src/java/org/apache/lucene/index/TermFreqVector.java
    lucene/java/trunk/src/java/org/apache/lucene/index/TermInfosWriter.java
    lucene/java/trunk/src/java/org/apache/lucene/index/TermVectorsTermsWriterPerField.java
    lucene/java/trunk/src/java/org/apache/lucene/queryParser/QueryParser.jj
    lucene/java/trunk/src/java/org/apache/lucene/search/BooleanQuery.java
    lucene/java/trunk/src/java/org/apache/lucene/search/ComplexExplanation.java
    lucene/java/trunk/src/java/org/apache/lucene/search/DisjunctionMaxScorer.java
    lucene/java/trunk/src/java/org/apache/lucene/search/DocIdSetIterator.java
    lucene/java/trunk/src/java/org/apache/lucene/search/FieldCache.java
    lucene/java/trunk/src/java/org/apache/lucene/search/FieldComparator.java
    lucene/java/trunk/src/java/org/apache/lucene/search/FieldSortedHitQueue.java
    lucene/java/trunk/src/java/org/apache/lucene/search/FilterManager.java
    lucene/java/trunk/src/java/org/apache/lucene/search/FuzzyTermEnum.java
    lucene/java/trunk/src/java/org/apache/lucene/search/MultiTermQuery.java
    lucene/java/trunk/src/java/org/apache/lucene/search/NumericRangeQuery.java
    lucene/java/trunk/src/java/org/apache/lucene/search/PhraseScorer.java
    lucene/java/trunk/src/java/org/apache/lucene/search/Query.java
    lucene/java/trunk/src/java/org/apache/lucene/search/SimilarityDelegator.java
    lucene/java/trunk/src/java/org/apache/lucene/search/TimeLimitedCollector.java
    lucene/java/trunk/src/java/org/apache/lucene/search/TimeLimitingCollector.java
    lucene/java/trunk/src/java/org/apache/lucene/search/TopDocsCollector.java
    lucene/java/trunk/src/java/org/apache/lucene/search/function/CustomScoreQuery.java
    lucene/java/trunk/src/java/org/apache/lucene/search/function/DocValues.java
    lucene/java/trunk/src/java/org/apache/lucene/search/function/FieldCacheSource.java
    lucene/java/trunk/src/java/org/apache/lucene/search/function/FieldScoreQuery.java
    lucene/java/trunk/src/java/org/apache/lucene/search/function/ValueSourceQuery.java
    lucene/java/trunk/src/java/org/apache/lucene/search/payloads/PayloadTermQuery.java
    lucene/java/trunk/src/java/org/apache/lucene/search/spans/FieldMaskingSpanQuery.java
    lucene/java/trunk/src/java/org/apache/lucene/search/spans/SpanNotQuery.java
    lucene/java/trunk/src/java/org/apache/lucene/store/Directory.java
    lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java
    lucene/java/trunk/src/java/org/apache/lucene/store/FileSwitchDirectory.java
    lucene/java/trunk/src/java/org/apache/lucene/store/IndexInput.java
    lucene/java/trunk/src/java/org/apache/lucene/store/MMapDirectory.java
    lucene/java/trunk/src/java/org/apache/lucene/store/NativeFSLockFactory.java
    lucene/java/trunk/src/java/org/apache/lucene/util/ArrayUtil.java
    lucene/java/trunk/src/java/org/apache/lucene/util/BitUtil.java
    lucene/java/trunk/src/java/org/apache/lucene/util/CloseableThreadLocal.java
    lucene/java/trunk/src/java/org/apache/lucene/util/FieldCacheSanityChecker.java
    lucene/java/trunk/src/java/org/apache/lucene/util/IndexableBinaryStringTools.java
    lucene/java/trunk/src/java/org/apache/lucene/util/MapOfSets.java
    lucene/java/trunk/src/java/org/apache/lucene/util/NumericUtils.java
    lucene/java/trunk/src/java/org/apache/lucene/util/ReaderUtil.java
    lucene/java/trunk/src/java/org/apache/lucene/util/ToStringUtils.java
    lucene/java/trunk/src/java/org/apache/lucene/util/UnicodeUtil.java

Modified: lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ar/ArabicLetterTokenizer.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ar/ArabicLetterTokenizer.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ar/ArabicLetterTokenizer.java (original)
+++ lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ar/ArabicLetterTokenizer.java Thu Sep  3 18:31:41 2009
@@ -22,9 +22,11 @@
 import org.apache.lucene.util.AttributeSource;
 
 /**
+ * Tokenizer that breaks text into runs of letters and diacritics.
+ * <p>
  * The problem with the standard Letter tokenizer is that it fails on diacritics.
  * Handling similar to this is necessary for Indic Scripts, Hebrew, Thaana, etc.
- * 
+ * </p>
  *
  */
 public class ArabicLetterTokenizer extends LetterTokenizer {

Modified: lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/br/BrazilianStemmer.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/br/BrazilianStemmer.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/br/BrazilianStemmer.java (original)
+++ lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/br/BrazilianStemmer.java Thu Sep  3 18:31:41 2009
@@ -36,7 +36,7 @@
 	}
 
 	/**
-	 * Stemms the given term to an unique <tt>discriminator</tt>.
+	 * Stems the given term to an unique <tt>discriminator</tt>.
 	 *
 	 * @param term  The term that should be stemmed.
 	 * @return      Discriminator for <tt>term</tt>
@@ -115,7 +115,7 @@
 	/**
 	 * Gets R1
    *
-   * R1 - is the region after the first non-vowel follwing a vowel,
+   * R1 - is the region after the first non-vowel following a vowel,
    *      or is the null region at the end of the word if there is
    *      no such non-vowel.
    *
@@ -159,13 +159,13 @@
 	/**
 	 * Gets RV
    *
-   * RV - IF the second letter is a consoant, RV is the region after
+   * RV - IF the second letter is a consonant, RV is the region after
    *      the next following vowel,
    *
    *      OR if the first two letters are vowels, RV is the region
-   *      after the next consoant,
+   *      after the next consonant,
    *
-   *      AND otherwise (consoant-vowel case) RV is the region after
+   *      AND otherwise (consonant-vowel case) RV is the region after
    *      the third letter.
    *
    *      BUT RV is the end of the word if this positions cannot be
@@ -184,7 +184,7 @@
 
     i = value.length()-1 ;
 
-    // RV - IF the second letter is a consoant, RV is the region after
+    // RV - IF the second letter is a consonant, RV is the region after
     //      the next following vowel,
     if ((i > 0) && !isVowel(value.charAt(1))) {
       // find 1st vowel
@@ -201,7 +201,7 @@
 
 
     // RV - OR if the first two letters are vowels, RV is the region
-    //      after the next consoant,
+    //      after the next consonant,
     if ((i > 1) &&
         isVowel(value.charAt(0)) &&
         isVowel(value.charAt(1))) {
@@ -217,7 +217,7 @@
       }
     }
 
-    // RV - AND otherwise (consoant-vowel case) RV is the region after
+    // RV - AND otherwise (consonant-vowel case) RV is the region after
     //      the third letter.
     if (i > 2) {
       return value.substring(3) ;
@@ -394,7 +394,7 @@
 
 
 	/**
-	 * Standart suffix removal.
+	 * Standard suffix removal.
    * Search for the longest among the following suffixes, and perform
    * the following actions:
    *
@@ -403,12 +403,12 @@
 	private boolean step1() {
     if (CT == null) return false ;
 
-    // suffix lenght = 7
+    // suffix length = 7
     if (suffix(CT,"uciones") && suffix(R2,"uciones")) {
         CT = replaceSuffix(CT,"uciones","u") ; return true;
     }
 
-    // suffix lenght = 6
+    // suffix length = 6
     if (CT.length() >= 6) {
       if (suffix(CT,"imentos") && suffix(R2,"imentos")) {
           CT = removeSuffix(CT,"imentos") ; return true;
@@ -436,7 +436,7 @@
       }
     }
 
-    // suffix lenght = 5
+    // suffix length = 5
     if (CT.length() >= 5) {
       if (suffix(CT,"acoes") && suffix(R2,"acoes")) {
           CT = removeSuffix(CT,"acoes") ; return true;
@@ -473,7 +473,7 @@
       }
     }
 
-    // suffix lenght = 4
+    // suffix length = 4
     if (CT.length() >= 4) {
       if (suffix(CT,"acao") && suffix(R2,"acao")) {
           CT = removeSuffix(CT,"acao") ; return true;
@@ -521,7 +521,7 @@
       }
     }
 
-    // suffix lenght = 3
+    // suffix length = 3
     if (CT.length() >= 3) {
       if (suffix(CT,"eza") && suffix(R2,"eza")) {
           CT = removeSuffix(CT,"eza") ; return true ;
@@ -589,7 +589,7 @@
       }
     }
 
-    // suffix lenght = 6
+    // suffix length = 6
     if (RV.length() >= 6) {
       if (suffix(RV,"iremos")) {
         CT = removeSuffix(CT,"iremos") ; return true;
@@ -633,7 +633,7 @@
     }
 
 
-    // suffix lenght = 5
+    // suffix length = 5
     if (RV.length() >= 5) {
       if (suffix(RV,"irmos")) {
         CT = removeSuffix(CT,"irmos") ; return true;
@@ -718,7 +718,7 @@
       }
     }
 
-    // suffix lenght = 4
+    // suffix length = 4
     if (RV.length() >= 4) {
       if (suffix(RV,"aria")) {
         CT = removeSuffix(CT,"aria") ; return true;
@@ -845,7 +845,7 @@
       }
     }
 
-    // suffix lenght = 3
+    // suffix length = 3
     if (RV.length() >= 3) {
       if (suffix(RV,"ada")) {
         CT = removeSuffix(CT,"ada") ; return true;
@@ -888,7 +888,7 @@
       }
     }
 
-    // suffix lenght = 2
+    // suffix length = 2
     if (RV.length() >= 2) {
       if (suffix(RV,"ia")) {
         CT = removeSuffix(CT,"ia") ; return true;

Modified: lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/HyphenationCompoundWordTokenFilter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/HyphenationCompoundWordTokenFilter.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/HyphenationCompoundWordTokenFilter.java (original)
+++ lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/HyphenationCompoundWordTokenFilter.java Thu Sep  3 18:31:41 2009
@@ -150,7 +150,7 @@
   }
 
   protected void decomposeInternal(final Token token) {
-    // get the hpyphenation points
+    // get the hyphenation points
     Hyphenation hyphens = hyphenator.hyphenate(token.termBuffer(), 0, token
         .termLength(), 1, 1);
     // No hyphen points found -> exit

Modified: lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/hyphenation/TernaryTree.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/hyphenation/TernaryTree.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/hyphenation/TernaryTree.java (original)
+++ lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/hyphenation/TernaryTree.java Thu Sep  3 18:31:41 2009
@@ -25,7 +25,7 @@
  * <h2>Ternary Search Tree.</h2>
  * 
  * <p>
- * A ternary search tree is a hibrid between a binary tree and a digital search
+ * A ternary search tree is a hybrid between a binary tree and a digital search
  * tree (trie). Keys are limited to strings. A data value of type char is stored
  * in each leaf node. It can be used as an index (or pointer) to the data.
  * Branches that only contain one key are compressed to one node by storing a
@@ -45,7 +45,7 @@
  * requires from 5000 to 15000 hyphenation patterns which will be keys in this
  * tree. The strings patterns are usually small (from 2 to 5 characters), but
  * each char in the tree is stored in a node. Thus memory usage is the main
- * concern. We will sacrify 'elegance' to keep memory requirenments to the
+ * concern. We will sacrifice 'elegance' to keep memory requirements to the
  * minimum. Using java's char type as pointer (yes, I know pointer it is a
  * forbidden word in java) we can keep the size of the node to be just 8 bytes
  * (3 pointers and the data char). This gives room for about 65000 nodes. In my
@@ -100,7 +100,7 @@
    * </ul>
    * <p>
    * This shouldn't be a problem if we give the usual semantics to strings since
-   * 0xFFFF is garanteed not to be an Unicode character.
+   * 0xFFFF is guaranteed not to be an Unicode character.
    * </p>
    */
   protected char[] sc;

Modified: lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/hyphenation/package.html
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/hyphenation/package.html?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/hyphenation/package.html (original)
+++ lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/hyphenation/package.html Thu Sep  3 18:31:41 2009
@@ -17,7 +17,7 @@
 
 <html>
   <head>
-    <title>Hypenation code for the CompoundWordTokenFilter</title>
+    <title>Hyphenation code for the CompoundWordTokenFilter</title>
   </head>
   <body>
     <p>

Modified: lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/package.html
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/package.html?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/package.html (original)
+++ lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/compound/package.html Thu Sep  3 18:31:41 2009
@@ -69,7 +69,7 @@
 filter available:
 <ul>
 	<li><i>HyphenationCompoundWordTokenFilter</i>: it uses a
-	hyphenation grammer based approach to find potential word parts of a
+	hyphenation grammar based approach to find potential word parts of a
 	given word.</li>
 	<li><i>DictionaryCompoundWordTokenFilter</i>: it uses a
 	brute-force dictionary-only based approach to find the word parts of a given

Modified: lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/fr/FrenchStemmer.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/fr/FrenchStemmer.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/fr/FrenchStemmer.java (original)
+++ lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/fr/FrenchStemmer.java Thu Sep  3 18:31:41 2009
@@ -79,7 +79,7 @@
 
 
     /**
-     * Stemms the given term to a unique <tt>discriminator</tt>.
+     * Stems the given term to a unique <tt>discriminator</tt>.
      *
      * @param term  java.langString The term that should be stemmed
      * @return java.lang.String  Discriminator for <tt>term</tt>
@@ -148,7 +148,7 @@
 	}
 
 	/**
-	 * First step of the Porter Algorithmn<br>
+	 * First step of the Porter Algorithm<br>
 	 * refer to http://snowball.sourceforge.net/french/stemmer.html for an explanation
 	 */
 	private void step1( ) {
@@ -202,7 +202,7 @@
 	}
 
 	/**
-	 * Second step (A) of the Porter Algorithmn<br>
+	 * Second step (A) of the Porter Algorithm<br>
 	 * Will be performed if nothing changed from the first step
 	 * or changed were done in the amment, emment, ments or ment suffixes<br>
 	 * refer to http://snowball.sourceforge.net/french/stemmer.html for an explanation
@@ -219,7 +219,7 @@
 	}
 
 	/**
-	 * Second step (B) of the Porter Algorithmn<br>
+	 * Second step (B) of the Porter Algorithm<br>
 	 * Will be performed if step 2 A was performed unsuccessfully<br>
 	 * refer to http://snowball.sourceforge.net/french/stemmer.html for an explanation
 	 */
@@ -238,7 +238,7 @@
 	}
 
 	/**
-	 * Third step of the Porter Algorithmn<br>
+	 * Third step of the Porter Algorithm<br>
 	 * refer to http://snowball.sourceforge.net/french/stemmer.html for an explanation
 	 */
 	private void step3() {
@@ -259,7 +259,7 @@
 	}
 
 	/**
-	 * Fourth step of the Porter Algorithmn<br>
+	 * Fourth step of the Porter Algorithm<br>
 	 * refer to http://snowball.sourceforge.net/french/stemmer.html for an explanation
 	 */
 	private void step4() {
@@ -286,7 +286,7 @@
 	}
 
 	/**
-	 * Fifth step of the Porter Algorithmn<br>
+	 * Fifth step of the Porter Algorithm<br>
 	 * refer to http://snowball.sourceforge.net/french/stemmer.html for an explanation
 	 */
 	private void step5() {
@@ -301,7 +301,7 @@
 	}
 
 	/**
-	 * Sixth (and last!) step of the Porter Algorithmn<br>
+	 * Sixth (and last!) step of the Porter Algorithm<br>
 	 * refer to http://snowball.sourceforge.net/french/stemmer.html for an explanation
 	 */
 	private void step6() {

Modified: lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/nl/DutchStemmer.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/nl/DutchStemmer.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/nl/DutchStemmer.java (original)
+++ lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/nl/DutchStemmer.java Thu Sep  3 18:31:41 2009
@@ -41,7 +41,7 @@
 
   //TODO convert to internal
   /*
-   * Stemms the given term to an unique <tt>discriminator</tt>.
+   * Stems the given term to an unique <tt>discriminator</tt>.
    *
    * @param term The term that should be stemmed.
    * @return Discriminator for <tt>term</tt>

Modified: lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ru/RussianStemmer.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ru/RussianStemmer.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ru/RussianStemmer.java (original)
+++ lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/ru/RussianStemmer.java Thu Sep  3 18:31:41 2009
@@ -372,7 +372,7 @@
 
     /**
      * Finds the ending among the given class of endings, then checks if this ending was
-     * preceded by any of given predessors, and if so, removes it from stemming zone.
+     * preceded by any of given predecessors, and if so, removes it from stemming zone.
      * Creation date: (17/03/2002 8:18:34 PM)
      */
     private boolean findAndRemoveEnding(StringBuffer stemmingZone,

Modified: lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/shingle/ShingleMatrixFilter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/shingle/ShingleMatrixFilter.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/shingle/ShingleMatrixFilter.java (original)
+++ lucene/java/trunk/contrib/analyzers/common/src/java/org/apache/lucene/analysis/shingle/ShingleMatrixFilter.java Thu Sep  3 18:31:41 2009
@@ -51,10 +51,10 @@
  * be used to replace phrase queries, especially them with 0 slop.
  *
  * <p>Without a spacer character
- * it can be used to handle composition and decomposion of words
+ * it can be used to handle composition and decomposition of words
  * such as searching for "multi dimensional" instead of "multidimensional".
  * It is a rather common human problem at query time
- * in several languages, notebly the northern Germanic branch.
+ * in several languages, notably the northern Germanic branch.
  *
  * <p>Shingles are amongst many things also known to solve problems
  * in spell checking, language detection and document clustering.
@@ -108,7 +108,7 @@
  * so it never created the same shingle more than once in the first place.
  *
  * <p>The filter also has basic support for calculating weights for the shingles
- * based on the weights of the tokens from the input stream, output shingle size, et c.
+ * based on the weights of the tokens from the input stream, output shingle size, etc.
  * See {@link #calculateShingleWeight(org.apache.lucene.analysis.Token, java.util.List, int, java.util.List, java.util.List)}.
  * <p/>
  * <b>NOTE:</b> This filter might not behave correctly if used with custom Attributes, i.e. Attributes other than
@@ -253,7 +253,7 @@
    * @see #ignoringSinglePrefixOrSuffixShingleByDefault
    * @see #defaultSettingsCodec
    *
-   * @param input stream from wich to construct the matrix
+   * @param input stream from which to construct the matrix
    * @param minimumShingleSize minimum number of tokens in any shingle.
    * @param maximumShingleSize maximum number of tokens in any shingle.
    */
@@ -268,7 +268,7 @@
    * @see #ignoringSinglePrefixOrSuffixShingleByDefault
    * @see #defaultSettingsCodec
    *
-   * @param input stream from wich to construct the matrix
+   * @param input stream from which to construct the matrix
    * @param minimumShingleSize minimum number of tokens in any shingle.
    * @param maximumShingleSize maximum number of tokens in any shingle.
    * @param spacerCharacter character to use between texts of the token parts in a shingle. null for none.
@@ -282,7 +282,7 @@
    *
    * @see #defaultSettingsCodec
    *
-   * @param input stream from wich to construct the matrix
+   * @param input stream from which to construct the matrix
    * @param minimumShingleSize minimum number of tokens in any shingle.
    * @param maximumShingleSize maximum number of tokens in any shingle.
    * @param spacerCharacter character to use between texts of the token parts in a shingle. null for none.
@@ -296,7 +296,7 @@
   /**
    * Creates a shingle filter with ad hoc parameter settings.
    *
-   * @param input stream from wich to construct the matrix
+   * @param input stream from which to construct the matrix
    * @param minimumShingleSize minimum number of tokens in any shingle.
    * @param maximumShingleSize maximum number of tokens in any shingle.
    * @param spacerCharacter character to use between texts of the token parts in a shingle. null for none.
@@ -408,8 +408,8 @@
   private static final Token request_next_token = new Token();
 
   /**
-   * This method exists in order to avoid reursive calls to the method
-   * as the complexity of a fairlt small matrix then easily would require
+   * This method exists in order to avoid recursive calls to the method
+   * as the complexity of a fairly small matrix then easily would require
    * a gigabyte sized stack per thread.
    *
    * @param reusableToken
@@ -490,7 +490,7 @@
             // don't really care, we just read it.
           }
 
-          // get rith of resources
+          // get rid of resources
 
           // delete the first column in the matrix
           Matrix.Column deletedColumn = (Matrix.Column) matrix.columns.remove(0);

Modified: lucene/java/trunk/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BigramDictionary.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BigramDictionary.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BigramDictionary.java (original)
+++ lucene/java/trunk/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BigramDictionary.java Thu Sep  3 18:31:41 2009
@@ -147,7 +147,7 @@
   /**
    * Load the datafile into this BigramDictionary
    * 
-   * @param dctFilePath path to the Bigramdictionary (bigramdict.mem)
+   * @param dctFilePath path to the Bigramdictionary (bigramdict.dct)
    * @throws FileNotFoundException
    * @throws IOException
    * @throws UnsupportedEncodingException

Modified: lucene/java/trunk/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/WordDictionary.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/WordDictionary.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/WordDictionary.java (original)
+++ lucene/java/trunk/contrib/analyzers/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/WordDictionary.java Thu Sep  3 18:31:41 2009
@@ -184,7 +184,7 @@
   /**
    * Load the datafile into this WordDictionary
    * 
-   * @param dctFilePath path to word dictionary (coredict.mem)
+   * @param dctFilePath path to word dictionary (coredict.dct)
    * @return number of words read
    * @throws FileNotFoundException
    * @throws IOException

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/NoMoreDataException.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/NoMoreDataException.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/NoMoreDataException.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/NoMoreDataException.java Thu Sep  3 18:31:41 2009
@@ -20,7 +20,7 @@
 /**
  * Exception indicating there is no more data.
  * Thrown by Docs Makers if doc.maker.forever is false and docs sources of that maker where exhausted.
- * This is usefull for iterating all document of a source, in case we don't know in advance how many docs there are.
+ * This is useful for iterating all document of a source, in case we don't know in advance how many docs there are.
  */
 public class NoMoreDataException extends Exception {
 

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/SimpleQueryMaker.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/SimpleQueryMaker.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/SimpleQueryMaker.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/SimpleQueryMaker.java Thu Sep  3 18:31:41 2009
@@ -36,9 +36,9 @@
 
   /**
    * Prepare the queries for this test.
-   * Extending classes can overide this method for preparing different queries. 
+   * Extending classes can override this method for preparing different queries. 
    * @return prepared queries.
-   * @throws Exception if canot prepare the queries.
+   * @throws Exception if cannot prepare the queries.
    */
   protected Query[] prepareQueries() throws Exception {
     // analyzer (default is standard analyzer)

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/SimpleSloppyPhraseQueryMaker.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/SimpleSloppyPhraseQueryMaker.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/SimpleSloppyPhraseQueryMaker.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/SimpleSloppyPhraseQueryMaker.java Thu Sep  3 18:31:41 2009
@@ -33,7 +33,7 @@
    * @see org.apache.lucene.benchmark.byTask.feeds.SimpleQueryMaker#prepareQueries()
    */
   protected Query[] prepareQueries() throws Exception {
-    // exatract some 100 words from doc text to an array
+    // extract some 100 words from doc text to an array
     String words[];
     ArrayList w = new ArrayList();
     StringTokenizer st = new StringTokenizer(SingleDocSource.DOC_TEXT);
@@ -60,7 +60,7 @@
             }
           }
           queries.add(q);
-          // reveresed
+          // reversed
           remainedSlop = slop;
           q = new PhraseQuery();
           q.setSlop(slop+2*qlen);

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/programmatic/Sample.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/programmatic/Sample.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/programmatic/Sample.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/programmatic/Sample.java Thu Sep  3 18:31:41 2009
@@ -28,7 +28,7 @@
 import org.apache.lucene.benchmark.byTask.utils.Config;
 
 /**
- * Sample performance test written programatically - no algorithm file is needed here.
+ * Sample performance test written programmatically - no algorithm file is needed here.
  */
 public class Sample {
 
@@ -43,7 +43,7 @@
     PerfRunData runData = new PerfRunData(conf);
     
     // 1. top sequence
-    TaskSequence top = new TaskSequence(runData,null,null,false); // top level, not parralel
+    TaskSequence top = new TaskSequence(runData,null,null,false); // top level, not parallel
     
     // 2. task to create the index
     CreateIndexTask create = new CreateIndexTask(runData);

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/programmatic/package.html
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/programmatic/package.html?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/programmatic/package.html (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/programmatic/package.html Thu Sep  3 18:31:41 2009
@@ -17,6 +17,6 @@
 -->
 <html>
 <body>
-Sample performance test written programatically - no algorithm file is needed here.
+Sample performance test written programmatically - no algorithm file is needed here.
 </body>
 </html>
\ No newline at end of file

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/stats/Report.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/stats/Report.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/stats/Report.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/stats/Report.java Thu Sep  3 18:31:41 2009
@@ -42,7 +42,7 @@
   }
 
   /**
-   * Returns number of lines in the reoprt.
+   * Returns number of lines in the report.
    */
   public int getSize() {
     return size;

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/stats/TaskStats.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/stats/TaskStats.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/stats/TaskStats.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/stats/TaskStats.java Thu Sep  3 18:31:41 2009
@@ -171,7 +171,7 @@
     maxUsedMem += stat2.getMaxUsedMem();
     count += stat2.getCount();
     if (round != stat2.round) {
-      round = -1; // no meaning if agregating tasks of different ruond. 
+      round = -1; // no meaning if aggregating tasks of different round. 
     }
   }
 

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/OpenReaderTask.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/OpenReaderTask.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/OpenReaderTask.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/OpenReaderTask.java Thu Sep  3 18:31:41 2009
@@ -31,7 +31,7 @@
 
 /**
  * Open an index reader.
- * <br>Other side effects: index redaer object in perfRunData is set.
+ * <br>Other side effects: index reader object in perfRunData is set.
  * <br> Optional params readOnly,commitUserData eg. OpenReader(false,commit1)
  */
 public class OpenReaderTask extends PerfTask {

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/PerfTask.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/PerfTask.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/PerfTask.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/PerfTask.java Thu Sep  3 18:31:41 2009
@@ -28,8 +28,8 @@
 /**
  * An abstract task to be tested for performance. <br>
  * Every performance task extends this class, and provides its own
- * {@link #doLogic()} method, which performss the actual task. <br>
- * Tasks performing some work that should be measured for the task, can overide
+ * {@link #doLogic()} method, which performs the actual task. <br>
+ * Tasks performing some work that should be measured for the task, can override
  * {@link #setup()} and/or {@link #tearDown()} and place that work there. <br>
  * Relevant properties: <code>task.max.depth.log</code>.<br>
  * Also supports the following logging attributes:
@@ -40,7 +40,7 @@
  * <li>log.step.[class Task Name] - specifies the same as 'log.step', only for a
  * particular task name. For example, log.step.AddDoc will be applied only for
  * {@link AddDocTask}, but not for {@link DeleteDocTask}. It's a way to control
- * per task logging settings. If you want to ommit logging for any other task,
+ * per task logging settings. If you want to omit logging for any other task,
  * include log.step=-1. The syntax is "log.step." together with the Task's
  * 'short' name (i.e., without the 'Task' part).
  * </ul>
@@ -118,8 +118,8 @@
   }
   
   protected Object clone() throws CloneNotSupportedException {
-    // tasks having non primitive data structures should overide this.
-    // otherwise parallel running of a task sequence might not run crrectly. 
+    // tasks having non primitive data structures should override this.
+    // otherwise parallel running of a task sequence might not run correctly. 
     return super.clone();
   }
 
@@ -152,7 +152,7 @@
   }
 
   /**
-   * Perform the task once (ignoring repetions specification)
+   * Perform the task once (ignoring repetitions specification)
    * Return number of work items done by this task.
    * For indexing that can be number of docs added.
    * For warming that can be number of scanned items, etc.
@@ -230,7 +230,7 @@
   }
   
   /**
-   * Tasks that should never log at start can overide this.  
+   * Tasks that should never log at start can override this.  
    * @return true if this task should never log when it start.
    */
   protected boolean shouldNeverLogAtStart () {
@@ -238,7 +238,7 @@
   }
   
   /**
-   * Tasks that should not record statistics can overide this.  
+   * Tasks that should not record statistics can override this.  
    * @return true if this task should never record its statistics.
    */
   protected boolean shouldNotRecordStats () {
@@ -274,7 +274,7 @@
   }
 
   /**
-   * Sub classes that supports parameters must overide this method to return true.
+   * Sub classes that supports parameters must override this method to return true.
    * @return true iff this task supports command line params.
    */
   public boolean supportsParams () {

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReadTask.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReadTask.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReadTask.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReadTask.java Thu Sep  3 18:31:41 2009
@@ -250,7 +250,7 @@
   }
 
   /**
-   * @return the maxiumum number of highlighter fragments
+   * @return the maximum number of highlighter fragments
    * @deprecated Please define getBenchmarkHighlighter instead
    */
   final int maxNumFragments(){

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ResetSystemEraseTask.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ResetSystemEraseTask.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ResetSystemEraseTask.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ResetSystemEraseTask.java Thu Sep  3 18:31:41 2009
@@ -24,7 +24,7 @@
 /**
  * Reset all index and input data and call gc, erase index and dir, does NOT clear statistics.
  * <br>This contains ResetInputs.
- * <br>Other side effects: writers/readers nulified, deleted, closed.
+ * <br>Other side effects: writers/readers nullified, deleted, closed.
  * Index is erased.
  * Directory is erased.
  */

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ResetSystemSoftTask.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ResetSystemSoftTask.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ResetSystemSoftTask.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ResetSystemSoftTask.java Thu Sep  3 18:31:41 2009
@@ -24,7 +24,7 @@
 /**
  * Reset all index and input data and call gc, does NOT erase index/dir, does NOT clear statistics.
  * This contains ResetInputs.
- * <br>Other side effects: writers/readers nulified, closed.
+ * <br>Other side effects: writers/readers nullified, closed.
  * Index is NOT erased.
  * Directory is NOT erased.
  */

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/SetPropTask.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/SetPropTask.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/SetPropTask.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/SetPropTask.java Thu Sep  3 18:31:41 2009
@@ -21,7 +21,7 @@
 
 /**
  * Set a performance test configuration property.
- * A property may have a single value, or a sequence of values, seprated by ":". 
+ * A property may have a single value, or a sequence of values, separated by ":". 
  * If a sequence of values is specified, each time a new round starts, 
  * the next (cyclic) value is taken.  
  * <br>Other side effects: none.

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java Thu Sep  3 18:31:41 2009
@@ -251,7 +251,7 @@
     }
   }
 
-  // run threadsm with rate
+  // run threads with rate
   private void startlThreadsWithRate(Thread[] t) throws InterruptedException {
     long delayStep = (perMin ? 60000 : 1000) /rate;
     long nextStartTime = System.currentTimeMillis();
@@ -261,7 +261,7 @@
         //System.out.println("thread wait: "+waitMore+" for rate: "+ratePerMin+" (delayStep="+delayStep+")");
         Thread.sleep(waitMore);
       }
-      nextStartTime += delayStep; // this aims at avarage rate of starting threads. 
+      nextStartTime += delayStep; // this aims at average rate of starting threads. 
       t[i].start();
     }
   }
@@ -346,7 +346,7 @@
   }
 
   public String getName() {
-    return seqName; // overide to include more info 
+    return seqName; // override to include more info 
   }
 
   /**

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/WriteLineDocTask.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/WriteLineDocTask.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/WriteLineDocTask.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/WriteLineDocTask.java Thu Sep  3 18:31:41 2009
@@ -35,9 +35,9 @@
 /**
  * A task which writes documents, one line per document. Each line is in the
  * following format: title &lt;TAB&gt; date &lt;TAB&gt; body. The output of this
- * taske can be consumed by
+ * task can be consumed by
  * {@link org.apache.lucene.benchmark.byTask.feeds.LineDocMaker} and is intended
- * to save the IO overhead of opening a file per doument to be indexed.<br>
+ * to save the IO overhead of opening a file per document to be indexed.<br>
  * Supports the following parameters:
  * <ul>
  * <li>line.file.out - the name of the file to write the output to. That
@@ -47,7 +47,7 @@
  * false).
  * </ul>
  * <b>NOTE:</b> this class is not thread-safe and if used by multiple threads the
- * output is unspecified (as all will write to the same ouput file in a
+ * output is unspecified (as all will write to the same output file in a
  * non-synchronized way).
  */
 public class WriteLineDocTask extends PerfTask {

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Config.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Config.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Config.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Config.java Thu Sep  3 18:31:41 2009
@@ -32,7 +32,7 @@
 /**
  * Perf run configuration properties.
  * <p>
- * Numeric peroperty containing ":", e.g. "10:100:5" is interpreted 
+ * Numeric property containing ":", e.g. "10:100:5" is interpreted 
  * as array of numeric values. It is extracted once, on first use, and 
  * maintain a round number to return the appropriate value.
  * <p>
@@ -99,7 +99,7 @@
   }
 
   /**
-   * Create config without algorithm - usefull for a programmatic perf test.
+   * Create config without algorithm - useful for a programmatic perf test.
    * @param props - configuration properties.
    * @throws IOException
    */
@@ -135,7 +135,7 @@
    * Set a property.
    * Note: once a multiple values property is set, it can no longer be modified.
    * @param name name of property.
-   * @param value either single or multiple propery value (multple values are separated by ":")
+   * @param value either single or multiple property value (multiple values are separated by ":")
    * @throws Exception 
    */
   public void set (String name, String value) throws Exception {
@@ -208,7 +208,7 @@
   /**
    * Return a boolean property.
    * If the property contain ":", e.g. "true.true.false", it is interpreted 
-   * as array of boleans. It is extracted once, on first call
+   * as array of booleans. It is extracted once, on first call
    * to get() it, and a by-round-value is returned. 
    * @param name name of property
    * @param dflt default value

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Format.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Format.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Format.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Format.java Thu Sep  3 18:31:41 2009
@@ -58,7 +58,7 @@
   }
 
   /**
-   * Padd a number from right.
+   * Pad a number from right.
    * @param numFracDigits number of digits in fraction part - must be 0 or 1 or 2.
    * @param f number to be formatted.
    * @param col column name (used for deciding on length).
@@ -75,7 +75,7 @@
   }
 
   /**
-   * Padd a number from left.
+   * Pad a number from left.
    * @param n number to be formatted.
    * @param col column name (used for deciding on length).
    * @return formatted string.
@@ -86,7 +86,7 @@
   }
 
   /**
-   * Padd a string from right.
+   * Pad a string from right.
    * @param s string to be formatted.
    * @param col column name (used for deciding on length).
    * @return formatted string.
@@ -97,7 +97,7 @@
   }
 
   /**
-   * Padd a string from left.
+   * Pad a string from left.
    * @param s string to be formatted.
    * @param col column name (used for deciding on length).
    * @return formatted string.

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/StringBufferReader.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/StringBufferReader.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/StringBufferReader.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/StringBufferReader.java Thu Sep  3 18:31:41 2009
@@ -37,7 +37,7 @@
  * <pre>
  * StringBuffer sb = new StringBuffer("some text");
  * Reader reader = new StringBufferReader(sb);
- * ... read from reader - dont close it ! ...
+ * ... read from reader - don't close it ! ...
  * sb.setLength(0);
  * sb.append("some new text");
  * reader.reset();

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/quality/QualityBenchmark.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/quality/QualityBenchmark.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/quality/QualityBenchmark.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/quality/QualityBenchmark.java Thu Sep  3 18:31:41 2009
@@ -63,7 +63,7 @@
    * @param qqs quality queries to run.
    * @param qqParser parser for turning QualityQueries into Lucene Queries. 
    * @param searcher index to be searched.
-   * @param docNameField name of field containg the document name.
+   * @param docNameField name of field containing the document name.
    *        This allows to extract the doc name for search results,
    *        and is important for judging the results.  
    */
@@ -114,7 +114,7 @@
   private QualityStats analyzeQueryResults(QualityQuery qq, Query q, TopDocs td, Judge judge, PrintWriter logger, long searchTime) throws IOException {
     QualityStats stts = new QualityStats(judge.maxRecall(qq),searchTime);
     ScoreDoc sd[] = td.scoreDocs;
-    long t1 = System.currentTimeMillis(); // extraction of first doc name we meassure also construction of doc name extractor, just in case.
+    long t1 = System.currentTimeMillis(); // extraction of first doc name we measure also construction of doc name extractor, just in case.
     DocNameExtractor xt = new DocNameExtractor(docNameField);
     for (int i=0; i<sd.length; i++) {
       String docName = xt.docName(searcher,sd[i].doc);

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/quality/QualityStats.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/quality/QualityStats.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/quality/QualityStats.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/quality/QualityStats.java Thu Sep  3 18:31:41 2009
@@ -215,7 +215,7 @@
       }
     }
     assert m>0 : "Fishy: no \"good\" queries!";
-    // take average: times go by all queries, other meassures go by "good" queries noly.
+    // take average: times go by all queries, other measures go by "good" queries only.
     avg.searchTime /= stats.length;
     avg.docNamesExtractTime /= stats.length;
     avg.numGoodPoints /= m;

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/quality/utils/QualityQueriesFinder.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/quality/utils/QualityQueriesFinder.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/quality/utils/QualityQueriesFinder.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/quality/utils/QualityQueriesFinder.java Thu Sep  3 18:31:41 2009
@@ -36,7 +36,7 @@
   private Directory dir;
   
   /**
-   * Constrctor over a directory containing the index.
+   * Constructor over a directory containing the index.
    * @param dir directory containing the index we search for the quality test. 
    */
   private QualityQueriesFinder(Directory dir) {

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/stats/TestData.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/stats/TestData.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/stats/TestData.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/stats/TestData.java Thu Sep  3 18:31:41 2009
@@ -177,7 +177,7 @@
                     }
                     dc.count++;
                     //dc.total += td.getRate();
-                    dc.total += (td.count>0 && td.elapsed<=0 ? 1 : td.elapsed); // assume atleast 1ms for any countable op
+                    dc.total += (td.count>0 && td.elapsed<=0 ? 1 : td.elapsed); // assume at least 1ms for any countable op
                     dc.recordCount += td.count;
                 }
             }
@@ -204,7 +204,7 @@
             }
             ldc.Dcount += dc.count;
             ldc.DrecordCount += dc.recordCount;
-            ldc.Dtotal += (dc.count>0 && dc.total<=0 ? 1 : dc.total); // assume atleast 1ms for any countable op 
+            ldc.Dtotal += (dc.count>0 && dc.total<=0 ? 1 : dc.total); // assume at least 1ms for any countable op 
         }
         it = mapMem.keySet().iterator();
         while (it.hasNext())
@@ -281,20 +281,20 @@
       numFormat[1].setMinimumFractionDigits(1);
     }
 
-    // padd number from left
+    // pad number from left
     // numFracDigits must be 0 or 1.
     static String format(int numFracDigits, float f, String col) {
       String res = padd + numFormat[numFracDigits].format(f);
       return res.substring(res.length() - col.length());
     }
 
-    // padd number from left
+    // pad number from left
     static String format(int n, String col) {
       String res = padd + n;
       return res.substring(res.length() - col.length());
     }
 
-    // padd string from right
+    // pad string from right
     static String format(String s, String col) {
       return (s + padd).substring(0,col.length());
     }
@@ -350,7 +350,7 @@
     /**
      * Similar to {@link #getAll(java.io.File[], org.apache.lucene.analysis.Analyzer[])} but only uses
      * maxBufferedDocs of 10 and 100 and same for mergeFactor, thus reducing the number of permutations significantly.
-     * It also only uses compund file and optimize is always true.
+     * It also only uses compound file and optimize is always true.
      *
      * @param sources
      * @param analyzers

Modified: lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/stats/TimeData.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/stats/TimeData.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/stats/TimeData.java (original)
+++ lucene/java/trunk/contrib/benchmark/src/java/org/apache/lucene/benchmark/stats/TimeData.java Thu Sep  3 18:31:41 2009
@@ -77,7 +77,7 @@
 
   /** Get rate of processing, defined as number of processed records per second. */
   public double getRate() {
-    double rps = (double) count * 1000.0 / (double) (elapsed>0 ? elapsed : 1); // assume atleast 1ms for any countable op
+    double rps = (double) count * 1000.0 / (double) (elapsed>0 ? elapsed : 1); // assume at least 1ms for any countable op
     return rps;
   }
 
@@ -88,7 +88,7 @@
 
   public String toString() { return toString(true); }
   /**
-   * Return a tab-seprated string containing this data.
+   * Return a tab-separated string containing this data.
    * @param withMem if true, append also memory information
    * @return The String
    */

Modified: lucene/java/trunk/contrib/fast-vector-highlighter/src/java/org/apache/lucene/search/vectorhighlight/ScoreOrderFragmentsBuilder.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/fast-vector-highlighter/src/java/org/apache/lucene/search/vectorhighlight/ScoreOrderFragmentsBuilder.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/fast-vector-highlighter/src/java/org/apache/lucene/search/vectorhighlight/ScoreOrderFragmentsBuilder.java (original)
+++ lucene/java/trunk/contrib/fast-vector-highlighter/src/java/org/apache/lucene/search/vectorhighlight/ScoreOrderFragmentsBuilder.java Thu Sep  3 18:31:41 2009
@@ -38,7 +38,7 @@
   /**
    * a constructor.
    * 
-   * @param preTags aray of pre-tags for markup terms.
+   * @param preTags array of pre-tags for markup terms.
    * @param postTags array of post-tags for markup terms.
    */
   public ScoreOrderFragmentsBuilder( String[] preTags, String[] postTags ){

Modified: lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/GradientFormatter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/GradientFormatter.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/GradientFormatter.java (original)
+++ lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/GradientFormatter.java Thu Sep  3 18:31:41 2009
@@ -42,7 +42,7 @@
      * 
      * @param maxScore
      *            The score (and above) displayed as maxColor (See QueryScorer.getMaxWeight 
-     * 			  which can be used to callibrate scoring scale)
+     * 			  which can be used to calibrate scoring scale)
      * @param minForegroundColor
      *            The hex color used for representing IDF scores of zero eg
      *            #FFFFFF (white) or null if no foreground color required
@@ -194,7 +194,7 @@
      * input is nonnegative unless there is a preceding minus sign. This method
      * reads the input as twos complement instead, so if the input is 8 bytes
      * long, it will correctly restore a negative int produced by
-     * Integer.toHexString() but not neccesarily one produced by
+     * Integer.toHexString() but not necessarily one produced by
      * Integer.toString(x,16) since that method will produce a string like '-FF'
      * for negative integer values.
      * 

Modified: lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/Highlighter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/Highlighter.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/Highlighter.java (original)
+++ lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/Highlighter.java Thu Sep  3 18:31:41 2009
@@ -93,7 +93,7 @@
 	 *
 	 * @param tokenStream   a stream of tokens identified in the text parameter, including offset information.
 	 * This is typically produced by an analyzer re-parsing a document's
-	 * text. Some work may be done on retrieving TokenStreams more efficently
+	 * text. Some work may be done on retrieving TokenStreams more efficiently
 	 * by adding support for storing original text position data in the Lucene
 	 * index but this support is not currently available (as of Lucene 1.4 rc2).
 	 * @param text text to highlight terms in

Modified: lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/QueryTermExtractor.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/QueryTermExtractor.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/QueryTermExtractor.java (original)
+++ lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/QueryTermExtractor.java Thu Sep  3 18:31:41 2009
@@ -54,7 +54,7 @@
 	 *
 	 * @param query      Query to extract term texts from
 	 * @param reader used to compute IDF which can be used to a) score selected fragments better 
-	 * b) use graded highlights eg chaning intensity of font color
+	 * b) use graded highlights eg changing intensity of font color
 	 * @param fieldName the field on which Inverse Document Frequency (IDF) calculations are based
 	 * @return an array of the terms used in a query, plus their weights.
 	 */

Modified: lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java (original)
+++ lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java Thu Sep  3 18:31:41 2009
@@ -130,7 +130,7 @@
      * 	   stemmer/lowercaser/stopword combo)
      *  2) The  number of other fields (Lucene reads ALL fields off the disk 
      *     when accessing just one document field - can cost dear!)
-     *  3) Use of compression on field storage - could be faster cos of compression (less disk IO)
+     *  3) Use of compression on field storage - could be faster due to compression (less disk IO)
      *     or slower (more CPU burn) depending on the content.
      *
      * @param tpv

Modified: lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/package.html
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/package.html?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/package.html (original)
+++ lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/package.html Thu Sep  3 18:31:41 2009
@@ -87,7 +87,7 @@
 you want to see what the basis of the similarities are).</p>
 
 <p>The QueryScorer class has a new constructor which can use an IndexReader to derive the IDF (inverse document frequency)
-for each term in order to influcence the score. This is useful for helping to extracting the most significant sections
+for each term in order to influence the score. This is useful for helping to extracting the most significant sections
 of a document and in supplying scores used by the new GradientFormatter to color significant words more strongly.
 The QueryScorer.getMaxWeight method is useful when passed to the GradientFormatter constructor to define the top score
 which is associated with the top color.</p>

Modified: lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/FieldSettings.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/FieldSettings.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/FieldSettings.java (original)
+++ lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/FieldSettings.java Thu Sep  3 18:31:41 2009
@@ -23,7 +23,7 @@
  */
 
 /**
- * Essetially a Map<FieldName, {@link org.apache.lucene.store.instantiated.FieldSetting}> 
+ * Essentially a Map<FieldName, {@link org.apache.lucene.store.instantiated.FieldSetting}> 
  */
 class FieldSettings implements Serializable {
 

Modified: lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedIndex.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedIndex.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedIndex.java (original)
+++ lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedIndex.java Thu Sep  3 18:31:41 2009
@@ -92,7 +92,7 @@
    * Creates a new instantiated index that looks just like the index in a specific state as represented by a reader.
    *
    * @param sourceIndexReader the source index this new instantiated index will be copied from.
-   * @throws IOException if the source index is not optimized, or when accesing the source.
+   * @throws IOException if the source index is not optimized, or when accessing the source.
    */
   public InstantiatedIndex(IndexReader sourceIndexReader) throws IOException {
     this(sourceIndexReader, null);
@@ -105,7 +105,7 @@
    *
    * @param sourceIndexReader the source index this new instantiated index will be copied from.
    * @param fields fields to be added, or null for all
-   * @throws IOException if the source index is not optimized, or when accesing the source.
+   * @throws IOException if the source index is not optimized, or when accessing the source.
    */
   public InstantiatedIndex(IndexReader sourceIndexReader, Set<String> fields) throws IOException {
 

Modified: lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedIndexReader.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedIndexReader.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedIndexReader.java (original)
+++ lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedIndexReader.java Thu Sep  3 18:31:41 2009
@@ -224,8 +224,8 @@
    * over a {@link org.apache.lucene.store.Directory}.
    * I.e., if you need to touch the document, clone it first!
    * <p>
-   * This can also be seen as a feature for live canges of stored values,
-   * but be carful! Adding a field with an name unknown to the index
+   * This can also be seen as a feature for live changes of stored values,
+   * but be careful! Adding a field with an name unknown to the index
    * or to a field with previously no stored values will make
    * {@link org.apache.lucene.store.instantiated.InstantiatedIndexReader#getFieldNames(org.apache.lucene.index.IndexReader.FieldOption)}
    * out of sync, causing problems for instance when merging the
@@ -259,8 +259,8 @@
    * over a {@link org.apache.lucene.store.Directory}.
    * I.e., if you need to touch the document, clone it first!
    * <p>
-   * This can also be seen as a feature for live canges of stored values,
-   * but be carful! Adding a field with an name unknown to the index
+   * This can also be seen as a feature for live changes of stored values,
+   * but be careful! Adding a field with an name unknown to the index
    * or to a field with previously no stored values will make
    * {@link org.apache.lucene.store.instantiated.InstantiatedIndexReader#getFieldNames(org.apache.lucene.index.IndexReader.FieldOption)}
    * out of sync, causing problems for instance when merging the

Modified: lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedIndexWriter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedIndexWriter.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedIndexWriter.java (original)
+++ lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedIndexWriter.java Thu Sep  3 18:31:41 2009
@@ -281,7 +281,7 @@
             }
           }
 
-          // create association term document infomation
+          // create association term document information
           //
           // [Term]-- {0..*} | {0..* ordered} --(field)[Document]
           //
@@ -302,7 +302,7 @@
 
           InstantiatedTermDocumentInformation info = new InstantiatedTermDocumentInformation(term, document, /*eTermText_TermDocInfoFactory.getValue().termFrequency,*/ positions, payloads);
 
-          // todo optimize, this should be chached and updated to array in batches rather than appending the array once for every position!
+          // todo optimize, this should be cached and updated to array in batches rather than appending the array once for every position!
           InstantiatedTermDocumentInformation[] associatedDocuments;
           if (term.getAssociatedDocuments() != null) {
             associatedDocuments = new InstantiatedTermDocumentInformation[term.getAssociatedDocuments().length + 1];
@@ -363,7 +363,7 @@
 
     // order document informations in dirty terms
     for (InstantiatedTerm term : dirtyTerms) {
-      // todo optimize, i belive this is useless, that the natural order is document number?
+      // todo optimize, i believe this is useless, that the natural order is document number?
       Arrays.sort(term.getAssociatedDocuments(), InstantiatedTermDocumentInformation.documentNumberComparator);
 
 //      // update association class reference for speedy skipTo()

Modified: lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedTerm.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedTerm.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedTerm.java (original)
+++ lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedTerm.java Thu Sep  3 18:31:41 2009
@@ -74,10 +74,10 @@
   private InstantiatedTermDocumentInformation[] associatedDocuments;
 
   /**
-   * Meta data per document in wich this term is occuring.
+   * Meta data per document in which this term is occurring.
    * Ordered by document number.
    *
-   * @return Meta data per document in wich this term is occuring.
+   * @return Meta data per document in which this term is occurring.
    */
   public InstantiatedTermDocumentInformation[] getAssociatedDocuments() {
     return associatedDocuments;
@@ -85,10 +85,10 @@
 
 
   /**
-   * Meta data per document in wich this term is occuring.
+   * Meta data per document in which this term is occurring.
    * Ordered by document number.
    *
-   * @param associatedDocuments meta data per document in wich this term is occuring, ordered by document number
+   * @param associatedDocuments meta data per document in which this term is occurring, ordered by document number
    */
   void setAssociatedDocuments(InstantiatedTermDocumentInformation[] associatedDocuments) {
     this.associatedDocuments = associatedDocuments;
@@ -182,7 +182,7 @@
       // A typical binarySearch algorithm uses pivot = (min + max) / 2.
       // The pivot we use here tries to be smarter and to choose a pivot close to the expectable location of the key.
       // This reduces dramatically the number of steps needed to get to the key.
-      // However, it does not work well with a logaritmic distribution of values, for instance.
+      // However, it does not work well with a logarithmic distribution of values, for instance.
       // When the key is not found quickly the smart way, we switch to the standard pivot.
       if (nPreviousSteps > 2) {
         pivot = (min + max) >> 1;
@@ -214,7 +214,7 @@
 
 
   /**
-   * Navigates to the view of this occurances of this term in a specific document. 
+   * Navigates to the view of this occurrences of this term in a specific document. 
    *
    * This method is only used by InstantiatedIndex(IndexReader) and
    * should not be optimized for less CPU at the cost of more RAM.

Modified: lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedTermDocumentInformation.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedTermDocumentInformation.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedTermDocumentInformation.java (original)
+++ lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedTermDocumentInformation.java Thu Sep  3 18:31:41 2009
@@ -23,7 +23,7 @@
 
 /**
  * There is one instance of this class per indexed term in a document
- * and it contains the meta data about each occurance of a term in a docment.
+ * and it contains the meta data about each occurrence of a term in a document.
  *
  * It is the inner glue of the inverted index.
  *

Modified: lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedTermPositions.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedTermPositions.java?rev=811070&r1=811069&r2=811070&view=diff
==============================================================================
--- lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedTermPositions.java (original)
+++ lucene/java/trunk/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedTermPositions.java Thu Sep  3 18:31:41 2009
@@ -62,7 +62,7 @@
   public int nextPosition() {
     currentTermPositionIndex++;
     // if you get an array out of index exception here,
-    // it might be due to currentDocumentInformation.getIndexFromTerm not beeing set!!
+    // it might be due to currentDocumentInformation.getIndexFromTerm not being set!!
     return currentDocumentInformation.getTermPositions()[currentTermPositionIndex];
   }
 



Mime
View raw message