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
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ internal IList<CharsRef> ApplyAffix(char[] strippedWord, int length, int affix,
if (Dictionary.HasFlag(wordFlags, flag))
{
// confusing: in this one exception, we already chained the first prefix against the second,
// so it doesnt need to be checked against the word
// so it doesn't need to be checked against the word
bool chainedPrefix = dictionary.complexPrefixes && recursionDepth == 1 && prefix;
if (chainedPrefix == false && prefixFlag >= 0 && !Dictionary.HasFlag(wordFlags, (char)prefixFlag))
{
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Codecs/Memory/DirectDocValuesConsumer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ private void AddBinaryFieldValues(FieldInfo field, IEnumerable<BytesRef> values)
}

// TODO: in some cases representing missing with minValue-1 wouldn't take up additional space and so on,
// but this is very simple, and algorithms only check this for values of 0 anyway (doesnt slow down normal decode)
// but this is very simple, and algorithms only check this for values of 0 anyway (doesn't slow down normal decode)
internal virtual void WriteMissingBitset<T1>(IEnumerable<T1> values)
{
long bits = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Codecs/Memory/MemoryDocValuesConsumer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ private void WriteFST(FieldInfo field, IEnumerable<BytesRef> values)
}

// TODO: in some cases representing missing with minValue-1 wouldn't take up additional space and so on,
// but this is very simple, and algorithms only check this for values of 0 anyway (doesnt slow down normal decode)
// but this is very simple, and algorithms only check this for values of 0 anyway (doesn't slow down normal decode)

internal virtual void WriteMissingBitset<T1>(IEnumerable<T1> values)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public override void AddBinaryField(FieldInfo field, IEnumerable<BytesRef> value
BytesRef b = value;
if (b is null)
{
b = new BytesRef(); // 4.0 doesnt distinguish
b = new BytesRef(); // 4.0 doesn't distinguish
}
if (b.Length > Lucene40DocValuesFormat.MAX_BINARY_FIELD_LENGTH)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ public virtual void TestRandomSortedBytes()

if (!DefaultCodecSupportsDocsWithField)
{
// if the codec doesnt support missing, we expect missing to be mapped to byte[]
// if the codec doesn't support missing, we expect missing to be mapped to byte[]
// by the impersonator, but we have to give it a chance to merge them to this
cfg.SetMergePolicy(NewLogMergePolicy());
}
Expand Down Expand Up @@ -1213,7 +1213,7 @@ public virtual void TestRandomSortedBytes()
}
if (!DefaultCodecSupportsDocsWithField)
{
// if the codec doesnt support missing, we expect missing to be mapped to byte[]
// if the codec doesn't support missing, we expect missing to be mapped to byte[]
// by the impersonator, but we have to give it a chance to merge them to this
w.ForceMerge(1);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2370,7 +2370,7 @@ public bool Get(int index)

/// <summary>
/// Checks the terms enum sequentially.
/// If <paramref name="deep"/> is false, it does a 'shallow' test that doesnt go down to the docsenums.
/// If <paramref name="deep"/> is false, it does a 'shallow' test that doesn't go down to the docsenums.
/// </summary>
public virtual void AssertTermsEnumEquals(string info, IndexReader leftReader, TermsEnum leftTermsEnum, TermsEnum rightTermsEnum, bool deep)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static TestRandomChains()
typeof(CommonGramsFilter),
// TODO: doesn't handle graph inputs
typeof(CommonGramsQueryFilter),
// TODO: probably doesnt handle graph inputs, too afraid to try
// TODO: probably doesn't handle graph inputs, too afraid to try
typeof(WordDelimiterFilter) })
{
foreach (ConstructorInfo ctor in c.GetConstructors())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public virtual void TestFeminineNouns()
public virtual void TestNeuterNouns()
{
// ending with -ο
// note: nom doesnt conflate
// note: nom doesn't conflate
CheckOneTerm(a, "βιβλίο", "βιβλι");
CheckOneTerm(a, "βιβλίου", "βιβλ");
CheckOneTerm(a, "βιβλία", "βιβλ");
Expand All @@ -203,7 +203,7 @@ public virtual void TestNeuterNouns()
CheckOneTerm(a, "πουλιών", "πουλ");

// ending with -α
// note: nom. doesnt conflate
// note: nom. doesn't conflate
CheckOneTerm(a, "πρόβλημα", "προβλημ");
CheckOneTerm(a, "προβλήματος", "προβλημα");
CheckOneTerm(a, "προβλήματα", "προβλημα");
Expand All @@ -229,7 +229,7 @@ public virtual void TestNeuterNouns()
CheckOneTerm(a, "βραδιών", "βραδ");

// ending with -υ/-ατος
// note: nom. doesnt conflate
// note: nom. doesn't conflate
CheckOneTerm(a, "δόρυ", "δορ");
CheckOneTerm(a, "δόρατος", "δορατ");
CheckOneTerm(a, "δόρατα", "δορατ");
Expand All @@ -248,14 +248,14 @@ public virtual void TestNeuterNouns()
CheckOneTerm(a, "λυκοφώτων", "λυκοφω");

// ending with -ον/-ου
// note: nom. doesnt conflate
// note: nom. doesn't conflate
CheckOneTerm(a, "μέσον", "μεσον");
CheckOneTerm(a, "μέσου", "μεσ");
CheckOneTerm(a, "μέσα", "μεσ");
CheckOneTerm(a, "μέσων", "μεσ");

// ending in -ον/-οντος
// note: nom. doesnt conflate
// note: nom. doesn't conflate
CheckOneTerm(a, "ενδιαφέρον", "ενδιαφερον");
CheckOneTerm(a, "ενδιαφέροντος", "ενδιαφεροντ");
CheckOneTerm(a, "ενδιαφέροντα", "ενδιαφεροντ");
Expand Down Expand Up @@ -433,7 +433,7 @@ public virtual void TestVerbs()
CheckOneTerm(a, "καλώντας", "καλ");

CheckOneTerm(a, "καλούμαι", "καλ");
// pass. imperfect /imp. progressive doesnt conflate
// pass. imperfect /imp. progressive doesn't conflate
CheckOneTerm(a, "καλούμουν", "καλουμ");
CheckOneTerm(a, "καλείσαι", "καλεισα");

Expand Down Expand Up @@ -485,10 +485,10 @@ public virtual void TestVerbs()

CheckOneTerm(a, "κρατούμαι", "κρατ");
CheckOneTerm(a, "κρατιέμαι", "κρατ");
// this imperfect form doesnt conflate
// this imperfect form doesn't conflate
CheckOneTerm(a, "κρατούμουν", "κρατουμ");
CheckOneTerm(a, "κρατιόμουν", "κρατ");
// this imp. prog form doesnt conflate
// this imp. prog form doesn't conflate
CheckOneTerm(a, "κρατείσαι", "κρατεισα");

CheckOneTerm(a, "κρατήθηκα", "κρατ");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace Lucene.Net.Analysis.Hunspell
* limitations under the License.
*/

// Tests that > 64k affixes actually works and doesnt overflow some internal int
// Tests that > 64k affixes actually works and doesn't overflow some internal int
public class Test64kAffixes : LuceneTestCase
{
[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class TestRussianAnalyzer : BaseTokenStreamTestCase
{

/// <summary>
/// Check that RussianAnalyzer doesnt discard any numbers </summary>
/// Check that RussianAnalyzer doesn't discard any numbers </summary>
[Test]
public virtual void TestDigitsInRussianCharset()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ private string RandomNonEmptyString()

/// <summary>
/// simple random test, doesn't verify correctness.
/// does verify it doesnt throw exceptions, or that the stream doesn't misbehave
/// does verify it doesn't throw exceptions, or that the stream doesn't misbehave
/// </summary>
[Test]
public virtual void TestRandom2()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace Lucene.Net.Analysis.Util
/// </para>
/// </summary>
// TODO: this has to be here, since the abstract factories are not in lucene-core,
// so test-framework doesnt know about them...
// so test-framework doesn't know about them...
// this also means we currently cannot use this in other analysis modules :(
// TODO: maybe after we improve the abstract factory/SPI apis, they can sit in core and resolve this.
public abstract class BaseTokenStreamFactoryTestCase : BaseTokenStreamTestCase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public void DoTestMode(Normalizer2 normalizer, int maxLength, int iterations, in
String normalized = normalizer.Normalize(input);
if (normalized.Length == 0)
{
continue; // MockTokenizer doesnt tokenize empty string...
continue; // MockTokenizer doesn't tokenize empty string...
}
CheckOneTerm(a, input, normalized);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests.Facet/SlowRAMDirectory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public override void ReadBytes(Span<byte> destination)
}


// TODO: is it intentional that clone doesnt wrap?
// TODO: is it intentional that clone doesn't wrap?
public override object Clone()
{
return ii.Clone();
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private static Document Doc(int id, PositionsTokenStream positions)
positions.SetId(id);
if (DoesntSupportOffsets.Contains(TestUtil.GetPostingsFormat(DOC_POSITIONS_FIELD)))
{
// codec doesnt support offsets: just index positions for the field
// codec doesn't support offsets: just index positions for the field
doc.Add(new Field(DOC_POSITIONS_FIELD, positions, TextField.TYPE_NOT_STORED));
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public static void AssertTermsStatistics(Terms leftTerms, Terms rightTerms)

/// <summary>
/// checks the terms enum sequentially
/// if deep is false, it does a 'shallow' test that doesnt go down to the docsenums
/// if deep is false, it does a 'shallow' test that doesn't go down to the docsenums
/// </summary>
/// <remarks>
/// LUCENENET specific - made static
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/Index/TestBagOfPositions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace Lucene.Net.Index
/// </summary>
// TODO: somehow factor this with BagOfPostings? its almost the same
[SuppressCodecs("Direct", "Memory", "Lucene3x")] // at night this makes like 200k/300k docs and will make Direct's heart beat!
// Lucene3x doesnt have totalTermFreq, so the test isn't interesting there.
// Lucene3x doesn't have totalTermFreq, so the test isn't interesting there.
[TestFixture]
public class TestBagOfPositions : LuceneTestCase
{
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/Index/TestIndexableField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public bool StoreTermVectorPayloads
if (Codec.Default is Lucene3xCodec)
#pragma warning restore 612, 618
{
return false; // 3.x doesnt support
return false; // 3.x doesn't support
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/Index/TestLongPostings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public virtual void TestLongPostings_Mem()
dir.Dispose();
}

// a weaker form of testLongPostings, that doesnt check positions
// a weaker form of testLongPostings, that doesn't check positions
[Test]
public virtual void TestLongPostingsNoPositions()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Tests/Index/TestOmitNorms.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public virtual void TestOmitNormsCombos()
customType3.IsStored = true;
customType3.OmitNorms = true;
Field noNormsNoIndex = new Field("foo", "a", customType3);
// not indexed nor stored (doesnt exist at all, we index a different field instead)
// not indexed nor stored (doesn't exist at all, we index a different field instead)
Field emptyNorms = new Field("bar", "a", customType);

Assert.IsNotNull(GetNorms("foo", norms, norms));
Expand Down
4 changes: 2 additions & 2 deletions src/Lucene.Net.Tests/Index/TestPostingsOffsets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public virtual void DoTestNumbers(bool withPayloads)
Assert.IsNotNull(dp.GetPayload());
BytesRef payload = dp.GetPayload();
Assert.IsTrue(payload.Utf8ToString().StartsWith("pos:", StringComparison.Ordinal));
} // note: withPayloads=false doesnt necessarily mean we dont have them from MockAnalyzer!
} // note: withPayloads=false doesn't necessarily mean we dont have them from MockAnalyzer!
}
}
}
Expand Down Expand Up @@ -226,7 +226,7 @@ public virtual void DoTestNumbers(bool withPayloads)
Assert.IsNotNull(dp.GetPayload());
BytesRef payload = dp.GetPayload();
Assert.IsTrue(payload.Utf8ToString().StartsWith("pos:", StringComparison.Ordinal));
} // note: withPayloads=false doesnt necessarily mean we dont have them from MockAnalyzer!
} // note: withPayloads=false doesn't necessarily mean we dont have them from MockAnalyzer!
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/Lucene.Net.Tests/Search/Similarities/TestSimilarity2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public override void SetUp()
}

/// <summary>
/// because of stupid things like querynorm, its possible we computeStats on a field that doesnt exist at all
/// because of stupid things like querynorm, its possible we computeStats on a field that doesn't exist at all
/// test this against a totally empty index, to make sure sims handle it
/// </summary>
[Test]
Expand Down Expand Up @@ -126,7 +126,7 @@ public virtual void TestEmptyField()
}

