lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [44/49] lucenenet git commit: Removed commented code block from TestFramework.Util.Fst.FSTTester.
Date Sun, 02 Oct 2016 10:17:15 GMT
Removed commented code block from TestFramework.Util.Fst.FSTTester.


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/b9ba9385
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/b9ba9385
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/b9ba9385

Branch: refs/heads/master
Commit: b9ba93855822ad6cfb5cdf427a4ba1a8008dde7a
Parents: a10dc0e
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sat Sep 17 18:14:56 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sat Sep 17 18:14:56 2016 +0700

----------------------------------------------------------------------
 .../Util/fst/FSTTester.cs                       | 67 --------------------
 1 file changed, 67 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/b9ba9385/src/Lucene.Net.TestFramework/Util/fst/FSTTester.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Util/fst/FSTTester.cs b/src/Lucene.Net.TestFramework/Util/fst/FSTTester.cs
index ccd2379..9bcccb9 100644
--- a/src/Lucene.Net.TestFramework/Util/fst/FSTTester.cs
+++ b/src/Lucene.Net.TestFramework/Util/fst/FSTTester.cs
@@ -945,73 +945,6 @@ namespace Lucene.Net.Util.Fst
                 }
             }
 
-
-            //// prune 'em
-            //IEnumerator<KeyValuePair<IntsRef, CountMinOutput<T>>> it
= prefixes.GetEnumerator();
-            //while (it.MoveNext())
-            //{
-            //    KeyValuePair<IntsRef, CountMinOutput<T>> ent = it.Current;
-            //    IntsRef prefix = ent.Key;
-            //    CountMinOutput<T> cmo = ent.Value;
-            //    if (LuceneTestCase.VERBOSE)
-            //    {
-            //        Console.WriteLine("  term prefix=" + InputToString(inputMode, prefix,
false) + " count=" + cmo.Count + " isLeaf=" + cmo.IsLeaf + " output=" + Outputs.OutputToString(cmo.Output)
+ " isFinal=" + cmo.IsFinal);
-            //    }
-            //    bool keep;
-            //    if (prune1 > 0)
-            //    {
-            //        keep = cmo.Count >= prune1;
-            //    }
-            //    else
-            //    {
-            //        Debug.Assert(prune2 > 0);
-            //        if (prune2 > 1 && cmo.Count >= prune2)
-            //        {
-            //            keep = true;
-            //        }
-            //        else if (prefix.Length > 0)
-            //        {
-            //            // consult our parent
-            //            scratch.Length = prefix.Length - 1;
-            //            Array.Copy(prefix.Ints, prefix.Offset, scratch.Ints, 0, scratch.Length);
-            //            CountMinOutput<T> cmo2 = prefixes.ContainsKey(scratch) ?
prefixes[scratch] : null;
-            //            //System.out.println("    parent count = " + (cmo2 == null ? -1
: cmo2.count));
-            //            keep = cmo2 != null && ((prune2 > 1 && cmo2.Count
>= prune2) || (prune2 == 1 && (cmo2.Count >= 2 || prefix.Length <= 1)));
-            //        }
-            //        else if (cmo.Count >= prune2)
-            //        {
-            //            keep = true;
-            //        }
-            //        else
-            //        {
-            //            keep = false;
-            //        }
-            //    }
-
-            //    if (!keep)
-            //    {
-            //        it.Reset();
-            //        //System.out.println("    remove");
-            //    }
-            //    else
-            //    {
-            //        // clear isLeaf for all ancestors
-            //        //System.out.println("    keep");
-            //        scratch.CopyInts(prefix);
-            //        scratch.Length--;
-            //        while (scratch.Length >= 0)
-            //        {
-            //            CountMinOutput<T> cmo2 = prefixes.ContainsKey(scratch) ?
prefixes[scratch] : null;
-            //            if (cmo2 != null)
-            //            {
-            //                //System.out.println("    clear isLeaf " + inputToString(inputMode,
scratch));
-            //                cmo2.IsLeaf = false;
-            //            }
-            //            scratch.Length--;
-            //        }
-            //    }
-            //}
-
             if (LuceneTestCase.VERBOSE)
             {
                 Console.WriteLine("TEST: after prune");


Mime
View raw message