Skip to content

Commit ff956ee

Browse files
authored
misc: fix typos (apache#1329)
1 parent bfa05f8 commit ff956ee

19 files changed

Lines changed: 29 additions & 38 deletions

File tree

.github/linters/codespell.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
abl
22
acccount
3-
accessability
43
accidently
54
aci
65
addin
@@ -46,7 +45,6 @@ becaus
4645
bellow
4746
bloc
4847
blockin
49-
boostrap
5048
brunch
5149
bu
5250
bufferin
@@ -77,7 +75,6 @@ connexion
7775
contians
7876
continously
7977
contro
80-
contsructor
8178
convertable
8279
conveyer
8380
coo
@@ -89,7 +86,6 @@ countr
8986
covert
9087
cunt
9188
curren
92-
customizeable
9389
dalmation
9490
decalaration
9591
degrates
@@ -98,14 +94,12 @@ deines
9894
dependant
9995
despatch
10096
despatches
101-
detecing
10297
didnt
10398
diposing
10499
discreet
105100
discus
106101
displaing
107102
doen
108-
doens't
109103
doesnt
110104
dum
111105
ect
@@ -312,7 +306,6 @@ seperator
312306
ser
313307
serialzation
314308
shold
315-
shouldnt
316309
sideral
317310
sie
318311
sightly
@@ -332,7 +325,6 @@ straightaway
332325
stye
333326
supress
334327
synchonise
335-
syncronize
336328
te
337329
teh
338330
testof
@@ -361,7 +353,6 @@ ue
361353
unser
362354
unter
363355
useable
364-
utilty
365356
vai
366357
valies
367358
vart

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ public override int GetOrdinal(FacetLabel cp)
368368
// we only store the fact that a category exists, not its inexistence.
369369
// This is required because the caches are shared with new DTR instances
370370
// that are allocated from doOpenIfChanged. Therefore, if we only store
371-
// information about found categories, we cannot accidently tell a new
371+
// information about found categories, we cannot accidentally tell a new
372372
// generation of DTR that a category does not exist.
373373

374374
ordinalCacheLock.EnterWriteLock();

src/Lucene.Net.TestFramework/Codecs/Lucene41Ords/Lucene41WithOrds.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public override FieldsConsumer FieldsConsumer(SegmentWriteState state)
6161
try
6262
{
6363
// Must use BlockTermsWriter (not BlockTree) because
64-
// BlockTree doens't support ords (yet)...
64+
// BlockTree doesn't support ords (yet)...
6565
FieldsConsumer ret = new BlockTermsWriter(indexWriter, state, docs);
6666
success = true;
6767
return ret;

src/Lucene.Net.TestFramework/Store/BaseDirectoryTestCase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,15 +1206,15 @@ public virtual void TestFsyncDoesntCreateNewFiles()
12061206

12071207
// using (IndexInput input = dir.OpenInput("bytes", NewIOContext(Random)))
12081208
// {
1209-
// // seek to a random spot shouldnt impact slicing.
1209+
// // seek to a random spot shouldn't impact slicing.
12101210
// input.Seek(TestUtil.NextInt64(Random, 0, input.Length));
12111211
// for (int i = 0; i < num; i += 16)
12121212
// {
12131213
// IndexInput slice1 = input.Slice("slice1", i, num - i);
12141214
// assertEquals(0, slice1.Position); // LUCENENET specific: Renamed from getFilePointer() to match FileStream
12151215
// assertEquals(num - i, slice1.Length);
12161216

1217-
// // seek to a random spot shouldnt impact slicing.
1217+
// // seek to a random spot shouldn't impact slicing.
12181218
// slice1.Seek(TestUtil.NextInt64(Random, 0, slice1.Length));
12191219
// for (int j = 0; j < slice1.Length; j += 16)
12201220
// {

src/Lucene.Net.TestFramework/Util/TestUtil.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ public static void ReduceOpenFiles(IndexWriter w)
635635
IMergeScheduler ms = w.Config.MergeScheduler;
636636
if (ms is IConcurrentMergeScheduler concurrentMergeScheduler)
637637
{
638-
// wtf... shouldnt it be even lower since its 1 by default?!?!
638+
// wtf... shouldn't it be even lower since its 1 by default?!?!
639639
concurrentMergeScheduler.SetMaxMergesAndThreads(3, 2);
640640
}
641641
}

src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestFactories.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private void DoTestTokenizer(string tokenizer)
7676
assertFalse(mtc is CharFilterFactory);
7777
}
7878

