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 @@ -214,7 +214,7 @@ private char Insert(char p, char[] key, int start, char val)
m_lo[pp]++;
if (m_kv[m_lo[pp]] == 0)
{
// key completly decompressed leaving garbage in key array
// key completely decompressed leaving garbage in key array
m_lo[pp] = (char)0;
m_sc[pp] = (char)0;
m_hi[pp] = (char)0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ private void ReadAffixFile(Stream affixStream, Encoding decoder)
patterns.Add(null);

// zero strip -> 0 ord
// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
IDictionary<string, int> seenStrips = new JCG.OrderedDictionary<string, int>
{
[""] = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void Reload()
UninterruptableMonitor.Enter(this);
try
{
// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
IDictionary<string, Type> services = new JCG.OrderedDictionary<string, Type>(this.services);
SPIClassIterator<S> loader = SPIClassIterator<S>.Get();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ private bool ConditionM0(string value, int index)

/// <summary>
/// Determines whether or not a value is of slavo-germanic origin. A value is
/// of slavo-germanic origin if it contians any of 'W', 'K', 'CZ', or 'WITZ'.
/// of slavo-germanic origin if it contains any of 'W', 'K', 'CZ', or 'WITZ'.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static bool IsSlavoGermanic(string value) // LUCENENET: CA1822: Mark members as static
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public override int DoLogic()
protected virtual Report ReportSumByNameRound(IList<TaskStats> taskStats)
{
// aggregate by task name and round
// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
JCG.OrderedDictionary<string, TaskStats> p2 = new JCG.OrderedDictionary<string, TaskStats>();
int reported = 0;
foreach (TaskStats stat1 in taskStats)
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Benchmark/ByTask/Tasks/RepSumByNameTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected virtual Report ReportSumByName(IList<TaskStats> taskStats)
{
// aggregate by task name
int reported = 0;
// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
JCG.OrderedDictionary<string, TaskStats> p2 = new JCG.OrderedDictionary<string, TaskStats>();
foreach (TaskStats stat1 in taskStats)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected virtual Report ReportSumByPrefixRound(IList<TaskStats> taskStats)
{
// aggregate by task name and by round
int reported = 0;
// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
JCG.OrderedDictionary<string, TaskStats> p2 = new JCG.OrderedDictionary<string, TaskStats>();
foreach (TaskStats stat1 in taskStats)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Benchmark/ByTask/Tasks/RepSumByPrefTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected virtual Report ReportSumByPrefix(IList<TaskStats> taskStats)
{
// aggregate by task name
int reported = 0;
// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
JCG.OrderedDictionary<string, TaskStats> p2 = new JCG.OrderedDictionary<string, TaskStats>();
foreach (TaskStats stat1 in taskStats)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Benchmark/ByTask/Tasks/ReportTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ protected virtual string TaskReportLine(string longestOp, TaskStats stat)
return sb.ToString();
}

// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
protected virtual Report GenPartialReport(int reported, JCG.OrderedDictionary<string, TaskStats> partOfTasks, int totalSize)
{
string longetOp = LongestOp(partOfTasks.Values);
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Expressions/JS/JavascriptCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private static MethodInfo GetMethod(Type type, string method, Type[] parms)

private readonly string sourceText;

// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
private readonly IDictionary<string, int> externalsMap = new JCG.OrderedDictionary<string, int>();

private TypeBuilder dynamicType;
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Facet/DrillDownQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static Term Term(string field, string dim, params string[] path)

private readonly FacetsConfig config;
private readonly BooleanQuery query;
// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
private readonly IDictionary<string, int> drillDownDims = new JCG.OrderedDictionary<string, int>();

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Facet/DrillSidewaysScorer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public override bool Score(ICollector collector, int maxDoc)

// TODO: if we ever allow null baseScorer ... it will
// mean we DO score docs out of order ... hmm, or if we
// change up the order of the conjuntions below
// change up the order of the conjunctions below
if (Debugging.AssertsEnabled) Debugging.Assert(baseScorer != null);

// some scorers, eg ReqExlScorer, can hit NPE if cost is called after nextDoc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public FunctionDistinctValuesCollector(IDictionary /*Map<?, ?>*/ vsContext, Valu
this.vsContext = vsContext;
this.groupSource = groupSource;
this.countSource = countSource;
// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
groupMap = new JCG.OrderedDictionary<MutableValue, GroupCount>();
foreach (SearchGroup<MutableValue> group in groups)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Misc/Index/Sorter/SortingAtomicReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ internal class SortingDocsAndPositionsEnum : FilterDocsAndPositionsEnum
{
/// <summary>
/// A <see cref="TimSorter"/> which sorts two parallel arrays of doc IDs and
/// offsets in one go. Everytime a doc ID is 'swapped', its correponding offset
/// offsets in one go. Everytime a doc ID is 'swapped', its corresponding offset
/// is swapped too.
/// </summary>
internal sealed class DocOffsetSorter : TimSorter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public StandardQueryConfigHandler()
Set(ConfigurationKeys.PHRASE_SLOP, 0); //default value 2.4
Set(ConfigurationKeys.LOWERCASE_EXPANDED_TERMS, true); //default value 2.4
Set(ConfigurationKeys.ENABLE_POSITION_INCREMENTS, false); //default value 2.4
// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
Set(ConfigurationKeys.FIELD_BOOST_MAP, new JCG.OrderedDictionary<string, float>());
Set(ConfigurationKeys.FUZZY_CONFIG, new FuzzyConfig());
Set(ConfigurationKeys.LOCALE, null);
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Spatial/Serialized/SerializedDVStrategy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace Lucene.Net.Spatial.Serialized

/// <summary>
/// A <see cref="SpatialStrategy"/> based on serializing a Shape stored into BinaryDocValues.
/// This is not at all fast; it's designed to be used in conjuction with another index based
/// This is not at all fast; it's designed to be used in conjunction with another index based
/// SpatialStrategy that is approximated(like <see cref="Prefix.RecursivePrefixTreeStrategy"/>)
/// to add precision or eventually make more specific / advanced calculations on the per-document
/// geometry.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ internal sealed class LuceneNetSpecificAttribute : CategoryAttribute
public LuceneNetSpecificAttribute()
: base("LUCENENET")
{
// nothing to do here but invoke the base contsructor.
// nothing to do here but invoke the base constructor.
}
}
}
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 @@ -2178,7 +2178,7 @@ public static bool DefaultCodecSupportsSortedSet

/// <summary>
/// Returns true if the codec "supports" docsWithField
/// (other codecs return MatchAllBits, because you couldnt write missing values before)
/// (other codecs return MatchAllBits, because you couldn't write missing values before)
/// </summary>
public static bool DefaultCodecSupportsDocsWithField
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ private IndexContext CreateIndexContext()
if (!searchTermToGroupCounts.TryGetValue(content, out var groupToCounts))
{
// Groups sort always DOCID asc...
// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
searchTermToGroupCounts.Add(content, groupToCounts = new JCG.OrderedDictionary<string, ISet<string>>());
contentStrings.Add(content);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ public virtual void TestComplex06()
[Test]
public virtual void TestWeightedTerm()
{
// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
IDictionary<string, float> weights = new JCG.OrderedDictionary<string, float>();
weights["field0"] = 5f;
weights["field1"] = 10f;
Expand All @@ -563,7 +563,7 @@ public virtual void TestWeightedTerm()
[Test]
public virtual void TestWeightedOR()
{
// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
IDictionary<string, float> weights = new JCG.OrderedDictionary<string, float>();
weights["field0"] = 5f;
weights["field1"] = 10f;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ private void doTest(SpatialOperation operation)
bool biasContains = (operation == SpatialOperation.Contains);

//Main index loop:
// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
IDictionary<String, IShape> indexedShapes = new JCG.OrderedDictionary<String, IShape>();
// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
IDictionary<String, IShape> indexedShapesGS = new JCG.OrderedDictionary<String, IShape>(); //grid snapped
int numIndexedShapes = randomIntBetween(1, 6);
#pragma warning disable 219
Expand Down
8 changes: 4 additions & 4 deletions src/Lucene.Net/Index/BufferedUpdates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ load factor (say 2 * POINTER). Entry is object w/
// one that came in wins), and helps us detect faster if the same Term is
// used to update the same field multiple times (so we later traverse it
// only once).
// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
internal readonly SCG.IDictionary<string, OrderedDictionary<Term, NumericDocValuesUpdate>> numericUpdates = new Dictionary<string, OrderedDictionary<Term, NumericDocValuesUpdate>>();

// Map<dvField,Map<updateTerm,BinaryUpdate>>
Expand All @@ -140,7 +140,7 @@ load factor (say 2 * POINTER). Entry is object w/
// one that came in wins), and helps us detect faster if the same Term is
// used to update the same field multiple times (so we later traverse it
// only once).
// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
internal readonly SCG.IDictionary<string, OrderedDictionary<Term, BinaryDocValuesUpdate>> binaryUpdates = new Dictionary<string, OrderedDictionary<Term, BinaryDocValuesUpdate>>();

/// <summary>
Expand Down Expand Up @@ -249,7 +249,7 @@ internal virtual void AddNumericUpdate(NumericDocValuesUpdate update, int docIDU
{
if (!numericUpdates.TryGetValue(update.field, out OrderedDictionary<Term, NumericDocValuesUpdate> fieldUpdates))
{
// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
fieldUpdates = new OrderedDictionary<Term, NumericDocValuesUpdate>();
numericUpdates[update.field] = fieldUpdates;
bytesUsed.AddAndGet(BYTES_PER_NUMERIC_FIELD_ENTRY);
Expand Down Expand Up @@ -283,7 +283,7 @@ internal virtual void AddBinaryUpdate(BinaryDocValuesUpdate update, int docIDUpt
{
if (!binaryUpdates.TryGetValue(update.field, out OrderedDictionary<Term, BinaryDocValuesUpdate> fieldUpdates))
{
// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
fieldUpdates = new OrderedDictionary<Term, BinaryDocValuesUpdate>();
binaryUpdates[update.field] = fieldUpdates;
bytesUsed.AddAndGet(BYTES_PER_BINARY_FIELD_ENTRY);
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Search/SloppyPhraseScorer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ private static int TpPos(PhrasePositions pp) // LUCENENET: CA1822: Mark members
/// Find repeating terms and assign them ordinal values </summary>
private JCG.OrderedDictionary<Term, int> RepeatingTerms()
{
// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
JCG.OrderedDictionary<Term, int> tord = new JCG.OrderedDictionary<Term, int>();
Dictionary<Term, int> tcnt = new Dictionary<Term, int>();
for (PhrasePositions pp = min, prev = null; prev != max; pp = (prev = pp).next) // iterate cyclic list: done once handled max
Expand Down
6 changes: 3 additions & 3 deletions src/Lucene.Net/Util/AttributeSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ public AttributeSource(AttributeSource input)
/// </summary>
public AttributeSource(AttributeFactory factory)
{
// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
this.attributes = new JCG.OrderedDictionary<Type, Util.Attribute>();
// LUCENENET specific: OrderedDictioary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
// LUCENENET specific: OrderedDictionary<TKey, TValue> is a replacement for LinkedHashMap<K, V> in the JDK
this.attributeImpls = new JCG.OrderedDictionary<Type, Util.Attribute>();
this.currentState = new State[1];
this.factory = factory;
Expand Down Expand Up @@ -429,7 +429,7 @@ public T AddAttribute<T>()

/// <summary>
/// The caller must pass in an interface type that extends <see cref="IAttribute"/>.
/// Returns <c>true</c>, if this <see cref="AttributeSource"/> contains the corrsponding <see cref="Attribute"/>.
/// Returns <c>true</c>, if this <see cref="AttributeSource"/> contains the corresponding <see cref="Attribute"/>.
/// </summary>
public bool HasAttribute<T>() where T : IAttribute
{
Expand Down