Skip to content

Commit 3b5115a

Browse files
committed
Fix typos
General spelling clean up
1 parent 90fbe04 commit 3b5115a

14 files changed

Lines changed: 16 additions & 29 deletions

File tree

.github/linters/codespell.txt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,13 @@ andd
3333
ane
3434
anothers
3535
appropropriate
36-
apprpriate
3736
aquire
3837
arent
39-
arguents
4038
assemblie
4139
ative
4240
atleast
4341
atmost
4442
autor
45-
avarage
4643
avove
4744
bale
4845
becaus
@@ -72,7 +69,6 @@ comparision
7269
compatability
7370
compatibity
7471
compatiblity
75-
completly
7672
concret
7773
confguration
7874
conjuction
@@ -95,12 +91,10 @@ cunt
9591
curren
9692
customizeable
9793
dalmation
98-
dcoumentation
9994
decalaration
10095
degrates
10196
deine
10297
deines
103-
delimter
10498
dependant
10599
despatch
106100
despatches
@@ -141,12 +135,10 @@ formes
141135
fount
142136
fpr
143137
fro
144-
fuctionality
145138
fulfilment
146139
gage
147140
gaurd
148141
gaus
149-
genereic
150142
ges
151143
gird
152144
glamourous
@@ -183,22 +175,19 @@ infact
183175
informations
184176
ingenuous
185177
inital
186-
initilize
187178
innaccuracy
188179
instace
189180
instaed
190181
intance
191182
intead
192183
interger
193184
interruted
194-
intialized
195185
isnt
196186
isse
197187
isses
198188
ist
199189
ists
200190
iterms
201-
itsself
202191
kake
203192
ket
204193
lama
@@ -218,7 +207,6 @@ maxosx
218207
maxumum
219208
ment
220209
meny
221-
metods
222210
meu
223211
meus
224212
millenium
@@ -236,7 +224,6 @@ nce
236224
nd
237225
ned
238226
nessesary
239-
niether
240227
nin
241228
noe
242229
noen

src/Lucene.Net.Benchmark/ByTask/Tasks/TaskSequence.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ private int DoSerialTasksWithRate()
310310
{
311311
break;
312312
}
313-
nextStartTime += delayStep; // this aims at avarage rate.
313+
nextStartTime += delayStep; // this aims at average rate.
314314
try
315315
{
316316
int inc = task.RunAndMaybeStats(letChildReport);

src/Lucene.Net.Benchmark/Quality/Trec/QueryDriver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public static void Main(string[] args)
108108
qrun.MaxResults = maxResults;
109109
QualityStats[] stats = qrun.Execute(judge, submitLog, logger);
110110

111-
// print an avarage sum of the results
111+
// print an average sum of the results
112112
QualityStats avg = QualityStats.Average(stats);
113113
avg.Log("SUMMARY", 2, logger, " ");
114114
}

src/Lucene.Net.Benchmark/Quality/package.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Here is a sample code used to run the TREC 2006 queries 701-850 on the .Gov2 col
6767
SubmissionReport submitLog = null;
6868
QualityStats stats[] = qrun.execute(maxResults, judge, submitLog, logger);
6969

70-
// print an avarage sum of the results
70+
// print an average sum of the results
7171
QualityStats avg = QualityStats.average(stats);
7272
avg.log("SUMMARY",2,logger, " ");
7373

src/Lucene.Net.Facet/Taxonomy/CategoryPath.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public virtual int FullPathLength
133133
{
134134
charsNeeded += Components[i].Length;
135135
}
136-
charsNeeded += Length - 1; // num delimter chars
136+
charsNeeded += Length - 1; // num delimiter chars
137137
return charsNeeded;
138138
}
139139
}

