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
13 changes: 0 additions & 13 deletions .github/linters/codespell.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,13 @@ andd
ane
anothers
appropropriate
apprpriate
aquire
arent
arguents
assemblie
ative
atleast
atmost
autor
avarage
avove
bale
becaus
Expand Down Expand Up @@ -72,7 +69,6 @@ comparision
compatability
compatibity
compatiblity
completly
concret
confguration
conjuction
Expand All @@ -95,12 +91,10 @@ cunt
curren
customizeable
dalmation
dcoumentation
decalaration
degrates
deine
deines
delimter
dependant
despatch
despatches
Expand Down Expand Up @@ -141,12 +135,10 @@ formes
fount
fpr
fro
fuctionality
fulfilment
gage
gaurd
gaus
genereic
ges
gird
glamourous
Expand Down Expand Up @@ -183,22 +175,19 @@ infact
informations
ingenuous
inital
initilize
innaccuracy
instace
instaed
intance
intead
interger
interruted
intialized
isnt
isse
isses
ist
ists
iterms
itsself
kake
ket
lama
Expand All @@ -218,7 +207,6 @@ maxosx
maxumum
ment
meny
metods
meu
meus
millenium
Expand All @@ -236,7 +224,6 @@ nce
nd
ned
nessesary
niether
nin
noe
noen
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Benchmark/ByTask/Tasks/TaskSequence.cs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ private int DoSerialTasksWithRate()
{
break;
}
nextStartTime += delayStep; // this aims at avarage rate.
nextStartTime += delayStep; // this aims at average rate.
try
{
int inc = task.RunAndMaybeStats(letChildReport);
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Benchmark/Quality/Trec/QueryDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static void Main(string[] args)
qrun.MaxResults = maxResults;
QualityStats[] stats = qrun.Execute(judge, submitLog, logger);

// print an avarage sum of the results
// print an average sum of the results
QualityStats avg = QualityStats.Average(stats);
avg.Log("SUMMARY", 2, logger, " ");
}
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Benchmark/Quality/package.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Here is a sample code used to run the TREC 2006 queries 701-850 on the .Gov2 col
SubmissionReport submitLog = null;
QualityStats stats[] = qrun.execute(maxResults, judge, submitLog, logger);

// print an avarage sum of the results
// print an average sum of the results
QualityStats avg = QualityStats.average(stats);
avg.log("SUMMARY",2,logger, " ");

Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Facet/Taxonomy/CategoryPath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public virtual int FullPathLength
{
charsNeeded += Components[i].Length;
}
charsNeeded += Length - 1; // num delimter chars
charsNeeded += Length - 1; // num delimiter chars
return charsNeeded;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public Int32Class(int value)
private readonly ReaderWriterLockSlim ordinalCacheLock = new ReaderWriterLockSlim(LockRecursionPolicy.NoRecursion);
private readonly ReaderWriterLockSlim categoryCacheLock = new ReaderWriterLockSlim(LockRecursionPolicy.NoRecursion);

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

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ internal class TaxonomyIndexArrays : ParallelTaxonomyArrays
{
private readonly int[] parents;

// the following two arrays are lazily intialized. note that we only keep a
// the following two arrays are lazily initialized. note that we only keep a
// single boolean member as volatile, instead of declaring the arrays
// volatile. the code guarantees that only after the boolean is set to true,
// the arrays are returned.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ private void VerifyEnum(ThreadState threadState,

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

if (Verbose)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ internal class LuceneRandomSeedInitializer

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

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

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.
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.
if (StringHelper.goodFastHashSeed != goodFastHashSeed)
StringHelper.goodFastHashSeed = goodFastHashSeed;

Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Codecs/Lucene3x/TermInfosReaderIndex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public TermInfosReaderIndex(SegmentTermEnum indexEnum, int indexDivisor, long ti
this.totalIndexInterval = totalIndexInterval;
indexSize = 1 + ((int)indexEnum.size - 1) / indexDivisor;
skipInterval = indexEnum.skipInterval;
// this is only an inital size, it will be GCed once the build is complete
// this is only an initial size, it will be GCed once the build is complete
long initialSize = (long)(tiiFileLength * 1.5) / indexDivisor;
PagedBytes dataPagedBytes = new PagedBytes(EstimatePageBits(initialSize));
PagedBytesDataOutput dataOutput = dataPagedBytes.GetDataOutput();
Expand Down
4 changes: 2 additions & 2 deletions src/Lucene.Net/Index/DocValuesFieldUpdates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ protected DocValuesFieldUpdates(string field, DocValuesFieldUpdatesType type)
/// <summary>
/// Add an update to a document from a <see cref="DocValuesFieldUpdatesIterator"/>.
/// The <see cref="DocValuesFieldUpdatesIterator"/>'s value should be <c>null</c> to unset a value.
/// Note that the value is exposed by casting to the apprpriate <see cref="DocValuesFieldUpdatesIterator"/> subclasss.
/// Note that the value is exposed by casting to the appropriate <see cref="DocValuesFieldUpdatesIterator"/> subclasss.
/// </summary>
public abstract void AddFromIterator(int doc, DocValuesFieldUpdatesIterator iterator);

/// <summary>
/// Add an update to a document from a <see cref="DocValuesUpdate"/>.
/// The <see cref="DocValuesUpdate"/>'s value should be <c>null</c> to unset a value.
/// Note that the value is exposed by casting to the apprpriate <see cref="DocValuesUpdate"/> subclasss.
/// Note that the value is exposed by casting to the appropriate <see cref="DocValuesUpdate"/> subclasss.
/// </summary>
public abstract void AddFromUpdate(int doc, DocValuesUpdate update);

Expand Down
4 changes: 2 additions & 2 deletions src/Lucene.Net/Search/NumericRangeQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,8 @@ protected override sealed AcceptStatus Accept(BytesRef term)
}

/// <summary>
/// LUCENENET specific class to provide access to static factory metods of <see cref="NumericRangeQuery{T}"/>
/// without referring to its genereic closing type.
/// LUCENENET specific class to provide access to static factory methods of <see cref="NumericRangeQuery{T}"/>
/// without referring to its generic closing type.
/// </summary>
public static class NumericRangeQuery
{
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Support/Util/NamedServiceFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace Lucene.Net.Util
*/

/// <summary>
/// LUCENENET specific abstract class containing common fuctionality for named service factories.
/// LUCENENET specific abstract class containing common functionality for named service factories.
/// </summary>
/// <typeparam name="TService">The type of service this factory applies to.</typeparam>
public abstract class NamedServiceFactory<TService>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ internal static Test MakeTestFromMethod(Type type, string methodName)

internal static void InitializeTestFixture(Test fixture)
{
var random = new J2N.Randomizer(); // LUCENENET TOOD: Initilize this to make it repeatable?
var random = new J2N.Randomizer(); // LUCENENET TODO: Initialize this to make it repeatable?
long initialSeed = random.NextInt64();
long testSeed = random.NextInt64();
var randomizedContext = new RandomizedContext(fixture, fixture.TypeInfo.Assembly, initialSeed, testSeed);
Expand Down
Loading