lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [14/46] lucenenet git commit: Facet: Normalized code formatting, license headers, and usings.
Date Tue, 04 Oct 2016 20:01:44 GMT
Facet: Normalized code formatting, license headers, and usings.


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

Branch: refs/heads/master
Commit: ae225b9eeec8ed5d3999b364b2e7a4f880347557
Parents: c40662a
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Sep 25 01:14:36 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Mon Oct 3 23:31:03 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Facet/DrillDownQuery.cs          |  18 ++-
 src/Lucene.Net.Facet/DrillSideways.cs           |  15 +--
 src/Lucene.Net.Facet/DrillSidewaysQuery.cs      |  16 ++-
 src/Lucene.Net.Facet/DrillSidewaysScorer.cs     |  25 ++---
 src/Lucene.Net.Facet/FacetField.cs              |   2 -
 src/Lucene.Net.Facet/FacetResult.cs             |  10 +-
 src/Lucene.Net.Facet/Facets.cs                  |   6 -
 src/Lucene.Net.Facet/FacetsCollector.cs         |  11 +-
 src/Lucene.Net.Facet/FacetsConfig.cs            |  28 ++---
 src/Lucene.Net.Facet/LabelAndValue.cs           |   9 +-
 src/Lucene.Net.Facet/MultiFacets.cs             |   5 -
 .../RandomSamplingFacetsCollector.cs            |  18 +--
 src/Lucene.Net.Facet/Range/DoubleRange.cs       |  18 +--
 .../Range/DoubleRangeFacetCounts.cs             |  23 ++--
 src/Lucene.Net.Facet/Range/LongRange.cs         |  15 +--
 src/Lucene.Net.Facet/Range/LongRangeCounter.cs  |  54 +++++----
 .../Range/LongRangeFacetCounts.cs               |  19 ++--
 src/Lucene.Net.Facet/Range/Range.cs             |  10 +-
 src/Lucene.Net.Facet/Range/RangeFacetCounts.cs  |   5 -
 .../DefaultSortedSetDocValuesReaderState.cs     |   8 +-
 .../SortedSet/SortedSetDocValuesFacetCounts.cs  |  17 +--
 .../SortedSet/SortedSetDocValuesFacetField.cs   |   3 -
 .../SortedSet/SortedSetDocValuesReaderState.cs  |   5 -
 .../Taxonomy/AssociationFacetField.cs           |   8 +-
 .../Taxonomy/CachedOrdinalsReader.cs            |  13 +--
 src/Lucene.Net.Facet/Taxonomy/CategoryPath.cs   |  12 +-
 .../Taxonomy/Directory/Consts.cs                |   6 +-
 .../Directory/DirectoryTaxonomyReader.cs        |  30 +++--
 .../Directory/DirectoryTaxonomyWriter.cs        |  79 ++++++-------
 .../Taxonomy/Directory/TaxonomyIndexArrays.cs   |  18 ++-
 .../Taxonomy/DocValuesOrdinalsReader.cs         |   6 +-
 src/Lucene.Net.Facet/Taxonomy/FacetLabel.cs     |   6 +-
 .../Taxonomy/FastTaxonomyFacetCounts.cs         |  10 +-
 .../Taxonomy/FloatAssociationFacetField.cs      |  79 +++++++------
 .../Taxonomy/FloatTaxonomyFacets.cs             |   4 +-
 .../Taxonomy/IntAssociationFacetField.cs        |  10 +-
 .../Taxonomy/IntTaxonomyFacets.cs               |   3 -
 src/Lucene.Net.Facet/Taxonomy/OrdinalsReader.cs |   3 -
 .../Taxonomy/ParallelTaxonomyArrays.cs          |  99 ++++++++--------
 .../Taxonomy/PrintTaxonomyStats.cs              |   6 +-
 .../Taxonomy/SearcherTaxonomyManager.cs         |  26 ++---
 .../Taxonomy/TaxonomyFacetCounts.cs             |   6 +-
 .../TaxonomyFacetSumFloatAssociations.cs        |  20 ++--
 .../Taxonomy/TaxonomyFacetSumIntAssociations.cs |  15 +--
 .../Taxonomy/TaxonomyFacetSumValueSource.cs     |  32 ++----
 src/Lucene.Net.Facet/Taxonomy/TaxonomyFacets.cs |   5 -
 src/Lucene.Net.Facet/Taxonomy/TaxonomyReader.cs |  18 +--
 src/Lucene.Net.Facet/Taxonomy/TaxonomyWriter.cs |  11 +-
 .../Taxonomy/WriterCache/CategoryPathUtils.cs   |   1 -
 .../Taxonomy/WriterCache/CharBlockArray.cs      |   6 +-
 .../WriterCache/Cl2oTaxonomyWriterCache.cs      |   5 -
 .../Taxonomy/WriterCache/CollisionMap.cs        |   8 +-
 .../WriterCache/CompactLabelToOrdinal.cs        |   2 -
 .../Taxonomy/WriterCache/LabelToOrdinal.cs      | 112 +++++++++----------
 .../WriterCache/LruTaxonomyWriterCache.cs       |   5 -
 .../Taxonomy/WriterCache/NameHashIntCacheLRU.cs |  53 +++++----
 .../Taxonomy/WriterCache/NameIntCacheLRU.cs     |  23 ++--
 .../Taxonomy/WriterCache/TaxonomyWriterCache.cs |   8 +-
 src/Lucene.Net.Facet/TopOrdAndFloatQueue.cs     |  98 ++++++++--------
 src/Lucene.Net.Facet/TopOrdAndIntQueue.cs       |   6 -
 60 files changed, 464 insertions(+), 728 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/DrillDownQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/DrillDownQuery.cs b/src/Lucene.Net.Facet/DrillDownQuery.cs
index 8234282..d6fa03b 100644
--- a/src/Lucene.Net.Facet/DrillDownQuery.cs
+++ b/src/Lucene.Net.Facet/DrillDownQuery.cs
@@ -1,12 +1,11 @@
-using System;
-using System.Diagnostics;
+using Lucene.Net.Support;
+using System;
 using System.Collections.Generic;
+using System.Diagnostics;
 using System.Linq;
-using Lucene.Net.Support;
 
 namespace Lucene.Net.Facet
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -24,17 +23,16 @@ namespace Lucene.Net.Facet
      * limitations under the License.
      */
 
-
-    using IndexReader = Lucene.Net.Index.IndexReader;
-    using Term = Lucene.Net.Index.Term;
-    using Occur = Lucene.Net.Search.BooleanClause.Occur;
     using BooleanClause = Lucene.Net.Search.BooleanClause;
     using BooleanQuery = Lucene.Net.Search.BooleanQuery;
     using ConstantScoreQuery = Lucene.Net.Search.ConstantScoreQuery;
     using Filter = Lucene.Net.Search.Filter;
     using FilteredQuery = Lucene.Net.Search.FilteredQuery;
+    using IndexReader = Lucene.Net.Index.IndexReader;
     using MatchAllDocsQuery = Lucene.Net.Search.MatchAllDocsQuery;
+    using Occur = Lucene.Net.Search.BooleanClause.Occur;
     using Query = Lucene.Net.Search.Query;
+    using Term = Lucene.Net.Index.Term;
     using TermQuery = Lucene.Net.Search.TermQuery;
 
     /// <summary>
@@ -52,7 +50,6 @@ namespace Lucene.Net.Facet
     /// </summary>
     public sealed class DrillDownQuery : Query
     {
-
         /// <summary>
         /// Creates a drill-down term. </summary>
         public static Term Term(string field, string dim, params string[] path)
@@ -68,7 +65,7 @@ namespace Lucene.Net.Facet
         /// Used by clone() </summary>
         internal DrillDownQuery(FacetsConfig config, BooleanQuery query, IDictionary<string, int?> drillDownDims)
         {
-            this.query = (BooleanQuery) query.Clone();
+            this.query = (BooleanQuery)query.Clone();
             this.drillDownDims.AddAll(drillDownDims);
             this.config = config;
         }
@@ -384,5 +381,4 @@ namespace Lucene.Net.Facet
             }
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/DrillSideways.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/DrillSideways.cs b/src/Lucene.Net.Facet/DrillSideways.cs
index 5ba8f91..2c71be4 100644
--- a/src/Lucene.Net.Facet/DrillSideways.cs
+++ b/src/Lucene.Net.Facet/DrillSideways.cs
@@ -1,15 +1,13 @@
-using System;
+using Lucene.Net.Facet.SortedSet;
+using Lucene.Net.Facet.Taxonomy;
+using Lucene.Net.Search;
+using System;
 using System.Collections.Generic;
 using System.Diagnostics;
 using System.Linq;
-using Lucene.Net.Search;
-using Lucene.Net.Facet;
-using Lucene.Net.Facet.SortedSet;
-using Lucene.Net.Facet.Taxonomy;
 
 namespace Lucene.Net.Facet
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -26,6 +24,7 @@ namespace Lucene.Net.Facet
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
+
     /// <summary>
     /// Computes drill down and sideways counts for the provided
     /// <seealso cref="DrillDownQuery"/>.  Drill sideways counts include
@@ -48,7 +47,6 @@ namespace Lucene.Net.Facet
     /// </summary>
     public class DrillSideways
     {
-
         /// <summary>
         /// <seealso cref="IndexSearcher"/> passed to constructor. </summary>
         protected internal readonly IndexSearcher searcher;
@@ -97,7 +95,6 @@ namespace Lucene.Net.Facet
             this.state = state;
         }
 
-        
         /// <summary>
         /// Subclass can override to customize per-dim Facets
         ///  impl. 
@@ -290,6 +287,4 @@ namespace Lucene.Net.Facet
             }
         }
     }
-
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/DrillSidewaysQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/DrillSidewaysQuery.cs b/src/Lucene.Net.Facet/DrillSidewaysQuery.cs
index c8e782e..9b25dac 100644
--- a/src/Lucene.Net.Facet/DrillSidewaysQuery.cs
+++ b/src/Lucene.Net.Facet/DrillSidewaysQuery.cs
@@ -1,9 +1,8 @@
-using System;
-using Lucene.Net.Support;
+using Lucene.Net.Support;
+using System;
 
 namespace Lucene.Net.Facet
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -22,18 +21,18 @@ namespace Lucene.Net.Facet
      */
 
     using AtomicReaderContext = Lucene.Net.Index.AtomicReaderContext;
-    using IndexReader = Lucene.Net.Index.IndexReader;
+    using Bits = Lucene.Net.Util.Bits;
+    using BulkScorer = Lucene.Net.Search.BulkScorer;
     using Collector = Lucene.Net.Search.Collector;
     using DocIdSet = Lucene.Net.Search.DocIdSet;
     using DocIdSetIterator = Lucene.Net.Search.DocIdSetIterator;
     using Explanation = Lucene.Net.Search.Explanation;
     using Filter = Lucene.Net.Search.Filter;