79-
// beast it just a little, it shouldnt throw exceptions:
79+
// beast it just a little, it shouldn't throw exceptions:
8080
// (it should have thrown them in initialize)
8181
CheckRandomData(Random, new FactoryAnalyzer(factory, null, null), 100, 20, false, false);
8282
}
@@ -99,7 +99,7 @@ private void DoTestTokenFilter(string tokenfilter)
9999
assertTrue(mtc is TokenFilterFactory);
100100
}
101101

102-
// beast it just a little, it shouldnt throw exceptions:
102+
// beast it just a little, it shouldn't throw exceptions:
103103
// (it should have thrown them in initialize)
104104
CheckRandomData(Random, new FactoryAnalyzer(assertingTokenizer, factory, null), 100, 20, false, false);
105105
}
@@ -122,7 +122,7 @@ private void DoTestCharFilter(string charfilter)
122122
assertTrue(mtc is CharFilterFactory);
123123
}
124124

125-
// beast it just a little, it shouldnt throw exceptions:
125+
// beast it just a little, it shouldn't throw exceptions:
126126
// (it should have thrown them in initialize)
127127
CheckRandomData(Random, new FactoryAnalyzer(assertingTokenizer, null, factory), 100, 20, false, false);
128128
}

src/Lucene.Net.Tests.Analysis.Stempel/Egothor.Stemmer/TestStemmer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public void TestMultiTrie2()
135135
string[] keys = { "a", "ba", "bb", "c" };
136136
/*
137137
* short vals won't work, see line 155 for example
138-
* the IOOBE is caught (wierd), but shouldnt affect patch cmds?
138+
* the IOOBE is caught (wierd), but shouldn't affect patch cmds?
139139
*/
140140
string[] vals = { "1111", "2222", "2223", "4444" };
141141

@@ -155,7 +155,7 @@ public void TestMultiTrie2Backwards()
155155
string[] keys = { "a", "ba", "bb", "c" };
156156
/*
157157
* short vals won't work, see line 155 for example
158-
* the IOOBE is caught (wierd), but shouldnt affect patch cmds?
158+
* the IOOBE is caught (wierd), but shouldn't affect patch cmds?
159159
*/
160160
string[] vals = { "1111", "2222", "2223", "4444" };
161161

src/Lucene.Net.Tests/Index/TestIndexWriterConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public virtual void TestInvalidValues()
329329
}
330330

331331
// Test Similarity:
332-
// we shouldnt assert what the default is, just that its not null.
332+
// we shouldn't assert what the default is, just that its not null.
333333
Assert.IsTrue(IndexSearcher.DefaultSimilarity == conf.Similarity);
334334
conf.SetSimilarity(new MySimilarity());
335335
Assert.AreEqual(typeof(MySimilarity), conf.Similarity.GetType());

src/Lucene.Net.Tests/Index/TestTermsEnum.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ private void TestRandomSeeks(IndexReader r, params string[] validTermStrings)
760760
TermState termState;
761761
if (Random.Next(6) == 4)
762762
{
763-
// pick term that doens't exist:
763+
// pick term that doesn't exist:
764764
t = GetNonExistTerm(validTerms);
765765
termState = null;
766766
if (Verbose)

src/Lucene.Net.Tests/Search/TestTermRangeQuery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ private void InitializeIndex(string[] values, Analyzer analyzer)
281281
writer.Dispose();
282282
}
283283

284-
// shouldnt create an analyzer for every doc?
284+
// shouldn't create an analyzer for every doc?
285285
private void AddDoc(string content)
286286
{
287287
IndexWriter writer = new IndexWriter(dir, NewIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random, MockTokenizer.WHITESPACE, false)).SetOpenMode(OpenMode.APPEND));

0 commit comments

Comments
 (0)