Skip to content

Commit 0c15e6d

Browse files
authored
misc: fix typos (apache#1325)
1 parent 34812b5 commit 0c15e6d

21 files changed

Lines changed: 27 additions & 45 deletions

File tree

.github/linters/codespell.txt

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,12 @@ entend
120120
equest
121121
euclidian
122122
everytime
123-
explicity
124123
faild
125124
failue
126125
fallow
127126
finis
128127
floatation
129128
fo
130-
folling
131-
followng
132129
formated
133130
formen
134131
formes
@@ -179,7 +176,6 @@ innaccuracy
179176
instace
180177
instaed
181178
intance
182-
intead
183179
interger
184180
interruted
185181
isnt
@@ -289,8 +285,6 @@ raison
289285
ream
290286
reasearch
291287
recipies
292-
recursivelly
293-
redundent
294288
refering
295289
refrenced
296290
relativly
@@ -308,42 +302,34 @@ rougly
308302
rute
309303
sate
310304
sav
311-
scenerios
312305
scrip
313306
seach
314307
selv
315-
sensititive
316308
sentances
317309
seperate
318310
seperated
319311
seperator
320312
ser
321313
serialzation
322-
sesssion
323314
shold
324315
shouldnt
325316
sideral
326317
sie
327318
sightly
328319
similiarty
329320
simle
330-
simplifed
331321
singe
332322
singl
333323
siz
334324
sizin
335325
slippy
336326
som
337327
somme
338-
specifiy
339328
splitted
340329
statics
341330
sting
342331
straightaway
343332
stye
344-
subseqence
345-
sucess
346-
suppresed
347333
supress
348334
synchonise
349335
syncronize
@@ -370,11 +356,8 @@ tread
370356
trough
371357
trye
372358
trys
373-
tthe
374359
udo
375-
udpate
376360
ue
377-
unexpexted
378361
unser
379362
unter
380363
useable
@@ -387,7 +370,6 @@ vell
387370
vender
388371
vie
389372
vise
390-
vists
391373
vor
392374
wast
393375
wee

src/Lucene.Net.Analysis.Phonetic/Language/Bm/Rule.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -825,15 +825,15 @@ public virtual bool PatternAndContextMatches(ICharSequence input, int i)
825825

826826
// evaluate the pattern, left context and right context
827827
// fail early if any of the evaluations is not successful
828-
if (!input.Subsequence(i, ipl - i).Equals(this.pattern)) // LUCENENET: Corrected 2nd Subseqence parameter
828+
if (!input.Subsequence(i, ipl - i).Equals(this.pattern)) // LUCENENET: Corrected 2nd Subsequence parameter
829829
{
830830
return false;
831831
}
832-
else if (!this.rContext.IsMatch(input.Subsequence(ipl, input.Length - ipl))) // LUCENENET: Corrected 2nd Subseqence parameter
832+
else if (!this.rContext.IsMatch(input.Subsequence(ipl, input.Length - ipl))) // LUCENENET: Corrected 2nd Subsequence parameter
833833
{
834834
return false;
835835
}
836-
return this.lContext.IsMatch(input.Subsequence(0, i - 0)); // LUCENENET: Corrected 2nd Subseqence parameter
836+
return this.lContext.IsMatch(input.Subsequence(0, i - 0)); // LUCENENET: Corrected 2nd Subsequence parameter
837837
}
838838

839839
/// <summary>

src/Lucene.Net.Benchmark/ByTask/Utils/Algorithm.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public Algorithm(PerfRunData runData)
126126
}
127127
case StreamTokenizer.TokenType_EndOfStream:
128128
{
129-
throw RuntimeException.Create("Unexpexted EOF: - " + stok.ToString());
129+
throw RuntimeException.Create("Unexpected EOF: - " + stok.ToString());
130130
}
131131
case '"':
132132
case '\'':
@@ -184,7 +184,7 @@ public Algorithm(PerfRunData runData)
184184
{
185185

186186
case ':':
187-
if (!colonOk) throw new Exception("colon unexpexted: - " + stok.ToString());
187+
if (!colonOk) throw new Exception("colon unexpected: - " + stok.ToString());
188188
//colonOk = false; // LUCENENET: IDE0059: Remove unnecessary value assignment - this is assigned again below without being read
189189
// get repetitions number
190190
stok.NextToken();

src/Lucene.Net.Memory/MemoryIndex.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ public void SetNextReader(AtomicReaderContext context)
644644

645645
/// <summary>
646646
/// Returns a reasonable approximation of the main memory [bytes] consumed by
647-
/// this instance. Useful for smart memory sensititive caches/pools. </summary>
647+
/// this instance. Useful for smart memory sensitive caches/pools. </summary>
648648
/// <returns> the main memory consumption </returns>
649649
public virtual long GetMemorySize()
650650
{

src/Lucene.Net.Misc/Document/LazyDocument.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ internal virtual Document GetDocument()
121121
}
122122
}
123123