+    using IndexReader = Lucene.Net.Index.IndexReader;
     using IndexSearcher = Lucene.Net.Search.IndexSearcher;
     using Query = Lucene.Net.Search.Query;
     using Scorer = Lucene.Net.Search.Scorer;
-    using BulkScorer = Lucene.Net.Search.BulkScorer;
     using Weight = Lucene.Net.Search.Weight;
-    using Bits = Lucene.Net.Util.Bits;
 
     /// <summary>
     /// Only purpose is to punch through and return a
@@ -48,7 +47,8 @@ namespace Lucene.Net.Facet
         internal readonly Query[] drillDownQueries;
         internal readonly bool scoreSubDocsAtOnce;
 
-        internal DrillSidewaysQuery(Query baseQuery, Collector drillDownCollector, Collector[] drillSidewaysCollectors, Query[] drillDownQueries, bool scoreSubDocsAtOnce)
+        internal DrillSidewaysQuery(Query baseQuery, Collector drillDownCollector,
+            Collector[] drillSidewaysCollectors, Query[] drillDownQueries, bool scoreSubDocsAtOnce)
         {
             this.baseQuery = baseQuery;
             this.drillDownCollector = drillDownCollector;
@@ -162,7 +162,6 @@ namespace Lucene.Net.Facet
 
             public override BulkScorer BulkScorer(AtomicReaderContext context, bool scoreDocsInOrder, Bits acceptDocs)
             {
-
                 // TODO: it could be better if we take acceptDocs
                 // into account instead of baseScorer?
                 Scorer baseScorer = baseWeight.Scorer(context, acceptDocs);
@@ -312,5 +311,4 @@ namespace Lucene.Net.Facet
             return true;
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/DrillSidewaysScorer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/DrillSidewaysScorer.cs b/src/Lucene.Net.Facet/DrillSidewaysScorer.cs
index bbd00c1..bd045c3 100644
--- a/src/Lucene.Net.Facet/DrillSidewaysScorer.cs
+++ b/src/Lucene.Net.Facet/DrillSidewaysScorer.cs
@@ -1,11 +1,9 @@
 using System;
-using System.Diagnostics;
 using System.Collections.Generic;
-using Scorer = Lucene.Net.Search.Scorer;
+using System.Diagnostics;
 
 namespace Lucene.Net.Facet
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -23,20 +21,18 @@ namespace Lucene.Net.Facet
      * limitations under the License.
      */
 
-
     using AtomicReaderContext = Lucene.Net.Index.AtomicReaderContext;
-    using DocsEnum = Lucene.Net.Index.DocsEnum;
+    using Bits = Lucene.Net.Util.Bits;
+    using BulkScorer = Lucene.Net.Search.BulkScorer;
     using Collector = Lucene.Net.Search.Collector;
     using DocIdSetIterator = Lucene.Net.Search.DocIdSetIterator;
+    using DocsEnum = Lucene.Net.Index.DocsEnum;
+    using FixedBitSet = Lucene.Net.Util.FixedBitSet;
     using Scorer = Lucene.Net.Search.Scorer;
-    using BulkScorer = Lucene.Net.Search.BulkScorer;
     using Weight = Lucene.Net.Search.Weight;
-    using Bits = Lucene.Net.Util.Bits;
-    using FixedBitSet = Lucene.Net.Util.FixedBitSet;
 
     internal class DrillSidewaysScorer : BulkScorer
     {
-
         //private static boolean DEBUG = false;
 
         private readonly Collector drillDownCollector;
@@ -56,7 +52,8 @@ namespace Lucene.Net.Facet
         private int collectDocID = -1;
         private float collectScore;
 
-        internal DrillSidewaysScorer(AtomicReaderContext context, Scorer baseScorer, Collector drillDownCollector, DocsAndCost[] dims, bool scoreSubDocsAtOnce)
+        internal DrillSidewaysScorer(AtomicReaderContext context, Scorer baseScorer, 
+            Collector drillDownCollector, DocsAndCost[] dims, bool scoreSubDocsAtOnce)
         {
             this.dims = dims;
             this.context = context;
@@ -177,7 +174,8 @@ namespace Lucene.Net.Facet
         ///  this case we just .next() on base and .advance() on
         ///  the dim filters. 
         /// </summary>
-        private void DoQueryFirstScoring(Collector collector, DocIdSetIterator[] disis, Collector[] sidewaysCollectors, Bits[] bits, Collector[] bitsSidewaysCollectors)
+        private void DoQueryFirstScoring(Collector collector, DocIdSetIterator[] disis, 
+            Collector[] sidewaysCollectors, Bits[] bits, Collector[] bitsSidewaysCollectors)
         {
             //if (DEBUG) {
             //  System.out.println("  doQueryFirstScoring");
@@ -258,9 +256,9 @@ namespace Lucene.Net.Facet
                 }
 
                 docID = baseScorer.NextDoc();
-            nextDocContinue: ;
+                nextDocContinue:;
             }
-        nextDocBreak: ;
+            nextDocBreak:;
         }
 
         /// <summary>
@@ -822,5 +820,4 @@ namespace Lucene.Net.Facet
             }
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/FacetField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/FacetField.cs b/src/Lucene.Net.Facet/FacetField.cs
index a11e5cf..5c85936 100644
--- a/src/Lucene.Net.Facet/FacetField.cs
+++ b/src/Lucene.Net.Facet/FacetField.cs
@@ -2,7 +2,6 @@
 
 namespace Lucene.Net.Facet
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -87,5 +86,4 @@ namespace Lucene.Net.Facet
             }
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/FacetResult.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/FacetResult.cs b/src/Lucene.Net.Facet/FacetResult.cs
index 924f8d5..5699e6c 100644
--- a/src/Lucene.Net.Facet/FacetResult.cs
+++ b/src/Lucene.Net.Facet/FacetResult.cs
@@ -1,12 +1,10 @@
-using System.Text;
-using Lucene.Net.Support;
-using Lucene.Net.Util;
-using System.Globalization;
+using Lucene.Net.Support;
 using System;
+using System.Globalization;
+using System.Text;
 
 namespace Lucene.Net.Facet
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -28,7 +26,6 @@ namespace Lucene.Net.Facet
     /// Counts or aggregates for a single dimension. </summary>
     public sealed class FacetResult
     {
-
         /// <summary>
         /// Dimension that was requested. </summary>
         public readonly string Dim;
@@ -136,5 +133,4 @@ namespace Lucene.Net.Facet
             return hashCode;
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Facets.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Facets.cs b/src/Lucene.Net.Facet/Facets.cs
index f046127..405d1b3 100644
--- a/src/Lucene.Net.Facet/Facets.cs
+++ b/src/Lucene.Net.Facet/Facets.cs
@@ -1,10 +1,7 @@
 using System.Collections.Generic;
-using Lucene.Net.Support;
-using Lucene.Net.Facet;
 
 namespace Lucene.Net.Facet
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -22,7 +19,6 @@ namespace Lucene.Net.Facet
      * limitations under the License.
      */
 
-
     /// <summary>
     /// Common base class for all facets implementations.
     /// 
@@ -30,7 +26,6 @@ namespace Lucene.Net.Facet
     /// </summary>
     public abstract class Facets
     {
-
         /// <summary>
         /// Default constructor. </summary>
         public Facets()
@@ -60,5 +55,4 @@ namespace Lucene.Net.Facet
         /// </summary>
         public abstract IList<FacetResult> GetAllDims(int topN);
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/FacetsCollector.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/FacetsCollector.cs b/src/Lucene.Net.Facet/FacetsCollector.cs
index 4bbb76f..0739367 100644
--- a/src/Lucene.Net.Facet/FacetsCollector.cs
+++ b/src/Lucene.Net.Facet/FacetsCollector.cs
@@ -1,12 +1,11 @@
-using System;
-using System.Collections.Generic;
-using Lucene.Net.Index;
+using Lucene.Net.Index;
 using Lucene.Net.Search;
 using Lucene.Net.Util;
+using System;
+using System.Collections.Generic;
 
 namespace Lucene.Net.Facet
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -23,6 +22,7 @@ namespace Lucene.Net.Facet
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
+
     /// <summary>
     /// Collects hits for subsequent faceting.  Once you've run
     ///  a search and collect hits into this, instantiate one of
@@ -33,7 +33,6 @@ namespace Lucene.Net.Facet
     /// </summary>
     public class FacetsCollector : Collector
     {
-
         private AtomicReaderContext context;
         private Scorer scorer;
         private int totalHits;
@@ -233,7 +232,6 @@ namespace Lucene.Net.Facet
             }
         }
 
-
         /// <summary>
         /// Utility method, to search and also collect all hits
         ///  into the provided <seealso cref="Collector"/>. 
@@ -368,5 +366,4 @@ namespace Lucene.Net.Facet
             }
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/FacetsConfig.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/FacetsConfig.cs b/src/Lucene.Net.Facet/FacetsConfig.cs
index 97ed4cf..a62d625 100644
--- a/src/Lucene.Net.Facet/FacetsConfig.cs
+++ b/src/Lucene.Net.Facet/FacetsConfig.cs
@@ -1,16 +1,13 @@
 using System;
-using System.Diagnostics;
-using System.Collections.Generic;
 using System.Collections.Concurrent;
+using System.Collections.Generic;
+using System.Diagnostics;
 using System.Linq;
 using System.Text;
 using System.Threading;
-using Lucene.Net.Facet.SortedSet;
-using Lucene.Net.Facet.Taxonomy;
 
 namespace Lucene.Net.Facet
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -28,23 +25,22 @@ namespace Lucene.Net.Facet
      * limitations under the License.
      */
 
-
+    using ArrayUtil = Lucene.Net.Util.ArrayUtil;
+    using AssociationFacetField = Lucene.Net.Facet.Taxonomy.AssociationFacetField;
     using BinaryDocValuesField = Lucene.Net.Documents.BinaryDocValuesField;
+    using BytesRef = Lucene.Net.Util.BytesRef;
     using Document = Lucene.Net.Documents.Document;
-    using Field = Lucene.Net.Documents.Field;
-    using SortedSetDocValuesField = Lucene.Net.Documents.SortedSetDocValuesField;
-    using StringField = Lucene.Net.Documents.StringField;
-    using SortedSetDocValuesFacetField = Lucene.Net.Facet.SortedSet.SortedSetDocValuesFacetField;
-    using AssociationFacetField = Lucene.Net.Facet.Taxonomy.AssociationFacetField;
     using FacetLabel = Lucene.Net.Facet.Taxonomy.FacetLabel;
+    using Field = Lucene.Net.Documents.Field;
     using FloatAssociationFacetField = Lucene.Net.Facet.Taxonomy.FloatAssociationFacetField;
-    using IntAssociationFacetField = Lucene.Net.Facet.Taxonomy.IntAssociationFacetField;
-    using TaxonomyWriter = Lucene.Net.Facet.Taxonomy.TaxonomyWriter;
     using IndexableField = Lucene.Net.Index.IndexableField;
     using IndexableFieldType = Lucene.Net.Index.IndexableFieldType;