src/Lucene.Net.Facet/Taxonomy/Directory/DirectoryTaxonomyReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public Int32Class(int value)
7777
private readonly ReaderWriterLockSlim ordinalCacheLock = new ReaderWriterLockSlim(LockRecursionPolicy.NoRecursion);
7878
private readonly ReaderWriterLockSlim categoryCacheLock = new ReaderWriterLockSlim(LockRecursionPolicy.NoRecursion);
7979

80-
private /*volatile*/ TaxonomyIndexArrays taxoArrays; // LUCENENET specific: LazyInitalizer negates the need for volatile
80+
private /*volatile*/ TaxonomyIndexArrays taxoArrays; // LUCENENET specific: LazyInitializer negates the need for volatile
8181
private bool isDisposed = false;
8282

8383
/// <summary>

src/Lucene.Net.Facet/Taxonomy/Directory/TaxonomyIndexArrays.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ internal class TaxonomyIndexArrays : ParallelTaxonomyArrays
4343
{
4444
private readonly int[] parents;
4545

46-
// the following two arrays are lazily intialized. note that we only keep a
46+
// the following two arrays are lazily initialized. note that we only keep a
4747
// single boolean member as volatile, instead of declaring the arrays
4848
// volatile. the code guarantees that only after the boolean is set to true,
4949
// the arrays are returned.

src/Lucene.Net.TestFramework/Index/BasePostingsFormatTestCase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ private void VerifyEnum(ThreadState threadState,
799799

800800
Assert.IsNotNull(docsEnum, "null DocsEnum");
801801
int initialDocID = docsEnum.DocID;
802-
Assert.AreEqual(-1, initialDocID, "inital docID should be -1" + docsEnum);
802+
Assert.AreEqual(-1, initialDocID, "initial docID should be -1" + docsEnum);
803803

804804
if (Verbose)
805805
{

src/Lucene.Net.TestFramework/Support/Util/LuceneRandomSeedInitializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ internal class LuceneRandomSeedInitializer
3939

4040
/// <summary>
4141
/// Tries to get the random seed from either a <see cref="RandomSeedAttribute"/> or the "tests:seed" system property.
42-
/// If niether of these exist, a random seed will be generated and this method returns <c>false</c>;
42+
/// If neither of these exist, a random seed will be generated and this method returns <c>false</c>;
4343
/// </summary>
4444
/// <param name="test">The test fixture.</param>
4545
/// <param name="seed">The random seed for a new <see cref="Random"/> instance.
@@ -113,7 +113,7 @@ public RandomizedContext InitializeTestFixture(Test fixture, Assembly testAssemb
113113

114114
random = new J2N.Randomizer(initialSeed + seedOffset);
115115

116-
int goodFastHashSeed = (int)initialSeed * 31; // LUCENENET: Multiplying 31 to remove the possility of a collision with the test framework while still using a deterministic number.
116+
int goodFastHashSeed = (int)initialSeed * 31; // LUCENENET: Multiplying 31 to remove the possibility of a collision with the test framework while still using a deterministic number.
117117
if (StringHelper.goodFastHashSeed != goodFastHashSeed)
118118
StringHelper.goodFastHashSeed = goodFastHashSeed;
119119

src/Lucene.Net/Codecs/Lucene3x/TermInfosReaderIndex.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public TermInfosReaderIndex(SegmentTermEnum indexEnum, int indexDivisor, long ti
7070
this.totalIndexInterval = totalIndexInterval;
7171
indexSize = 1 + ((int)indexEnum.size - 1) / indexDivisor;
7272
skipInterval = indexEnum.skipInterval;
73-
// this is only an inital size, it will be GCed once the build is complete
73+
// this is only an initial size, it will be GCed once the build is complete
7474
long initialSize = (long)(tiiFileLength * 1.5) / indexDivisor;
7575
PagedBytes dataPagedBytes = new PagedBytes(EstimatePageBits(initialSize));
7676
PagedBytesDataOutput dataOutput = dataPagedBytes.GetDataOutput();

0 commit comments

Comments
 (0)