124-
// :TODO: synchronize to prevent redundent copying? (sync per field name?)
124+
// :TODO: synchronize to prevent redundant copying? (sync per field name?)
125125
private void FetchRealValues(string name, int fieldNum)
126126
{
127127
Document d = GetDocument();

src/Lucene.Net.QueryParser/Flexible/Standard/Parser/ParseException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont
132132
/// <summary>
133133
/// This is the last token that has been consumed successfully. If
134134
/// this object has been created due to a parse error, the token
135-
/// followng this token will (therefore) be the first error token.
135+
/// following this token will (therefore) be the first error token.
136136
/// </summary>
137137
public Token? CurrentToken { get; private set; }
138138

src/Lucene.Net.Replicator/package.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public class AspNetCoreReplicationResponse : IReplicationResponse
132132
}
133133

134134
// Return a stream where the ReplicatorService can write to for the response.
135-
// Depending on the action either the file or the sesssion token will be written to this stream.
135+
// Depending on the action either the file or the session token will be written to this stream.
136136
public Stream Body => response.Body;
137137

138138
// Called when the ReplicatorService is done writing data to the response.

src/Lucene.Net.Suggest/Suggest/Jaspell/JaspellTernarySearchTrie.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ public virtual IList<string> MatchAlmost(string key, int numReturnValues)
803803
}
804804

805805
/// <summary>
806-
/// Recursivelly vists the nodes in order to find the ones that almost match a
806+
/// Recursively visits the nodes in order to find the ones that almost match a
807807
/// given key.
808808
/// </summary>
809809
/// <param name="currentNode">
@@ -942,7 +942,7 @@ public virtual void Put(string key, object value)
942942
}
943943

944944
/// <summary>
945-
/// Recursivelly visists each node to calculate the number of nodes.
945+
/// Recursively visits each node to calculate the number of nodes.
946946
/// </summary>
947947
/// <param name="currentNode">
948948
/// The current node. </param>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ public class BaseDirectoryWrapper : FilterDirectory
3636
private const int True = 1;
3737
private const int False = 0;
3838

39-
// LUCENENET specific - using Interlocked intead of a volatile field for IsOpen.
39+
// LUCENENET specific - using Interlocked instead of a volatile field for IsOpen.
4040
private int isOpen = True; // LUCENENET: Changed from bool to int so we can use Interlocked.
4141

4242
/// <summary>
4343
/// Atomically sets the value to the given updated value
4444
/// if the current value <c>==</c> the expected value.
4545
/// <para/>
4646
/// Expert: Use this in the <see cref="Directory.Dispose(bool)"/> call to skip
47-
/// duplicate calls by using the folling if block to guard the
47+
/// duplicate calls by using the following if block to guard the
4848
/// dispose logic.
4949
/// <code>
5050
/// protected override void Dispose(bool disposing)

src/Lucene.Net.TestFramework/Support/Util/LuceneTestCase.Serialization.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public abstract partial class LuceneTestCase
2727
#pragma warning disable SYSLIB0011 // Type or member is obsolete (BinaryFormatter)
2828
/// <summary>
2929
/// Serializes <paramref name="source"/> using <see cref="BinaryFormatter"/>
30-
/// and returns a <see cref="MemoryStream"/> with the result of the serialzation.
30+
/// and returns a <see cref="MemoryStream"/> with the result of the serialization.
3131
/// This method is not meant to scale, it is only for quick serialization verification
3232
/// in tests.
3333
/// </summary>

0 commit comments

Comments
 (0)