/// <summary>
/// similar to the above, however the field exists, but we query with a term that doesnt exist too </summary>
/// similar to the above, however the field exists, but we query with a term that doesn't exist too </summary>
[Test]
public virtual void TestEmptyTerm()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Codecs/Lucene40/Lucene40DocValuesFormat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ namespace Lucene.Net.Codecs.Lucene40
[Obsolete("Only for reading old 4.0 and 4.1 segments")]
[DocValuesFormatName("Lucene40")] // LUCENENET specific - using DocValuesFormatName attribute to ensure the default name passed from subclasses is the same as this class name
public class Lucene40DocValuesFormat : DocValuesFormat
// NOTE: not registered in SPI, doesnt respect segment suffix, etc
// NOTE: not registered in SPI, doesn't respect segment suffix, etc
// for back compat only!
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ internal virtual void AddNumericField(FieldInfo field, IEnumerable<long?> values
}

// TODO: in some cases representing missing with minValue-1 wouldn't take up additional space and so on,
// but this is very simple, and algorithms only check this for values of 0 anyway (doesnt slow down normal decode)
// but this is very simple, and algorithms only check this for values of 0 anyway (doesn't slow down normal decode)
internal virtual void WriteMissingBitset(IEnumerable values)
{
sbyte bits = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Search/FieldCacheRangeFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ public static FieldCacheRangeFilter<string> NewStringRange(string field, string
/// fields containing zero or one term in the field. The range can be half-open by setting one
/// of the values to <c>null</c>.
/// </summary>
// TODO: bogus that newStringRange doesnt share this code... generics hell
// TODO: bogus that newStringRange doesn't share this code... generics hell
public static FieldCacheRangeFilter<BytesRef> NewBytesRefRange(string field, BytesRef lowerVal, BytesRef upperVal, bool includeLower, bool includeUpper)
{
return new BytesRefFieldCacheRangeFilterAnonymousClass(field, lowerVal, upperVal, includeLower, includeUpper);
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Search/PhraseQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ public override Scorer GetScorer(AtomicReaderContext context, IBits acceptDocs)
{
Term t = outerInstance.terms[i];
TermState state = states[i].Get(context.Ord);
if (state is null) // term doesnt exist in this segment
if (state is null) // term doesn't exist in this segment
{
if (Debugging.AssertsEnabled) Debugging.Assert(TermNotInReader(reader, t), "no termstate found but term exists in reader");
return null;
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Search/Similarities/SimilarityBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ protected internal virtual void FillBasicStats(BasicStats stats, CollectionStati
if (sumTotalTermFreq <= 0)
{
// field does not exist;
// We have to provide something if codec doesnt supply these measures,
// We have to provide something if codec doesn't supply these measures,
// or if someone omitted frequencies for the field... negative values cause
// NaN/Inf for some scorers.
numberOfFieldTokens = docFreq;
Expand Down
Loading