-    using ArrayUtil = Lucene.Net.Util.ArrayUtil;
-    using BytesRef = Lucene.Net.Util.BytesRef;
+    using IntAssociationFacetField = Lucene.Net.Facet.Taxonomy.IntAssociationFacetField;
     using IntsRef = Lucene.Net.Util.IntsRef;
+    using SortedSetDocValuesFacetField = Lucene.Net.Facet.SortedSet.SortedSetDocValuesFacetField;
+    using SortedSetDocValuesField = Lucene.Net.Documents.SortedSetDocValuesField;
+    using StringField = Lucene.Net.Documents.StringField;
+    using TaxonomyWriter = Lucene.Net.Facet.Taxonomy.TaxonomyWriter;
 
     /// <summary>
     /// Records per-dimension configuration.  By default a
@@ -63,7 +59,6 @@ namespace Lucene.Net.Facet
     /// </summary>
     public class FacetsConfig
     {
-
         /// <summary>
         /// Which Lucene field holds the drill-downs and ords (as
         ///  doc values). 
@@ -708,5 +703,4 @@ namespace Lucene.Net.Facet
             return parts.ToArray();
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/LabelAndValue.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/LabelAndValue.cs b/src/Lucene.Net.Facet/LabelAndValue.cs
index 6cf1991..1503e3e 100644
--- a/src/Lucene.Net.Facet/LabelAndValue.cs
+++ b/src/Lucene.Net.Facet/LabelAndValue.cs
@@ -1,10 +1,8 @@
-using Lucene.Net.Support;
-using System;
+using System;
 using System.Globalization;
 
 namespace Lucene.Net.Facet
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -65,8 +63,8 @@ namespace Lucene.Net.Facet
 
         public override string ToString()
         {
-            string valueString = (typeOfValue == typeof(int)) 
-                ? value.ToString("0", CultureInfo.InvariantCulture) 
+            string valueString = (typeOfValue == typeof(int))
+                ? value.ToString("0", CultureInfo.InvariantCulture)
                 : value.ToString("0.0#####", CultureInfo.InvariantCulture);
             return label + " (" + valueString + ")";
         }
@@ -86,5 +84,4 @@ namespace Lucene.Net.Facet
             return label.GetHashCode() + 1439 * value.GetHashCode();
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/MultiFacets.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/MultiFacets.cs b/src/Lucene.Net.Facet/MultiFacets.cs
index b40772e..051de44 100644
--- a/src/Lucene.Net.Facet/MultiFacets.cs
+++ b/src/Lucene.Net.Facet/MultiFacets.cs
@@ -1,10 +1,7 @@
 using System.Collections.Generic;
-using Lucene.Net.Facet;
-using Lucene.Net.Support;
 
 namespace Lucene.Net.Facet
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -22,7 +19,6 @@ namespace Lucene.Net.Facet
      * limitations under the License.
      */
 
-
     /// <summary>
     /// Maps specified dims to provided Facets impls; else, uses
     ///  the default Facets impl. 
@@ -99,5 +95,4 @@ namespace Lucene.Net.Facet
             return results;
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/RandomSamplingFacetsCollector.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/RandomSamplingFacetsCollector.cs b/src/Lucene.Net.Facet/RandomSamplingFacetsCollector.cs
index 47bb029..a662b6a 100644
--- a/src/Lucene.Net.Facet/RandomSamplingFacetsCollector.cs
+++ b/src/Lucene.Net.Facet/RandomSamplingFacetsCollector.cs
@@ -1,12 +1,9 @@
 using System;
 using System.Collections.Generic;
 using System.IO;
-using Lucene.Net.Facet;
-using Lucene.Net.Search;
 
 namespace Lucene.Net.Facet
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -24,13 +21,12 @@ namespace Lucene.Net.Facet
      * limitations under the License.
      */
 
-
     using DimConfig = FacetsConfig.DimConfig;
-    using IndexReader = Lucene.Net.Index.IndexReader;
-    using Term = Lucene.Net.Index.Term;
     using DocIdSetIterator = Lucene.Net.Search.DocIdSetIterator;
-    using IndexSearcher = Lucene.Net.Search.IndexSearcher;
     using FixedBitSet = Lucene.Net.Util.FixedBitSet;
+    using IndexReader = Lucene.Net.Index.IndexReader;
+    using IndexSearcher = Lucene.Net.Search.IndexSearcher;
+    using Term = Lucene.Net.Index.Term;
 
     /// <summary>
     /// Collects hits for subsequent faceting, using sampling if needed. Once you've
@@ -47,18 +43,15 @@ namespace Lucene.Net.Facet
     /// </summary>
     public class RandomSamplingFacetsCollector : FacetsCollector
     {
-
         /// <summary>
         /// Faster alternative for java.util.Random, inspired by
-        /// http://dmurphy747.wordpress.com/2011/03/23/xorshift-vs-random-
-        /// performance-in-java/
+        /// http://dmurphy747.wordpress.com/2011/03/23/xorshift-vs-random-performance-in-java/
         /// <para>
         /// Has a period of 2^64-1
         /// </para>
         /// </summary>
         private class XORShift64Random
         {
-
             internal long x;
 
             /// <summary>
@@ -85,7 +78,6 @@ namespace Lucene.Net.Facet
                 int res = (int)(RandomLong() % n);
                 return (res < 0) ? -res : res;
             }
-
         }
 
         private const int NOT_CALCULATED = -1;
@@ -317,7 +309,5 @@ namespace Lucene.Net.Facet
                 return samplingRate;
             }
         }
-
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Range/DoubleRange.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Range/DoubleRange.cs b/src/Lucene.Net.Facet/Range/DoubleRange.cs
index 8ad1439..28685d4 100644
--- a/src/Lucene.Net.Facet/Range/DoubleRange.cs
+++ b/src/Lucene.Net.Facet/Range/DoubleRange.cs
@@ -1,10 +1,7 @@
-using System;
-using System.Collections.Generic;
-using Lucene.Net.Support;
+using System.Collections.Generic;
 
 namespace Lucene.Net.Facet.Range
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -22,15 +19,14 @@ namespace Lucene.Net.Facet.Range
      * limitations under the License.
      */
 
-
     using AtomicReaderContext = Lucene.Net.Index.AtomicReaderContext;
-    using FunctionValues = Lucene.Net.Queries.Function.FunctionValues;
-    using ValueSource = Lucene.Net.Queries.Function.ValueSource;
+    using Bits = Lucene.Net.Util.Bits;
     using DocIdSet = Lucene.Net.Search.DocIdSet;
     using DocIdSetIterator = Lucene.Net.Search.DocIdSetIterator;
     using Filter = Lucene.Net.Search.Filter;
-    using Bits = Lucene.Net.Util.Bits;
+    using FunctionValues = Lucene.Net.Queries.Function.FunctionValues;
     using NumericUtils = Lucene.Net.Util.NumericUtils;
+    using ValueSource = Lucene.Net.Queries.Function.ValueSource;
 
     /// <summary>
     /// Represents a range over double values.
@@ -138,7 +134,6 @@ namespace Lucene.Net.Facet.Range
                 this.valueSource = valueSource;
             }
 
-
             public override string ToString()
             {
                 return "Filter(" + outerInstance.ToString() + ")";
@@ -152,7 +147,7 @@ namespace Lucene.Net.Facet.Range
                 // ValueSourceRangeFilter (solr); also,
                 // https://issues.apache.org/jira/browse/LUCENE-4251
 
-                var values = valueSource.GetValues(new Dictionary<string,Lucene.Net.Search.Scorer>(), context);
+                var values = valueSource.GetValues(new Dictionary<string, Lucene.Net.Search.Scorer>(), context);
 
                 int maxDoc = context.Reader.MaxDoc;
 
@@ -197,7 +192,6 @@ namespace Lucene.Net.Facet.Range
                     this.fastMatchBits = fastMatchBits;
                 }
 
-
                 public override Bits GetBits()
                 {
                     return new BitsAnonymousInnerClassHelper(this);
@@ -238,6 +232,4 @@ namespace Lucene.Net.Facet.Range
             }
         }
     }
-
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Range/DoubleRangeFacetCounts.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Range/DoubleRangeFacetCounts.cs b/src/Lucene.Net.Facet/Range/DoubleRangeFacetCounts.cs
index d0163d7..1e3a996 100644
--- a/src/Lucene.Net.Facet/Range/DoubleRangeFacetCounts.cs
+++ b/src/Lucene.Net.Facet/Range/DoubleRangeFacetCounts.cs
@@ -1,10 +1,7 @@
 using System.Collections.Generic;
-using Lucene.Net.Facet;
-using Lucene.Net.Support;
 
 namespace Lucene.Net.Facet.Range
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -22,19 +19,15 @@ namespace Lucene.Net.Facet.Range
      * limitations under the License.
      */
 
-
-    using DoubleDocValuesField = Lucene.Net.Documents.DoubleDocValuesField; // javadocs
-    using FloatDocValuesField = Lucene.Net.Documents.FloatDocValuesField; // javadocs
-    using MatchingDocs = FacetsCollector.MatchingDocs;
-    using FunctionValues = Lucene.Net.Queries.Function.FunctionValues;
-    using ValueSource = Lucene.Net.Queries.Function.ValueSource;
-    using DoubleFieldSource = Lucene.Net.Queries.Function.ValueSources.DoubleFieldSource;
-    using FloatFieldSource = Lucene.Net.Queries.Function.ValueSources.FloatFieldSource; // javadocs
-    using DocIdSet = Lucene.Net.Search.DocIdSet;
-    using Filter = Lucene.Net.Search.Filter;
     using Bits = Lucene.Net.Util.Bits;
+    using DocIdSet = Lucene.Net.Search.DocIdSet;
     using DocIdSetIterator = Lucene.Net.Search.DocIdSetIterator;
+    using DoubleFieldSource = Lucene.Net.Queries.Function.ValueSources.DoubleFieldSource;
+    using Filter = Lucene.Net.Search.Filter;
+    using FunctionValues = Lucene.Net.Queries.Function.FunctionValues;
+    using MatchingDocs = FacetsCollector.MatchingDocs;
     using NumericUtils = Lucene.Net.Util.NumericUtils;
+    using ValueSource = Lucene.Net.Queries.Function.ValueSource;
 
     /// <summary>
     /// <seealso cref="Facets"/> implementation that computes counts for
@@ -58,7 +51,6 @@ namespace Lucene.Net.Facet.Range
     /// </summary>
     public class DoubleRangeFacetCounts : RangeFacetCounts
     {
-
         /// <summary>
         /// Create {@code RangeFacetCounts}, using {@link
         ///  DoubleFieldSource} from the specified field. 
@@ -107,7 +99,7 @@ namespace Lucene.Net.Facet.Range
             int missingCount = 0;
             foreach (MatchingDocs hits in matchingDocs)
             {
-                FunctionValues fv = valueSource.GetValues(new Dictionary<string,object>(), hits.context);
+                FunctionValues fv = valueSource.GetValues(new Dictionary<string, object>(), hits.context);
 
                 TotCount += hits.totalHits;
                 Bits bits;
@@ -156,5 +148,4 @@ namespace Lucene.Net.Facet.Range
             TotCount -= missingCount;
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Range/LongRange.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Range/LongRange.cs b/src/Lucene.Net.Facet/Range/LongRange.cs
index 52da204..7a4f0c1 100644
--- a/src/Lucene.Net.Facet/Range/LongRange.cs
+++ b/src/Lucene.Net.Facet/Range/LongRange.cs
@@ -1,9 +1,7 @@
 using System.Collections.Generic;
-using Lucene.Net.Support;
 
 namespace Lucene.Net.Facet.Range
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -21,14 +19,13 @@ namespace Lucene.Net.Facet.Range
      * limitations under the License.
      */
 
-
     using AtomicReaderContext = Lucene.Net.Index.AtomicReaderContext;
-    using FunctionValues = Lucene.Net.Queries.Function.FunctionValues;
-    using ValueSource = Lucene.Net.Queries.Function.ValueSource;
+    using Bits = Lucene.Net.Util.Bits;
     using DocIdSet = Lucene.Net.Search.DocIdSet;
     using DocIdSetIterator = Lucene.Net.Search.DocIdSetIterator;
     using Filter = Lucene.Net.Search.Filter;
-    using Bits = Lucene.Net.Util.Bits;
+    using FunctionValues = Lucene.Net.Queries.Function.FunctionValues;
+    using ValueSource = Lucene.Net.Queries.Function.ValueSource;
 
     /// <summary>
     /// Represents a range over long values.
@@ -147,7 +144,7 @@ namespace Lucene.Net.Facet.Range
                 // ValueSourceRangeFilter (solr); also,
                 // https://issues.apache.org/jira/browse/LUCENE-4251
 
-                FunctionValues values = valueSource.GetValues(new Dictionary<string,object>(), context);
+                FunctionValues values = valueSource.GetValues(new Dictionary<string, object>(), context);
 
                 int maxDoc = context.Reader.MaxDoc;
 
@@ -220,7 +217,7 @@ namespace Lucene.Net.Facet.Range
                         return outerInstance.outerInstance.outerInstance.accept(outerInstance.values.LongVal(docID));
                     }
 
-                    
+
                     public virtual int Length()
                     {
                         return outerInstance.maxDoc;
@@ -231,9 +228,7 @@ namespace Lucene.Net.Facet.Range
                 {
                     throw new System.NotSupportedException("this filter can only be accessed via bits()");
                 }
-
             }
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Range/LongRangeCounter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Range/LongRangeCounter.cs b/src/Lucene.Net.Facet/Range/LongRangeCounter.cs
index 98123c2..43ef3b4 100644
--- a/src/Lucene.Net.Facet/Range/LongRangeCounter.cs
+++ b/src/Lucene.Net.Facet/Range/LongRangeCounter.cs
@@ -1,10 +1,9 @@
-using System.Diagnostics;
-using System.Collections.Generic;
+using System.Collections.Generic;
+using System.Diagnostics;
 using System.Text;
 
 namespace Lucene.Net.Facet.Range
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -22,7 +21,6 @@ namespace Lucene.Net.Facet.Range
      * limitations under the License.
      */
 
-
     /// <summary>
     /// Counts how many times each range was seen;
     ///  per-hit it's just a binary search (<seealso cref="#add"/>)
@@ -32,7 +30,6 @@ namespace Lucene.Net.Facet.Range
 
     internal sealed class LongRangeCounter
     {
-
         internal readonly LongRangeNode root;
         internal readonly long[] boundaries;
         internal readonly int[] leafCounts;
@@ -56,7 +53,7 @@ namespace Lucene.Net.Facet.Range
             foreach (LongRange range in ranges)
             {
                 int? cur;
-                if (!endsMap.TryGetValue(range.minIncl,out cur))
+                if (!endsMap.TryGetValue(range.minIncl, out cur))
                 {
                     endsMap[range.minIncl] = 1;
                 }
@@ -64,8 +61,8 @@ namespace Lucene.Net.Facet.Range
                 {
                     endsMap[range.minIncl] = (int)cur | 1;
                 }
-                
-                if (!endsMap.TryGetValue(range.maxIncl,out cur))
+
+                if (!endsMap.TryGetValue(range.maxIncl, out cur))
                 {
                     endsMap[range.maxIncl] = 2;
                 }
@@ -95,7 +92,7 @@ namespace Lucene.Net.Facet.Range
 
             while (upto0 < endsList.Count)
             {
-                v = endsList[upto0].HasValue ?  endsList[upto0].Value : 0;
+                v = endsList[upto0].HasValue ? endsList[upto0].Value : 0;
                 int flags = endsMap[v].HasValue ? endsMap[v].Value : 0;
                 //System.out.println("  v=" + v + " flags=" + flags);
                 if (flags == 3)
@@ -333,25 +330,25 @@ namespace Lucene.Net.Facet.Range
             /// <summary>
             /// Recursively assigns range outputs to each node. </summary>
             internal void addOutputs(int index, LongRange range)
-		{
-		  if (start >= range.minIncl && end <= range.maxIncl)
-		  {
-			// Our range is fully included in the incoming
-			// range; add to our output list:
-			if (outputs == null)
-			{
-			  outputs = new List<int?>();
-			}
-			outputs.Add(index);
-		  }
-		  else if (left != null)
-		  {
-			Debug.Assert(right != null);
-			// Recurse:
-			left.addOutputs(index, range);
-			right.addOutputs(index, range);
-		  }
-		}
+            {
+                if (start >= range.minIncl && end <= range.maxIncl)
+                {
+                    // Our range is fully included in the incoming
+                    // range; add to our output list:
+                    if (outputs == null)
+                    {
+                        outputs = new List<int?>();
+                    }
+                    outputs.Add(index);
+                }
+                else if (left != null)
+                {
+                    Debug.Assert(right != null);
+                    // Recurse:
+                    left.addOutputs(index, range);
+                    right.addOutputs(index, range);
+                }
+            }
 
             internal void ToString(StringBuilder sb, int depth)
             {
@@ -381,5 +378,4 @@ namespace Lucene.Net.Facet.Range
             }
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Range/LongRangeFacetCounts.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Range/LongRangeFacetCounts.cs b/src/Lucene.Net.Facet/Range/LongRangeFacetCounts.cs
index 8435bbe..813757d 100644
--- a/src/Lucene.Net.Facet/Range/LongRangeFacetCounts.cs
+++ b/src/Lucene.Net.Facet/Range/LongRangeFacetCounts.cs
@@ -1,9 +1,7 @@
 using System.Collections.Generic;
-using Lucene.Net.Facet;
 
 namespace Lucene.Net.Facet.Range
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -21,15 +19,14 @@ namespace Lucene.Net.Facet.Range
      * limitations under the License.
      */
 
-
-    using MatchingDocs = FacetsCollector.MatchingDocs;
-    using FunctionValues = Lucene.Net.Queries.Function.FunctionValues;
-    using ValueSource = Lucene.Net.Queries.Function.ValueSource;
-    using LongFieldSource = Lucene.Net.Queries.Function.ValueSources.LongFieldSource;
-    using DocIdSet = Lucene.Net.Search.DocIdSet;
-    using Filter = Lucene.Net.Search.Filter;
     using Bits = Lucene.Net.Util.Bits;
+    using DocIdSet = Lucene.Net.Search.DocIdSet;
     using DocIdSetIterator = Lucene.Net.Search.DocIdSetIterator;
+    using Filter = Lucene.Net.Search.Filter;
+    using FunctionValues = Lucene.Net.Queries.Function.FunctionValues;
+    using LongFieldSource = Lucene.Net.Queries.Function.ValueSources.LongFieldSource;
+    using MatchingDocs = FacetsCollector.MatchingDocs;
+    using ValueSource = Lucene.Net.Queries.Function.ValueSource;
 
     /// <summary>
     /// <seealso cref="Facets"/> implementation that computes counts for
@@ -71,7 +68,8 @@ namespace Lucene.Net.Facet.Range
         ///  checked for the matching ranges.  The filter must be
         ///  random access (implement <seealso cref="DocIdSet#bits"/>). 
         /// </summary>
-        public LongRangeFacetCounts(string field, ValueSource valueSource, FacetsCollector hits, Filter fastMatchFilter, params LongRange[] ranges)
+        public LongRangeFacetCounts(string field, ValueSource valueSource, 
+            FacetsCollector hits, Filter fastMatchFilter, params LongRange[] ranges)
             : base(field, ranges, fastMatchFilter)
         {
             Count(valueSource, hits.GetMatchingDocs);
@@ -139,5 +137,4 @@ namespace Lucene.Net.Facet.Range
             TotCount -= missingCount;
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Range/Range.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Range/Range.cs b/src/Lucene.Net.Facet/Range/Range.cs
index 548b915..c207031 100644
--- a/src/Lucene.Net.Facet/Range/Range.cs
+++ b/src/Lucene.Net.Facet/Range/Range.cs
@@ -1,8 +1,5 @@
-using Lucene.Net.Facet;
-
-namespace Lucene.Net.Facet.Range
+namespace Lucene.Net.Facet.Range
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -20,10 +17,8 @@ namespace Lucene.Net.Facet.Range
      * limitations under the License.
      */
 
-    using ValueSource = Lucene.Net.Queries.Function.ValueSource;
     using Filter = Lucene.Net.Search.Filter;
-    using FilteredQuery = Lucene.Net.Search.FilteredQuery; // javadocs
-    using Lucene.Net.Search; // javadocs
+    using ValueSource = Lucene.Net.Queries.Function.ValueSource;
 
     /// <summary>
     /// Base class for a single labeled range.
@@ -86,5 +81,4 @@ namespace Lucene.Net.Facet.Range
             throw new System.ArgumentException("range \"" + Label + "\" matches nothing");
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Range/RangeFacetCounts.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Range/RangeFacetCounts.cs b/src/Lucene.Net.Facet/Range/RangeFacetCounts.cs
index 29e02fb..53a4d26 100644
--- a/src/Lucene.Net.Facet/Range/RangeFacetCounts.cs
+++ b/src/Lucene.Net.Facet/Range/RangeFacetCounts.cs
@@ -1,10 +1,7 @@
 using System.Collections.Generic;
-using Lucene.Net.Facet;
-using Lucene.Net.Support;
 
 namespace Lucene.Net.Facet.Range
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -22,7 +19,6 @@ namespace Lucene.Net.Facet.Range
      * limitations under the License.
      */
 
-
     using Filter = Lucene.Net.Search.Filter;
 
     /// <summary>
@@ -95,5 +91,4 @@ namespace Lucene.Net.Facet.Range
             return new[] { GetTopChildren(topN, null) };
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/SortedSet/DefaultSortedSetDocValuesReaderState.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/SortedSet/DefaultSortedSetDocValuesReaderState.cs b/src/Lucene.Net.Facet/SortedSet/DefaultSortedSetDocValuesReaderState.cs
index 8113d80..649135c 100644
--- a/src/Lucene.Net.Facet/SortedSet/DefaultSortedSetDocValuesReaderState.cs
+++ b/src/Lucene.Net.Facet/SortedSet/DefaultSortedSetDocValuesReaderState.cs
@@ -1,8 +1,7 @@
-using System.Collections.Generic;
-using Lucene.Net.Index;
+using Lucene.Net.Index;
 using Lucene.Net.Support;
 using Lucene.Net.Util;
-using Lucene.Net.Facet;
+using System.Collections.Generic;
 
 namespace Lucene.Net.Facet.SortedSet
 {
@@ -28,7 +27,6 @@ namespace Lucene.Net.Facet.SortedSet
     /// </summary>
     public class DefaultSortedSetDocValuesReaderState : SortedSetDocValuesReaderState
     {
-
         private readonly string field;
         private readonly AtomicReader topReader;
         private readonly int valueCount;
@@ -152,7 +150,5 @@ namespace Lucene.Net.Facet.SortedSet
                 return valueCount;
             }
         }
-
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesFacetCounts.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesFacetCounts.cs b/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesFacetCounts.cs
index 509b473..1039fff 100644
--- a/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesFacetCounts.cs
+++ b/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesFacetCounts.cs
@@ -4,7 +4,6 @@ using System.Linq;
 
 namespace Lucene.Net.Facet.SortedSet
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -22,18 +21,13 @@ namespace Lucene.Net.Facet.SortedSet
      * limitations under the License.
      */
 
-
-    using MatchingDocs = FacetsCollector.MatchingDocs;
-    using OrdRange = Lucene.Net.Facet.SortedSet.SortedSetDocValuesReaderState.OrdRange;
-    using AtomicReader = Lucene.Net.Index.AtomicReader;
+    using BytesRef = Lucene.Net.Util.BytesRef;
+    using DocIdSetIterator = Lucene.Net.Search.DocIdSetIterator;
     using IndexReader = Lucene.Net.Index.IndexReader;
     using MultiDocValues = Lucene.Net.Index.MultiDocValues;
-    using MultiSortedSetDocValues = Lucene.Net.Index.MultiDocValues.MultiSortedSetDocValues;
+    using OrdRange = Lucene.Net.Facet.SortedSet.SortedSetDocValuesReaderState.OrdRange;
     using ReaderUtil = Lucene.Net.Index.ReaderUtil;
     using SortedSetDocValues = Lucene.Net.Index.SortedSetDocValues;
-    using DocIdSetIterator = Lucene.Net.Search.DocIdSetIterator;
-    using BytesRef = Lucene.Net.Util.BytesRef;
-    using LongValues = Lucene.Net.Util.LongValues;
 
     /// <summary>
     /// Compute facets counts from previously
@@ -58,7 +52,6 @@ namespace Lucene.Net.Facet.SortedSet
     /// </summary>
     public class SortedSetDocValuesFacetCounts : Facets
     {
-
         internal readonly SortedSetDocValuesReaderState state;
         internal readonly SortedSetDocValues dv;
         internal readonly string field;
@@ -98,7 +91,6 @@ namespace Lucene.Net.Facet.SortedSet
 
         private FacetResult GetDim(string dim, OrdRange ordRange, int topN)
         {
-
             TopOrdAndIntQueue q = null;
 
             int bottomCount = 0;
@@ -180,7 +172,6 @@ namespace Lucene.Net.Facet.SortedSet
 
             foreach (FacetsCollector.MatchingDocs hits in matchingDocs)
             {
-
                 var reader = hits.context.AtomicReader;
                 //System.out.println("  reader=" + reader);
                 // LUCENE-5090: make sure the provided reader context "matches"
@@ -301,7 +292,6 @@ namespace Lucene.Net.Facet.SortedSet
 
         public override IList<FacetResult> GetAllDims(int topN)
         {
-
             IList<FacetResult> results = new List<FacetResult>();
             foreach (KeyValuePair<string, OrdRange> ent in state.PrefixToOrdRange)
             {
@@ -344,5 +334,4 @@ namespace Lucene.Net.Facet.SortedSet
             }
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesFacetField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesFacetField.cs b/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesFacetField.cs
index c860d56..3729583 100644
--- a/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesFacetField.cs
+++ b/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesFacetField.cs
@@ -1,6 +1,5 @@
 namespace Lucene.Net.Facet.SortedSet
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -27,7 +26,6 @@
     /// </summary>
     public class SortedSetDocValuesFacetField : Field
     {
-
         /// <summary>
         /// Indexed <seealso cref="FieldType"/>. </summary>
         public static readonly FieldType TYPE = new FieldType();
@@ -61,5 +59,4 @@
             return "SortedSetDocValuesFacetField(dim=" + Dim + " label=" + Label + ")";
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesReaderState.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesReaderState.cs b/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesReaderState.cs
index ef7e0fe..2b3c2b1 100644
--- a/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesReaderState.cs
+++ b/src/Lucene.Net.Facet/SortedSet/SortedSetDocValuesReaderState.cs
@@ -2,7 +2,6 @@
 
 namespace Lucene.Net.Facet.SortedSet
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -20,7 +19,6 @@ namespace Lucene.Net.Facet.SortedSet
      * limitations under the License.
      */
 
-
     using IndexReader = Lucene.Net.Index.IndexReader;
     using SortedSetDocValues = Lucene.Net.Index.SortedSetDocValues;
 
@@ -42,10 +40,8 @@ namespace Lucene.Net.Facet.SortedSet
     ///  for a given <seealso cref="IndexReader"/>. 
     /// </para>
     /// </summary>
-
     public abstract class SortedSetDocValuesReaderState
     {
-
         /// <summary>
         /// Holds start/end range of ords, which maps to one
         ///  dimension (someday we may generalize it to map to
@@ -99,5 +95,4 @@ namespace Lucene.Net.Facet.SortedSet
         /// Number of unique labels. </summary>
         public abstract int Size { get; }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/AssociationFacetField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/AssociationFacetField.cs b/src/Lucene.Net.Facet/Taxonomy/AssociationFacetField.cs
index 6113eef..6092f9a 100644
--- a/src/Lucene.Net.Facet/Taxonomy/AssociationFacetField.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/AssociationFacetField.cs
@@ -1,9 +1,7 @@
-using Lucene.Net.Facet;
-using Lucene.Net.Support;
+using Lucene.Net.Support;
 
 namespace Lucene.Net.Facet.Taxonomy
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -21,10 +19,10 @@ namespace Lucene.Net.Facet.Taxonomy
      * limitations under the License.
      */
 
+    using BytesRef = Lucene.Net.Util.BytesRef;
     using Document = Lucene.Net.Documents.Document; // javadocs
     using Field = Lucene.Net.Documents.Field;
     using FieldType = Lucene.Net.Documents.FieldType;
-    using BytesRef = Lucene.Net.Util.BytesRef;
 
     /// <summary>
     /// Add an instance of this to your <seealso cref="Document"/> to add
@@ -39,7 +37,6 @@ namespace Lucene.Net.Facet.Taxonomy
     /// </summary>
     public class AssociationFacetField : Field
     {
-
         /// <summary>
         /// Indexed <seealso cref="FieldType"/>. </summary>
         public static readonly FieldType TYPE = new FieldType();
@@ -87,5 +84,4 @@ namespace Lucene.Net.Facet.Taxonomy
             return "AssociationFacetField(dim=" + dim + " path=" + Arrays.ToString(path) + " bytes=" + assoc + ")";
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/CachedOrdinalsReader.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/CachedOrdinalsReader.cs b/src/Lucene.Net.Facet/Taxonomy/CachedOrdinalsReader.cs
index 0471f65..70bbd26 100644
--- a/src/Lucene.Net.Facet/Taxonomy/CachedOrdinalsReader.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/CachedOrdinalsReader.cs
@@ -1,11 +1,10 @@
-using System;
+using Lucene.Net.Support;
+using System;
 using System.Collections.Generic;
 using System.Threading;
-using Lucene.Net.Support;
 
 namespace Lucene.Net.Facet.Taxonomy
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -23,12 +22,11 @@ namespace Lucene.Net.Facet.Taxonomy
      * limitations under the License.
      */
 
-
-    using DocValuesFormat = Lucene.Net.Codecs.DocValuesFormat;
-    using AtomicReaderContext = Lucene.Net.Index.AtomicReaderContext;
     using BinaryDocValues = Lucene.Net.Index.BinaryDocValues;
     using Accountable = Lucene.Net.Util.Accountable;
     using ArrayUtil = Lucene.Net.Util.ArrayUtil;
+    using DocValuesFormat = Lucene.Net.Codecs.DocValuesFormat;
+    using AtomicReaderContext = Lucene.Net.Index.AtomicReaderContext;
     using IntsRef = Lucene.Net.Util.IntsRef;
     using RamUsageEstimator = Lucene.Net.Util.RamUsageEstimator;
 
@@ -62,7 +60,6 @@ namespace Lucene.Net.Facet.Taxonomy
     /// </summary>
     public class CachedOrdinalsReader : OrdinalsReader, Accountable
     {
-
         private readonly OrdinalsReader source;
 
         private readonly IDictionary<object, CachedOrds> ordsCache = new WeakDictionary<object, CachedOrds>();
@@ -128,7 +125,6 @@ namespace Lucene.Net.Facet.Taxonomy
         /// Holds the cached ordinals in two parallel {@code int[]} arrays. </summary>
         public sealed class CachedOrds : Accountable
         {
-
             /// <summary>
             /// Index into <seealso cref="#ordinals"/> for each document. </summary>
             public readonly int[] offsets;
@@ -204,5 +200,4 @@ namespace Lucene.Net.Facet.Taxonomy
             }
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/CategoryPath.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/CategoryPath.cs b/src/Lucene.Net.Facet/Taxonomy/CategoryPath.cs
index df69862..3709b58 100644
--- a/src/Lucene.Net.Facet/Taxonomy/CategoryPath.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/CategoryPath.cs
@@ -1,11 +1,10 @@
-using System;
+using Lucene.Net.Support;
+using System;
 using System.Diagnostics;
 using System.Text;
-using Lucene.Net.Support;
 
 namespace Lucene.Net.Facet.Taxonomy
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -23,7 +22,6 @@ namespace Lucene.Net.Facet.Taxonomy
      * limitations under the License.
      */
 
-
     /// <summary>
     /// Holds a sequence of string components, specifying the hierarchical name of a
     /// category.
@@ -32,7 +30,6 @@ namespace Lucene.Net.Facet.Taxonomy
     /// </summary>
     public class CategoryPath : IComparable<CategoryPath>
     {
-
         /// <summary>
         /// An empty <seealso cref="CategoryPath"/> </summary>
         public static readonly CategoryPath EMPTY = new CategoryPath();
@@ -154,7 +151,8 @@ namespace Lucene.Net.Facet.Taxonomy
 
         private void hasDelimiter(string offender, char delimiter)
         {
-            throw new System.ArgumentException("delimiter character '" + delimiter + "' (U+" + delimiter.ToString() + ") appears in path component \"" + offender + "\"");
+            throw new System.ArgumentException("delimiter character '" + delimiter + 
+                "' (U+" + delimiter.ToString() + ") appears in path component \"" + offender + "\"");
         }
 
         private void noDelimiter(char[] buf, int offset, int len, char delimiter)
@@ -310,7 +308,5 @@ namespace Lucene.Net.Facet.Taxonomy
             sb.Length = sb.Length - 1; // remove last delimiter
             return sb.ToString();
         }
-
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/Directory/Consts.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/Directory/Consts.cs b/src/Lucene.Net.Facet/Taxonomy/Directory/Consts.cs
index 5b69985..3660ff0 100644
--- a/src/Lucene.Net.Facet/Taxonomy/Directory/Consts.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/Directory/Consts.cs
@@ -1,8 +1,5 @@
 namespace Lucene.Net.Facet.Taxonomy.Directory
 {
-
-    using BytesRef = Lucene.Net.Util.BytesRef;
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -20,6 +17,8 @@
      * limitations under the License.
      */
 
+    using BytesRef = Lucene.Net.Util.BytesRef;
+
     /// <summary>
     /// @lucene.experimental
     /// </summary>
@@ -30,5 +29,4 @@
         internal const string PAYLOAD_PARENT = "p";
         internal static readonly BytesRef PAYLOAD_PARENT_BYTES_REF = new BytesRef(PAYLOAD_PARENT);
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/Directory/DirectoryTaxonomyReader.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/Directory/DirectoryTaxonomyReader.cs b/src/Lucene.Net.Facet/Taxonomy/Directory/DirectoryTaxonomyReader.cs
index da82cbf..e540a00 100644
--- a/src/Lucene.Net.Facet/Taxonomy/Directory/DirectoryTaxonomyReader.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/Directory/DirectoryTaxonomyReader.cs
@@ -2,22 +2,9 @@
 using System.Collections.Generic;
 using System.IO;
 using System.Text;
-using Lucene.Net.Store;
 
 namespace Lucene.Net.Facet.Taxonomy.Directory
 {
-    using Document = Lucene.Net.Documents.Document;
-    using Lucene.Net.Facet.Taxonomy;
-    using CorruptIndexException = Lucene.Net.Index.CorruptIndexException; // javadocs
-    using DirectoryReader = Lucene.Net.Index.DirectoryReader;
-    using DocsEnum = Lucene.Net.Index.DocsEnum;
-    using IndexWriter = Lucene.Net.Index.IndexWriter;
-    using MultiFields = Lucene.Net.Index.MultiFields;
-    using DocIdSetIterator = Lucene.Net.Search.DocIdSetIterator;
-    using Directory = Lucene.Net.Store.Directory;
-    using BytesRef = Lucene.Net.Util.BytesRef;
-    using IOUtils = Lucene.Net.Util.IOUtils;
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -35,6 +22,17 @@ namespace Lucene.Net.Facet.Taxonomy.Directory
      * limitations under the License.
      */
 
+    using Lucene.Net.Facet.Taxonomy;
+    using BytesRef = Lucene.Net.Util.BytesRef;
+    using Directory = Lucene.Net.Store.Directory;
+    using DirectoryReader = Lucene.Net.Index.DirectoryReader;
+    using DocIdSetIterator = Lucene.Net.Search.DocIdSetIterator;
+    using DocsEnum = Lucene.Net.Index.DocsEnum;
+    using Document = Lucene.Net.Documents.Document;
+    using IndexWriter = Lucene.Net.Index.IndexWriter;
+    using IOUtils = Lucene.Net.Util.IOUtils;
+    using MultiFields = Lucene.Net.Index.MultiFields;
+
     /// <summary>
     /// A <seealso cref="TaxonomyReader"/> which retrieves stored taxonomy information from a
     /// <seealso cref="Directory"/>.
@@ -49,7 +47,6 @@ namespace Lucene.Net.Facet.Taxonomy.Directory
     /// </summary>
     public class DirectoryTaxonomyReader : TaxonomyReader, IDisposable
     {
-
         public class IntClass
         {
             public int? IntItem { get; set; }
@@ -71,7 +68,9 @@ namespace Lucene.Net.Facet.Taxonomy.Directory
         /// recreated, you should pass {@code null} as the caches and parent/children
         /// arrays.
         /// </summary>
-        internal DirectoryTaxonomyReader(DirectoryReader indexReader, DirectoryTaxonomyWriter taxoWriter, LRUHashMap<FacetLabel, IntClass> ordinalCache, LRUHashMap<int, FacetLabel> categoryCache, TaxonomyIndexArrays taxoArrays)
+        internal DirectoryTaxonomyReader(DirectoryReader indexReader, DirectoryTaxonomyWriter taxoWriter, 
+            LRUHashMap<FacetLabel, IntClass> ordinalCache, LRUHashMap<int, FacetLabel> categoryCache, 
+            TaxonomyIndexArrays taxoArrays)
         {
             this.indexReader = indexReader;
             this.taxoWriter = taxoWriter;
@@ -439,5 +438,4 @@ namespace Lucene.Net.Facet.Taxonomy.Directory
             Dispose(true);
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/Directory/DirectoryTaxonomyWriter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/Directory/DirectoryTaxonomyWriter.cs b/src/Lucene.Net.Facet/Taxonomy/Directory/DirectoryTaxonomyWriter.cs
index 8ead122..c93d0e7 100644
--- a/src/Lucene.Net.Facet/Taxonomy/Directory/DirectoryTaxonomyWriter.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/Directory/DirectoryTaxonomyWriter.cs
@@ -1,50 +1,14 @@
-using System;
-using System.Collections;
-using System.Collections.Concurrent;
-using System.Diagnostics;
-using System.Collections.Generic;
-using System.IO;
-using Lucene.Net.Analysis.Tokenattributes;
+using Lucene.Net.Analysis.Tokenattributes;
 using Lucene.Net.Store;
 using Lucene.Net.Support;
 using Lucene.Net.Util;
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.IO;
 
 namespace Lucene.Net.Facet.Taxonomy.Directory
 {
-
-    using TokenStream = Lucene.Net.Analysis.TokenStream;
-    using CharTermAttribute = Lucene.Net.Analysis.Tokenattributes.CharTermAttribute;
-    using PositionIncrementAttribute = Lucene.Net.Analysis.Tokenattributes.PositionIncrementAttribute;
-    using Document = Lucene.Net.Documents.Document;
-    using Field = Lucene.Net.Documents.Field;
-    using FieldType = Lucene.Net.Documents.FieldType;
-    using StringField = Lucene.Net.Documents.StringField;
-    using TextField = Lucene.Net.Documents.TextField;
-    using TaxonomyWriterCache = Lucene.Net.Facet.Taxonomy.WriterCache.TaxonomyWriterCache;
-    using Cl2oTaxonomyWriterCache = Lucene.Net.Facet.Taxonomy.WriterCache.Cl2oTaxonomyWriterCache;
-    using LruTaxonomyWriterCache = Lucene.Net.Facet.Taxonomy.WriterCache.LruTaxonomyWriterCache;
-    using AtomicReader = Lucene.Net.Index.AtomicReader;
-    using AtomicReaderContext = Lucene.Net.Index.AtomicReaderContext;
-    using CorruptIndexException = Lucene.Net.Index.CorruptIndexException; // javadocs
-    using DirectoryReader = Lucene.Net.Index.DirectoryReader;
-    using DocsEnum = Lucene.Net.Index.DocsEnum;
-    using IndexReader = Lucene.Net.Index.IndexReader;
-    using IndexWriter = Lucene.Net.Index.IndexWriter;
-    using OpenMode = Lucene.Net.Index.IndexWriterConfig.OpenMode_e;
-    using IndexWriterConfig = Lucene.Net.Index.IndexWriterConfig;
-    using LogByteSizeMergePolicy = Lucene.Net.Index.LogByteSizeMergePolicy;
-    using ReaderManager = Lucene.Net.Index.ReaderManager;
-    using SegmentInfos = Lucene.Net.Index.SegmentInfos;
-    using Terms = Lucene.Net.Index.Terms;
-    using TermsEnum = Lucene.Net.Index.TermsEnum;
-    using TieredMergePolicy = Lucene.Net.Index.TieredMergePolicy;
-    using AlreadyClosedException = Lucene.Net.Store.AlreadyClosedException;
-    using Directory = Lucene.Net.Store.Directory;
-    using LockObtainFailedException = Lucene.Net.Store.LockObtainFailedException; // javadocs
-    using NativeFSLockFactory = Lucene.Net.Store.NativeFSLockFactory;
-    using SimpleFSLockFactory = Lucene.Net.Store.SimpleFSLockFactory;
-    using BytesRef = Lucene.Net.Util.BytesRef;
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -62,6 +26,33 @@ namespace Lucene.Net.Facet.Taxonomy.Directory
      * limitations under the License.
      */
 
+    using AlreadyClosedException = Lucene.Net.Store.AlreadyClosedException;
+    using AtomicReader = Lucene.Net.Index.AtomicReader;
+    using AtomicReaderContext = Lucene.Net.Index.AtomicReaderContext;
+    using LockObtainFailedException = Lucene.Net.Store.LockObtainFailedException; // javadocs
+    using BytesRef = Lucene.Net.Util.BytesRef;
+    using Cl2oTaxonomyWriterCache = Lucene.Net.Facet.Taxonomy.WriterCache.Cl2oTaxonomyWriterCache;
+    using Directory = Lucene.Net.Store.Directory;
+    using CorruptIndexException = Lucene.Net.Index.CorruptIndexException; // javadocs
+    using DirectoryReader = Lucene.Net.Index.DirectoryReader;
+    using DocsEnum = Lucene.Net.Index.DocsEnum;
+    using Document = Lucene.Net.Documents.Document;
+    using Field = Lucene.Net.Documents.Field;
+    using FieldType = Lucene.Net.Documents.FieldType;
+    using IndexWriter = Lucene.Net.Index.IndexWriter;
+    using IndexWriterConfig = Lucene.Net.Index.IndexWriterConfig;
+    using LogByteSizeMergePolicy = Lucene.Net.Index.LogByteSizeMergePolicy;
+    using OpenMode = Lucene.Net.Index.IndexWriterConfig.OpenMode_e;
+    using ReaderManager = Lucene.Net.Index.ReaderManager;
+    using SegmentInfos = Lucene.Net.Index.SegmentInfos;
+    using StringField = Lucene.Net.Documents.StringField;
+    using TaxonomyWriterCache = Lucene.Net.Facet.Taxonomy.WriterCache.TaxonomyWriterCache;
+    using Terms = Lucene.Net.Index.Terms;
+    using TermsEnum = Lucene.Net.Index.TermsEnum;
+    using TextField = Lucene.Net.Documents.TextField;
+    using TieredMergePolicy = Lucene.Net.Index.TieredMergePolicy;
+    using TokenStream = Lucene.Net.Analysis.TokenStream;
+
     /// <summary>
     /// <seealso cref="TaxonomyWriter"/> which uses a <seealso cref="Directory"/> to store the taxonomy
     /// information on disk, and keeps an additional in-memory cache of some or all
@@ -83,7 +74,6 @@ namespace Lucene.Net.Facet.Taxonomy.Directory
     /// </summary>
     public class DirectoryTaxonomyWriter : TaxonomyWriter
     {
-
         /// <summary>
         /// Property name of user commit data that contains the index epoch. The epoch
         /// changes whenever the taxonomy is recreated (i.e. opened with
@@ -184,9 +174,9 @@ namespace Lucene.Net.Facet.Taxonomy.Directory
         ///     removed using <seealso cref="#unlock(Directory)"/>. </exception>
         /// <exception cref="IOException">
         ///     if another error occurred. </exception>
-        public DirectoryTaxonomyWriter(Directory directory, OpenMode openMode, TaxonomyWriterCache cache)
+        public DirectoryTaxonomyWriter(Directory directory, OpenMode openMode, 
+            TaxonomyWriterCache cache)
         {
-
             dir = directory;
             IndexWriterConfig config = CreateIndexWriterConfig(openMode);
             indexWriter = OpenIndexWriter(dir, config);
@@ -1198,5 +1188,4 @@ namespace Lucene.Net.Facet.Taxonomy.Directory
             }
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/Directory/TaxonomyIndexArrays.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/Directory/TaxonomyIndexArrays.cs b/src/Lucene.Net.Facet/Taxonomy/Directory/TaxonomyIndexArrays.cs
index 9a99f4a..2319550 100644
--- a/src/Lucene.Net.Facet/Taxonomy/Directory/TaxonomyIndexArrays.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/Directory/TaxonomyIndexArrays.cs
@@ -3,14 +3,6 @@ using System.Diagnostics;
 
 namespace Lucene.Net.Facet.Taxonomy.Directory
 {
-
-    using CorruptIndexException = Lucene.Net.Index.CorruptIndexException;
-    using DocsAndPositionsEnum = Lucene.Net.Index.DocsAndPositionsEnum;
-    using IndexReader = Lucene.Net.Index.IndexReader;
-    using MultiFields = Lucene.Net.Index.MultiFields;
-    using DocIdSetIterator = Lucene.Net.Search.DocIdSetIterator;
-    using ArrayUtil = Lucene.Net.Util.ArrayUtil;
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -28,6 +20,13 @@ namespace Lucene.Net.Facet.Taxonomy.Directory
      * limitations under the License.
      */
 
+    using ArrayUtil = Lucene.Net.Util.ArrayUtil;
+    using CorruptIndexException = Lucene.Net.Index.CorruptIndexException;
+    using DocIdSetIterator = Lucene.Net.Search.DocIdSetIterator;
+    using DocsAndPositionsEnum = Lucene.Net.Index.DocsAndPositionsEnum;
+    using IndexReader = Lucene.Net.Index.IndexReader;
+    using MultiFields = Lucene.Net.Index.MultiFields;
+
     /// <summary>
     /// A <seealso cref="ParallelTaxonomyArrays"/> that are initialized from the taxonomy
     /// index.
@@ -36,7 +35,6 @@ namespace Lucene.Net.Facet.Taxonomy.Directory
     /// </summary>
     internal class TaxonomyIndexArrays : ParallelTaxonomyArrays
     {
-
         private readonly int[] parents_Renamed;
 
         // the following two arrays are lazily intialized. note that we only keep a
@@ -246,7 +244,5 @@ namespace Lucene.Net.Facet.Taxonomy.Directory
             // the array is guaranteed to be populated
             return siblings_Renamed;
         }
-
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/DocValuesOrdinalsReader.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/DocValuesOrdinalsReader.cs b/src/Lucene.Net.Facet/Taxonomy/DocValuesOrdinalsReader.cs
index 3d50275..3d5cc53 100644
--- a/src/Lucene.Net.Facet/Taxonomy/DocValuesOrdinalsReader.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/DocValuesOrdinalsReader.cs
@@ -1,6 +1,5 @@
 namespace Lucene.Net.Facet.Taxonomy
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -18,11 +17,11 @@
      * limitations under the License.
      */
 
+    using ArrayUtil = Lucene.Net.Util.ArrayUtil;
     using AtomicReaderContext = Lucene.Net.Index.AtomicReaderContext;
     using BinaryDocValues = Lucene.Net.Index.BinaryDocValues;
-    using DocValues = Lucene.Net.Index.DocValues;
-    using ArrayUtil = Lucene.Net.Util.ArrayUtil;
     using BytesRef = Lucene.Net.Util.BytesRef;
+    using DocValues = Lucene.Net.Index.DocValues;
     using IntsRef = Lucene.Net.Util.IntsRef;
 
     /// <summary>
@@ -126,5 +125,4 @@
             }
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/FacetLabel.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/FacetLabel.cs b/src/Lucene.Net.Facet/Taxonomy/FacetLabel.cs
index 9a6884c..94eb2d6 100644
--- a/src/Lucene.Net.Facet/Taxonomy/FacetLabel.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/FacetLabel.cs
@@ -1,10 +1,9 @@
-using System;
+using Lucene.Net.Support;
+using System;
 using System.Diagnostics;
-using Lucene.Net.Support;
 
 namespace Lucene.Net.Facet.Taxonomy
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -220,5 +219,4 @@ namespace Lucene.Net.Facet.Taxonomy
             return "FacetLabel: [" + Arrays.ToString(parts) + "]";
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/FastTaxonomyFacetCounts.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/FastTaxonomyFacetCounts.cs b/src/Lucene.Net.Facet/Taxonomy/FastTaxonomyFacetCounts.cs
index f0d5fa0..f54b70b 100644
--- a/src/Lucene.Net.Facet/Taxonomy/FastTaxonomyFacetCounts.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/FastTaxonomyFacetCounts.cs
@@ -1,10 +1,7 @@
 using System.Collections.Generic;
-using Lucene.Net.Facet;
-using Lucene.Net.Search;
 
 namespace Lucene.Net.Facet.Taxonomy
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -22,11 +19,10 @@ namespace Lucene.Net.Facet.Taxonomy
      * limitations under the License.
      */
 
-
     using MatchingDocs = FacetsCollector.MatchingDocs;
     using BinaryDocValues = Lucene.Net.Index.BinaryDocValues;
-    using DocIdSetIterator = Lucene.Net.Search.DocIdSetIterator;
     using BytesRef = Lucene.Net.Util.BytesRef;
+    using DocIdSetIterator = Lucene.Net.Search.DocIdSetIterator;
 
     /// <summary>
     /// Computes facets counts, assuming the default encoding
@@ -36,7 +32,6 @@ namespace Lucene.Net.Facet.Taxonomy
     /// </summary>
     public class FastTaxonomyFacetCounts : IntTaxonomyFacets
     {
-
         /// <summary>
         /// Create {@code FastTaxonomyFacetCounts}, which also
         ///  counts all facet labels. 
@@ -75,7 +70,7 @@ namespace Lucene.Net.Facet.Taxonomy
                 BytesRef bytesRef = new BytesRef();
                 while ((doc = docs.NextDoc()) != DocIdSetIterator.NO_MORE_DOCS)
                 {
-                    dv.Get(doc,bytesRef);
+                    dv.Get(doc, bytesRef);
                     var bytes = bytesRef.Bytes;
                     int end = bytesRef.Offset + bytesRef.Length;
                     int ord = 0;
@@ -101,5 +96,4 @@ namespace Lucene.Net.Facet.Taxonomy
             Rollup();
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/FloatAssociationFacetField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/FloatAssociationFacetField.cs b/src/Lucene.Net.Facet/Taxonomy/FloatAssociationFacetField.cs
index 54e8ef2..a1e6c88 100644
--- a/src/Lucene.Net.Facet/Taxonomy/FloatAssociationFacetField.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/FloatAssociationFacetField.cs
@@ -3,8 +3,7 @@ using System.Globalization;
 
 namespace Lucene.Net.Facet.Taxonomy
 {
-
-	/*
+    /*
 	 * Licensed to the Apache Software Foundation (ASF) under one or more
 	 * contributor license agreements.  See the NOTICE file distributed with
 	 * this work for additional information regarding copyright ownership.
@@ -21,46 +20,46 @@ namespace Lucene.Net.Facet.Taxonomy
 	 * limitations under the License.
 	 */
 
-	using Document = Lucene.Net.Documents.Document;
-	using BytesRef = Lucene.Net.Util.BytesRef;
-
-	/// <summary>
-	/// Add an instance of this to your <seealso cref="Document"/> to add
-	///  a facet label associated with a float.  Use {@link
-	///  TaxonomyFacetSumFloatAssociations} to aggregate float values
-	///  per facet label at search time.
-	/// 
-	///  @lucene.experimental 
-	/// </summary>
-	public class FloatAssociationFacetField : AssociationFacetField
-	{
-
-	  /// <summary>
-	  /// Creates this from {@code dim} and {@code path} and a
-	  ///  float association 
-	  /// </summary>
-	  public FloatAssociationFacetField(float assoc, string dim, params string[] path) : base(floatToBytesRef(assoc), dim, path)
-	  {
-	  }
+    using BytesRef = Lucene.Net.Util.BytesRef;
+    using Document = Lucene.Net.Documents.Document;
 
-	  /// <summary>
-	  /// Encodes a {@code float} as a 4-byte <seealso cref="BytesRef"/>. </summary>
-	  public static BytesRef floatToBytesRef(float v)
-	  {
-		return IntAssociationFacetField.intToBytesRef(Number.FloatToIntBits(v));
-	  }
+    /// <summary>
+    /// Add an instance of this to your <seealso cref="Document"/> to add
+    ///  a facet label associated with a float.  Use {@link
+    ///  TaxonomyFacetSumFloatAssociations} to aggregate float values
+    ///  per facet label at search time.
+    /// 
+    ///  @lucene.experimental 
+    /// </summary>
+    public class FloatAssociationFacetField : AssociationFacetField
+    {
+        /// <summary>
+        /// Creates this from {@code dim} and {@code path} and a
+        ///  float association 
+        /// </summary>
+        public FloatAssociationFacetField(float assoc, string dim, params string[] path) 
+            : base(floatToBytesRef(assoc), dim, path)
+        {
+        }
 
-	  /// <summary>
-	  /// Decodes a previously encoded {@code float}. </summary>
-	  public static float bytesRefToFloat(BytesRef b)
-	  {
-		return Number.IntBitsToFloat(IntAssociationFacetField.bytesRefToInt(b));
-	  }
+        /// <summary>
+        /// Encodes a {@code float} as a 4-byte <seealso cref="BytesRef"/>. </summary>
+        public static BytesRef floatToBytesRef(float v)
+        {
+            return IntAssociationFacetField.intToBytesRef(Number.FloatToIntBits(v));
+        }
 
-	  public override string ToString()
-	  {
-		return "FloatAssociationFacetField(dim=" + dim + " path=" + Arrays.ToString(path) + " value=" + bytesRefToFloat(assoc).ToString("0.0#####", CultureInfo.InvariantCulture) + ")";
-	  }
-	}
+        /// <summary>
+        /// Decodes a previously encoded {@code float}. </summary>
+        public static float bytesRefToFloat(BytesRef b)
+        {
+            return Number.IntBitsToFloat(IntAssociationFacetField.bytesRefToInt(b));
+        }
 
+        public override string ToString()
+        {
+            return "FloatAssociationFacetField(dim=" + dim + " path=" + Arrays.ToString(path) + 
+                " value=" + bytesRefToFloat(assoc).ToString("0.0#####", CultureInfo.InvariantCulture) + ")";
+        }
+    }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/FloatTaxonomyFacets.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/FloatTaxonomyFacets.cs b/src/Lucene.Net.Facet/Taxonomy/FloatTaxonomyFacets.cs
index 3921540..e0b3688 100644
--- a/src/Lucene.Net.Facet/Taxonomy/FloatTaxonomyFacets.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/FloatTaxonomyFacets.cs
@@ -1,10 +1,9 @@
 using System;
-using System.Diagnostics;
 using System.Collections.Generic;
+using System.Diagnostics;
 
 namespace Lucene.Net.Facet.Taxonomy
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -30,7 +29,6 @@ namespace Lucene.Net.Facet.Taxonomy
     /// </summary>
     public abstract class FloatTaxonomyFacets : TaxonomyFacets
     {
-
         /// <summary>
         /// Per-ordinal value. </summary>
         protected readonly float[] values;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/IntAssociationFacetField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/IntAssociationFacetField.cs b/src/Lucene.Net.Facet/Taxonomy/IntAssociationFacetField.cs
index 61d8177..417fbd6 100644
--- a/src/Lucene.Net.Facet/Taxonomy/IntAssociationFacetField.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/IntAssociationFacetField.cs
@@ -2,7 +2,6 @@
 
 namespace Lucene.Net.Facet.Taxonomy
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -20,8 +19,8 @@ namespace Lucene.Net.Facet.Taxonomy
      * limitations under the License.
      */
 
-    using Document = Lucene.Net.Documents.Document;
     using BytesRef = Lucene.Net.Util.BytesRef;
+    using Document = Lucene.Net.Documents.Document;
 
     /// <summary>
     /// Add an instance of this to your <seealso cref="Document"/> to add
@@ -33,7 +32,6 @@ namespace Lucene.Net.Facet.Taxonomy
     /// </summary>
     public class IntAssociationFacetField : AssociationFacetField
     {
-
         /// <summary>
         /// Creates this from {@code dim} and {@code path} and an
         ///  int association 
@@ -49,7 +47,7 @@ namespace Lucene.Net.Facet.Taxonomy
         /// </summary>
         public static BytesRef intToBytesRef(int v)
         {
-            
+
             byte[] bytes = new byte[4];
             // big-endian:
             bytes[0] = (byte)(v >> 24);
@@ -63,7 +61,8 @@ namespace Lucene.Net.Facet.Taxonomy
         /// Decodes a previously encoded {@code int}. </summary>
         public static int bytesRefToInt(BytesRef b)
         {
-            return ((b.Bytes[b.Offset] & 0xFF) << 24) | ((b.Bytes[b.Offset + 1] & 0xFF) << 16) | ((b.Bytes[b.Offset + 2] & 0xFF) << 8) | (b.Bytes[b.Offset + 3] & 0xFF);
+            return ((b.Bytes[b.Offset] & 0xFF) << 24) | ((b.Bytes[b.Offset + 1] & 0xFF) << 16) | 
+                ((b.Bytes[b.Offset + 2] & 0xFF) << 8) | (b.Bytes[b.Offset + 3] & 0xFF);
         }
 
         public override string ToString()
@@ -71,5 +70,4 @@ namespace Lucene.Net.Facet.Taxonomy
             return "IntAssociationFacetField(dim=" + dim + " path=" + Arrays.ToString(path) + " value=" + bytesRefToInt(assoc) + ")";
         }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/IntTaxonomyFacets.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/IntTaxonomyFacets.cs b/src/Lucene.Net.Facet/Taxonomy/IntTaxonomyFacets.cs
index f73f167..11f76f0 100644
--- a/src/Lucene.Net.Facet/Taxonomy/IntTaxonomyFacets.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/IntTaxonomyFacets.cs
@@ -3,7 +3,6 @@ using System.Collections.Generic;
 
 namespace Lucene.Net.Facet.Taxonomy
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -21,7 +20,6 @@ namespace Lucene.Net.Facet.Taxonomy
      * limitations under the License.
      */
 
-
     using DimConfig = Lucene.Net.Facet.FacetsConfig.DimConfig;
 
     /// <summary>
@@ -31,7 +29,6 @@ namespace Lucene.Net.Facet.Taxonomy
 
     public abstract class IntTaxonomyFacets : TaxonomyFacets
     {
-
         /// <summary>
         /// Per-ordinal value. </summary>
         protected internal readonly int[] values;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/OrdinalsReader.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/OrdinalsReader.cs b/src/Lucene.Net.Facet/Taxonomy/OrdinalsReader.cs
index 544a1ef..c8e4843 100644
--- a/src/Lucene.Net.Facet/Taxonomy/OrdinalsReader.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/OrdinalsReader.cs
@@ -1,6 +1,5 @@
 namespace Lucene.Net.Facet.Taxonomy
 {
-
     /*
      * Licensed to the Apache Software Foundation (ASF) under one or more
      * contributor license agreements.  See the NOTICE file distributed with
@@ -27,7 +26,6 @@
 
     public abstract class OrdinalsReader
     {
-
         /// <summary>
         /// Returns ordinals for documents in one segment. </summary>
         public abstract class OrdinalsSegmentReader
@@ -64,5 +62,4 @@
         /// </summary>
         public abstract string IndexFieldName { get; }
     }
-
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ae225b9e/src/Lucene.Net.Facet/Taxonomy/ParallelTaxonomyArrays.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/ParallelTaxonomyArrays.cs b/src/Lucene.Net.Facet/Taxonomy/ParallelTaxonomyArrays.cs
index 26f1d8a..60e351e 100644
--- a/src/Lucene.Net.Facet/Taxonomy/ParallelTaxonomyArrays.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/ParallelTaxonomyArrays.cs
@@ -1,8 +1,6 @@
 namespace Lucene.Net.Facet.Taxonomy
 {
-
-
-	/*
+    /*
 	 * Licensed to the Apache Software Foundation (ASF) under one or more
 	 * contributor license agreements.  See the NOTICE file distributed with
 	 * this work for additional information regarding copyright ownership.
@@ -19,56 +17,53 @@
 	 * limitations under the License.
 	 */
 
-	/// <summary>
-	/// Returns 3 arrays for traversing the taxonomy:
-	/// <ul>
-	/// <li>{@code parents}: {@code parents[i]} denotes the parent of category
-	/// ordinal {@code i}.</li>
-	/// <li>{@code children}: {@code children[i]} denotes a child of category ordinal
-	/// {@code i}.</li>
-	/// <li>{@code siblings}: {@code siblings[i]} denotes the sibling of category
-	/// ordinal {@code i}.</li>
-	/// </ul>
-	/// 
-	/// To traverse the taxonomy tree, you typically start with {@code children[0]}
-	/// (ordinal 0 is reserved for ROOT), and then depends if you want to do DFS or
-	/// BFS, you call {@code children[children[0]]} or {@code siblings[children[0]]}
-	/// and so forth, respectively.
-	/// 
-	/// <para>
-	/// <b>NOTE:</b> you are not expected to modify the values of the arrays, since
-	/// the arrays are shared with other threads.
-	/// 
-	/// @lucene.experimental
-	/// </para>
-	/// </summary>
-	public abstract class ParallelTaxonomyArrays
-	{
-
-	  /// <summary>
-	  /// Sole constructor. </summary>
-	  public ParallelTaxonomyArrays()
-	  {
-	  }
-
-	  /// <summary>
-	  /// Returns the parents array, where {@code parents[i]} denotes the parent of
-	  /// category ordinal {@code i}.
-	  /// </summary>
-	  public abstract int[] Parents();
-
-	  /// <summary>
-	  /// Returns the children array, where {@code children[i]} denotes a child of
-	  /// category ordinal {@code i}.
-	  /// </summary>
-	  public abstract int[] Children();
+    /// <summary>
+    /// Returns 3 arrays for traversing the taxonomy:
+    /// <ul>
+    /// <li>{@code parents}: {@code parents[i]} denotes the parent of category
+    /// ordinal {@code i}.</li>
+    /// <li>{@code children}: {@code children[i]} denotes a child of category ordinal
+    /// {@code i}.</li>
+    /// <li>{@code siblings}: {@code siblings[i]} denotes the sibling of category
+    /// ordinal {@code i}.</li>
+    /// </ul>
+    /// 
+    /// To traverse the taxonomy tree, you typically start with {@code children[0]}
+    /// (ordinal 0 is reserved for ROOT), and then depends if you want to do DFS or
+    /// BFS, you call {@code children[children[0]]} or {@code siblings[children[0]]}
+    /// and so forth, respectively.
+    /// 
+    /// <para>
+    /// <b>NOTE:</b> you are not expected to modify the values of the arrays, since
+    /// the arrays are shared with other threads.
+    /// 
+    /// @lucene.experimental
+    /// </para>
+    /// </summary>
+    public abstract class ParallelTaxonomyArrays
+    {
+        /// <summary>
+        /// Sole constructor. </summary>
+        public ParallelTaxonomyArrays()
+        {
+        }
 
-	  /// <summary>
-	  /// Returns the siblings array, where {@code siblings[i]} denotes the sibling
-	  /// of category ordinal {@code i}.
-	  /// </summary>
-	  public abstract int[] Siblings();
+        /// <summary>
+        /// Returns the parents array, where {@code parents[i]} denotes the parent of
+        /// category ordinal {@code i}.
+        /// </summary>
+        public abstract int[] Parents();
 
-	}
+        /// <summary>
+        /// Returns the children array, where {@code children[i]} denotes a child of
+        /// category ordinal {@code i}.
+        /// </summary>
+        public abstract int[] Children();
 
+        /// <summary>
+        /// Returns the siblings array, where {@code siblings[i]} denotes the sibling
+        /// of category ordinal {@code i}.
+        /// </summary>
+        public abstract int[] Siblings();
+    }
 }
\ No newline at end of file


Mime
View raw message