Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .github/linters/codespell.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ alow
alpha-numeric
alredy
als
alternativley
ambiguos
ameba
americ
Expand Down Expand Up @@ -331,7 +330,6 @@ previoulsy
probablistic
profissional
profund
programatically
programer
pronounciation
properies
Expand All @@ -356,11 +354,6 @@ releae
repot
reproducability
reproducable
requries
resoruces
respnsibility
returend
returing
re-use
re-used
re-uses
Expand Down Expand Up @@ -405,7 +398,6 @@ sting
straightaway
stye
subseqence
succesfully
sucess
suppresed
supress
Expand Down Expand Up @@ -438,10 +430,7 @@ tthe
udo
udpate
ue
ugprade
unexpexted
unknwown
unkown
unser
unter
useable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30505,7 +30505,7 @@ private static int ZzUnpackTrans(string packed, int offset, int[] result)

/// <summary>error messages for the codes above</summary>
private static readonly string[] ZZ_ERROR_MSG = {
"Unkown internal scanner error",
"Unknown internal scanner error",
"Error: could not match input",
"Error: pushback value was too large"
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Porter stemmer in .NET. The original paper is in
See also http://www.tartarus.org/~martin/PorterStemmer/index.html

Bug 1 (reported by Gonzalo Parra 16/10/99) fixed as marked below.
Tthe words 'aed', 'eed', 'oed' leave k at 'a' for step 3, and b[k-1]
The words 'aed', 'eed', 'oed' leave k at 'a' for step 3, and b[k-1]
is then out outside the bounds of b.

Similarly,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ private static int ZzUnpackTrans(string packed, int offset, int[] result)

/* error messages for the codes above */
private static readonly string[] ZZ_ERROR_MSG = {
"Unkown internal scanner error",
"Unknown internal scanner error",
"Error: could not match input",
"Error: pushback value was too large"
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ private static int ZzUnpackTrans(string packed, int offset, int[] result)

/* error messages for the codes above */
private static readonly string[] ZZ_ERROR_MSG = {
"Unkown internal scanner error",
"Unknown internal scanner error",
"Error: could not match input",
"Error: pushback value was too large"
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ private static int ZzUnpackTrans(string packed, int offset, int[] result)

/* error messages for the codes above */
private static readonly string[] ZZ_ERROR_MSG = {
"Unkown internal scanner error",
"Unknown internal scanner error",
"Error: could not match input",
"Error: pushback value was too large"
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3157,7 +3157,7 @@ private static int ZzUnpackTrans(string packed, int offset, int[] result)

/// <summary>error messages for the codes above</summary>
private static readonly string[] ZZ_ERROR_MSG = {
"Unkown internal scanner error",
"Unknown internal scanner error",
"Error: could not match input",
"Error: pushback value was too large"
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ private static int ZzUnpackTrans(string packed, int offset, int[] result)

/* error messages for the codes above */
private static readonly string[] ZZ_ERROR_MSG = {
"Unkown internal scanner error",
"Unknown internal scanner error",
"Error: could not match input",
"Error: pushback value was too large"
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3258,7 +3258,7 @@ private static int ZzUnpackTrans(string packed, int offset, int[] result)

/* error messages for the codes above */
private static readonly string[] ZZ_ERROR_MSG = {
"Unkown internal scanner error",
"Unknown internal scanner error",
"Error: could not match input",
"Error: pushback value was too large"
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3691,7 +3691,7 @@ private static int ZzUnpackTrans(string packed, int offset, int[] result)

/* error messages for the codes above */
private static readonly string[] ZZ_ERROR_MSG = {
"Unkown internal scanner error",
"Unknown internal scanner error",
"Error: could not match input",
"Error: pushback value was too large"
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ private static int ZzUnpackTrans(string packed, int offset, int[] result)

/* error messages for the codes above */
private static readonly string[] ZZ_ERROR_MSG = {
"Unkown internal scanner error",
"Unknown internal scanner error",
"Error: could not match input",
"Error: pushback value was too large"
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3903,7 +3903,7 @@ private static int ZzUnpackTrans(string packed, int offset, int[] result)

/* error messages for the codes above */
private static readonly string[] ZZ_ERROR_MSG = {
"Unkown internal scanner error",
"Unknown internal scanner error",
"Error: could not match input",
"Error: pushback value was too large"
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8997,7 +8997,7 @@ private static int ZzUnpackTrans(string packed, int offset, int[] result)

/* error messages for the codes above */
private static readonly string[] ZZ_ERROR_MSG = {
"Unkown internal scanner error",
"Unknown internal scanner error",
"Error: could not match input",
"Error: pushback value was too large"
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ private static int ZzUnpackTrans(string packed, int offset, int[] result)

/* error messages for the codes above */
private static readonly string[] ZZ_ERROR_MSG = {
"Unkown internal scanner error",
"Unknown internal scanner error",
"Error: could not match input",
"Error: pushback value was too large"
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ internal static int Compare(int docID1, int docID2, FieldComparer[] comparers, i
{
for (int i = 0; i < comparers.Length; i++)
{
// TODO: would be better if copy() didnt cause a term lookup in TermOrdVal & co,
// TODO: would be better if copy() didn't cause a term lookup in TermOrdVal & co,
// the segments are always the same here...
comparers[i].Copy(0, docID1);
comparers[i].SetBottom(0);
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Misc/Index/Sorter/Sorter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public override int Compare(int docID1, int docID2)
{
for (int i = 0; i < comparers.Length; i++)
{
// TODO: would be better if copy() didnt cause a term lookup in TermOrdVal & co,
// TODO: would be better if copy() didn't cause a term lookup in TermOrdVal & co,
// the segments are always the same here...
comparers[i].Copy(0, docID1);
comparers[i].SetBottom(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
/// <code>
/// queryParserHelper.Analyzer = new WhitespaceAnalyzer();
/// queryParserHelper.AllowLeadingWildcard = true;
/// // Or alternativley use the query config handler returned by StandardQueryParser which is a
/// // Or alternatively use the query config handler returned by StandardQueryParser which is a
/// // StandardQueryConfigHandler:
/// queryParserHelper.QueryConfigHandler.Set(ConfigurationKeys.ALLOW_LEADING_WILDCARD, true);
/// </code>
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Replicator/Revision.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public interface IRevision : IComparable<IRevision>

/// <summary>
/// Returns a <see cref="Stream"/> for the given <paramref name="fileName"/> and <paramref name="source"/>. It is the
/// caller's respnsibility to dispose the <see cref="Stream"/> when it has been
/// caller's responsibility to dispose the <see cref="Stream"/> when it has been
/// consumed.
/// </summary>
/// <exception cref="IOException"></exception>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public SlowOpeningMockIndexInputWrapper(MockDirectoryWrapper dir, string name, I
try
{
base.Dispose();
} // we didnt open successfully
} // we didn't open successfully
catch (Exception ignore) when (ignore.IsThrowable())
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ protected override void AddDocument(Term id, IEnumerable<IIndexableField> doc)
protected override void UpdateDocument(Term id, IEnumerable<IIndexableField> doc)
{
long gen = genWriter.UpdateDocument(id, doc);
// Randomly verify the udpate "took":
// Randomly verify the update "took":
if (Random.Next(20) == 2)
{
if (Verbose)
Expand Down Expand Up @@ -730,9 +730,9 @@ public override void Run()

/// <summary>
/// This test was purposely written in a way that demonstrates how to use the
/// ControlledRealTimeReopenThread. It contains seperate Asserts for each of
/// ControlledRealTimeReopenThread. It contains separate Asserts for each of
/// several use cases rather then trying to brake these use cases up into
/// seperate unit tests. This combined approach makes the behavior of
/// separate unit tests. This combined approach makes the behavior of
/// ControlledRealTimeReopenThread easier to understand.
/// </summary>
// LUCENENET specific - An extra test to demonstrate use of ControlledRealTimeReopen.
Expand All @@ -759,7 +759,7 @@ public void TestStraightForwardDemonstration()
//Reopen SearcherManager after .2 secs if another thread IS waiting on a newer generation.
var controlledRealTimeReopenThread = new ControlledRealTimeReopenThread<IndexSearcher>(trackingWriter, searcherManager, 1, 0.2);

//Start() will start a seperate thread that will invoke the object's Run(). However,
//Start() will start a separate thread that will invoke the object's Run(). However,
//calling Run() directly would execute that code on the current thread rather then a new thread
//which would defeat the purpose of using controlledRealTimeReopenThread. This aspect of the API
//is not as intuitive as it could be. ie. Call Start() not Run().
Expand Down Expand Up @@ -965,7 +965,7 @@ Thread CreateWorker(int threadNum, ControlledRealTimeReopenThread<IndexSearcher>
double minRefreshSecs = .2;
var controlledRealTimeReopenThread = new ControlledRealTimeReopenThread<IndexSearcher>(trackingWriter, searcherManager, maxRefreshSecs, minRefreshSecs);

//Start() will start a seperate thread that will invoke the object's Run(). However,
//Start() will start a separate thread that will invoke the object's Run(). However,
//calling Run() directly would execute that code on the current thread rather then a new thread
//which would defeat the purpose of using controlledRealTimeReopenThread. This aspect of the API
//is not as intuitive as it could be. ie. Call Start() not Run().
Expand Down Expand Up @@ -995,7 +995,7 @@ Thread CreateWorker(int threadNum, ControlledRealTimeReopenThread<IndexSearcher>
}

//Now make sure that no thread waited longer then our min refresh time
//plus a small fudge factor. Also verify that all threads resported back and
//plus a small fudge factor. Also verify that all threads reported back and
//each saw 2 records.

//Verify all threads reported back a result.
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/Search/TestFieldCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ public virtual void Test()
// getDocTermOrds
SortedSetDocValues termOrds = cache.GetDocTermOrds(reader, "theRandomUnicodeMultiValuedField");
int numEntries = cache.GetCacheEntries().Length;
// ask for it again, and check that we didnt create any additional entries:
// ask for it again, and check that we didn't create any additional entries:
termOrds = cache.GetDocTermOrds(reader, "theRandomUnicodeMultiValuedField");
Assert.AreEqual(numEntries, cache.GetCacheEntries().Length);

Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Document/FieldType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private void CheckIfFrozen()
/// changes.
/// </summary>
/// <returns><c>this</c></returns>
// LUCENENET specific - returing self to make it possible to chain this to newing up the class so we can set and freeze on a single line.
// LUCENENET specific - returning self to make it possible to chain this to newing up the class so we can set and freeze on a single line.
// This is especially important for static field initializers.
public virtual FieldType Freeze()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Index/IndexWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@ public void Dispose(bool waitForMerges)
/// then return. </param>
/// <param name="disposing"><c>true</c> to release both managed and unmanaged resources;
/// <c>false</c> to release only unmanaged resources. </param>
// LUCENENET specific - Added this overload to allow subclasses to dispose resoruces
// LUCENENET specific - Added this overload to allow subclasses to dispose resources
// in one place without also having to override Dispose(bool).
[MethodImpl(MethodImplOptions.NoInlining)] // Stack trace needed intact in TestConcurrentMergeScheduler and TestIndexWriterWithThreads
protected virtual void Dispose(bool disposing, bool waitForMerges)
Expand Down
6 changes: 3 additions & 3 deletions src/Lucene.Net/Index/SegmentInfos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ private void Write(Directory directory)
if (Debugging.AssertsEnabled) Debugging.Assert(si.Dir == directory);

// If this segment is pre-4.x, perform a one-time
// "ugprade" to write the .si file for it:
// "upgrade" to write the .si file for it:
string version = si.Version;
if (version is null || StringHelper.VersionComparer.Compare(version, "4.0") < 0)
{
Expand Down Expand Up @@ -880,7 +880,7 @@ public object Clone()
public long Generation => generation;

/// <summary>
/// Returns last succesfully read or written generation. </summary>
/// Returns last successfully read or written generation. </summary>
public long LastGeneration => lastGeneration;

/// <summary>
Expand Down Expand Up @@ -1509,7 +1509,7 @@ internal void ApplyMergeChanges(MergePolicy.OneMerge merge, bool dropSegment)
segments.RemoveRange(newSegIdx, segments.Count - newSegIdx); // LUCENENET: Converted end index to length

// Either we found place to insert segment, or, we did
// not, but only because all segments we merged becamee
// not, but only because all segments we merged became
// deleted while we are merging, in which case it should
// be the case that the new segment is also all deleted,
// we insert it at the beginning if it should not be dropped:
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Search/SearcherLifetimeManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace Lucene.Net.Search
/// searcher:
///
/// <code>
/// // Record the current searcher, and save the returend
/// // Record the current searcher, and save the returned
/// // token into user's search results (eg as a hidden
/// // HTML form field):
/// long token = mgr.Record(searcher);
Expand Down
4 changes: 2 additions & 2 deletions src/Lucene.Net/Store/NativeFSLockFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace Lucene.Net.Store
/// could be left when the runtime exits abnormally.</para>
///
/// <para>The primary benefit of <see cref="NativeFSLockFactory"/> is
/// that locks (not the lock file itsself) will be properly
/// that locks (not the lock file itself) will be properly
/// removed (by the OS) if the runtime has an abnormal exit.</para>
///
/// <para>Note that, unlike <see cref="SimpleFSLockFactory"/>, the existence of
Expand Down Expand Up @@ -176,7 +176,7 @@ public NativeFSLockFactory(DirectoryInfo lockDir)
SetLockDir(lockDir);
}

// LUCENENET: NativeFSLocks in Java are infact singletons; this is how we mimick that to track instances and make sure
// LUCENENET: NativeFSLocks in Java are in fact singletons; this is how we mimic that to track instances and make sure
// IW.Unlock and IW.IsLocked works correctly
internal static readonly Dictionary<string, Lock> _locks = new Dictionary<string, Lock>();

Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Util/Packed/PackedInts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ public static Reader GetDirectReaderNoHeader(IndexInput @in, Format format, int
}
else
{
throw AssertionError.Create("Unknwown format: " + format);
throw AssertionError.Create("Unknown format: " + format);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/dotnet/tools/lucene-cli/Resources/Strings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading