lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [05/49] lucenenet git commit: .NETify FST: Public member names should be PascalCase.
Date Sun, 02 Oct 2016 10:16:36 GMT
.NETify FST: Public member names should be PascalCase.


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

Branch: refs/heads/master
Commit: 297f92653a0e8e64c25b171444ca18f0387f190a
Parents: 9a56220
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Tue Sep 6 14:18:19 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Sep 8 06:40:46 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Codecs/Memory/FSTOrdTermsReader.cs  | 2 +-
 src/Lucene.Net.Codecs/Memory/FSTTermsReader.cs     | 2 +-
 src/Lucene.Net.Core/Util/Fst/Util.cs               | 6 +++---
 src/Lucene.Net.TestFramework/Util/fst/FSTTester.cs | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/297f9265/src/Lucene.Net.Codecs/Memory/FSTOrdTermsReader.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Codecs/Memory/FSTOrdTermsReader.cs b/src/Lucene.Net.Codecs/Memory/FSTOrdTermsReader.cs
index d2942e2..5e082dc 100644
--- a/src/Lucene.Net.Codecs/Memory/FSTOrdTermsReader.cs
+++ b/src/Lucene.Net.Codecs/Memory/FSTOrdTermsReader.cs
@@ -848,7 +848,7 @@ namespace Lucene.Net.Codecs.Memory
                 private Frame LoadCeilFrame(int label, Frame top, Frame frame)
                 {
                     var arc = frame.arc;
-                    arc = Util.readCeilArc(label, fst, top.arc, arc, fstReader);
+                    arc = Util.ReadCeilArc(label, fst, top.arc, arc, fstReader);
                     if (arc == null)
                     {
                         return null;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/297f9265/src/Lucene.Net.Codecs/Memory/FSTTermsReader.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Codecs/Memory/FSTTermsReader.cs b/src/Lucene.Net.Codecs/Memory/FSTTermsReader.cs
index 2d17c5a..011eed6 100644
--- a/src/Lucene.Net.Codecs/Memory/FSTTermsReader.cs
+++ b/src/Lucene.Net.Codecs/Memory/FSTTermsReader.cs
@@ -762,7 +762,7 @@ namespace Lucene.Net.Codecs.Memory
                 internal Frame LoadCeilFrame(int label, Frame top, Frame frame)
                 {
                     FST.Arc<FSTTermOutputs.TermData> arc = frame.fstArc;
-                    arc = Util.readCeilArc(label, fst, top.fstArc, arc, fstReader);
+                    arc = Util.ReadCeilArc(label, fst, top.fstArc, arc, fstReader);
                     if (arc == null)
                     {
                         return null;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/297f9265/src/Lucene.Net.Core/Util/Fst/Util.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Util/Fst/Util.cs b/src/Lucene.Net.Core/Util/Fst/Util.cs
index 87514d9..00d2507 100644
--- a/src/Lucene.Net.Core/Util/Fst/Util.cs
+++ b/src/Lucene.Net.Core/Util/Fst/Util.cs
@@ -678,7 +678,7 @@ namespace Lucene.Net.Util.Fst
         /// Starting from node, find the top N min cost
         ///  completions to a final node.
         /// </summary>
-        public static TopResults<T> shortestPaths<T>(FST<T> fst, FST<T>.Arc<T>
fromNode, T startOutput, IComparer<T> comparator, int topN, bool allowEmptyString)
+        public static TopResults<T> ShortestPaths<T>(FST<T> fst, FST<T>.Arc<T>
fromNode, T startOutput, IComparer<T> comparator, int topN, bool allowEmptyString)
         {
             // All paths are kept, so we can pass topN for
             // maxQueueDepth and the pruning is admissible:
@@ -721,7 +721,7 @@ namespace Lucene.Net.Util.Fst
         ///          binary format. Expands the graph considerably.
         /// </param>
         /// <seealso cref= "http://www.graphviz.org/" </seealso>
-        public static void toDot<T>(FST<T> fst, TextWriter @out, bool sameRank,
bool labelStates)
+        public static void ToDot<T>(FST<T> fst, TextWriter @out, bool sameRank,
bool labelStates)
         {
             const string expandedNodeColor = "blue";
 
@@ -1066,7 +1066,7 @@ namespace Lucene.Net.Util.Fst
         /// <param name="follow"> the arc to follow reading the label from </param>
         /// <param name="arc"> the arc to read into in place </param>
         /// <param name="in"> the fst's <seealso cref="BytesReader"/> </param>
-        public static FST<T>.Arc<T> readCeilArc<T>(int label, FST<T>
fst, FST<T>.Arc<T> follow, FST<T>.Arc<T> arc, FST<T>.BytesReader
@in)
+        public static FST<T>.Arc<T> ReadCeilArc<T>(int label, FST<T>
fst, FST<T>.Arc<T> follow, FST<T>.Arc<T> arc, FST<T>.BytesReader
@in)
         {
             // TODO maybe this is a useful in the FST class - we could simplify some other
code like FSTEnum?
             if (label == FST<T>.END_LABEL)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/297f9265/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 d86b695..3e05e6d 100644
--- a/src/Lucene.Net.TestFramework/Util/fst/FSTTester.cs
+++ b/src/Lucene.Net.TestFramework/Util/fst/FSTTester.cs
@@ -364,7 +364,7 @@ namespace Lucene.Net.Util.Fst
             if (LuceneTestCase.VERBOSE && Pairs.Count <= 20 && fst !=
null)
             {
                 TextWriter w = new StreamWriter(new FileStream("out.dot", FileMode.Open),
IOUtils.CHARSET_UTF_8);
-                Util.toDot(fst, w, false, false);
+                Util.ToDot(fst, w, false, false);
                 w.Close();
                 Console.WriteLine("SAVED out.dot");
             }


Mime
View raw message