mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject svn commit: r792856 [1/13] - in /lucene/mahout/trunk/core/src: main/java/org/apache/mahout/cf/taste/common/ main/java/org/apache/mahout/cf/taste/eval/ main/java/org/apache/mahout/cf/taste/hadoop/ main/java/org/apache/mahout/cf/taste/impl/common/ main/j...
Date Fri, 10 Jul 2009 09:35:28 GMT
Author: srowen
Date: Fri Jul 10 09:35:19 2009
New Revision: 792856

URL: http://svn.apache.org/viewvc?rev=792856&view=rev
Log:
Massive code formatting/style change, implementing tentatively agreed code style across the code base

Added:
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/eval/LoadEvaluator.java
      - copied, changed from r792131, lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/eval/GenericRecommenderIRStatsEvaluator.java
Modified:
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/common/Refreshable.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/common/TasteException.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/common/Weighting.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/eval/IRStatistics.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/eval/RecommenderBuilder.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/eval/RecommenderEvaluator.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/eval/RecommenderIRStatsEvaluator.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/ItemItemWritable.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/ItemPrefWritable.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/RecommendedItemsWritable.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/ReducerMetrics.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/ArrayIterator.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/BitSet.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/Cache.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/CompactRunningAverage.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/CompactRunningAverageAndStdDev.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/EmptyIterable.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/EmptyIterator.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FastMap.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FastSet.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FileLineIterable.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FileLineIterator.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FullRunningAverage.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FullRunningAverageAndStdDev.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/IOUtils.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/IteratorIterable.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/IteratorUtils.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/Pair.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/PermutingIterator.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/RandomUtils.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/RefreshHelper.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/Retriever.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/RunningAverage.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/RunningAverageAndStdDev.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/SamplingIterable.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/SamplingIterator.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/SkippingIterator.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/WeightedRunningAverage.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/eval/AbstractDifferenceRecommenderEvaluator.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/eval/AverageAbsoluteDifferenceRecommenderEvaluator.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/eval/GenericRecommenderIRStatsEvaluator.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/eval/RMSRecommenderEvaluator.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/BooleanPrefUser.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/BooleanPreference.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/ByItemPreferenceComparator.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/ByUserPreferenceComparator.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/ByValuePreferenceComparator.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/DetailedPreference.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/GenericDataModel.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/GenericItem.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/GenericPreference.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/GenericPreferenceArray.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/GenericUser.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/SettableUserPreference.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/file/FileDataModel.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/jdbc/AbstractBooleanPrefJDBCDataModel.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/jdbc/ConnectionPoolDataSource.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/jdbc/MySQLBooleanPrefJDBCDataModel.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/jdbc/MySQLJDBCDataModel.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/neighborhood/AbstractUserNeighborhood.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/neighborhood/CachingUserNeighborhood.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/neighborhood/NearestNUserNeighborhood.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/neighborhood/ThresholdUserNeighborhood.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/AbstractRecommender.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/BooleanUserGenericUserBasedRecommender.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/ByRescoreComparator.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/CachingRecommender.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/ClusterSimilarity.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/FarthestNeighborClusterSimilarity.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/GenericItemBasedRecommender.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/GenericRecommendedItem.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/GenericUserBasedRecommender.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/ItemAverageRecommender.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/ItemUserAverageRecommender.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/NearestNeighborClusterSimilarity.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/NullRescorer.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/SimilarUser.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/TopItems.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/TreeClusteringRecommender.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/TreeClusteringRecommender2.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/knn/ConjugateGradientOptimizer.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/knn/KnnItemBasedRecommender.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/knn/NonNegativeQuadraticOptimizer.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/slopeone/MemoryDiffStorage.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/slopeone/SlopeOneRecommender.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/slopeone/jdbc/AbstractJDBCDiffStorage.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/slopeone/jdbc/MySQLJDBCDiffStorage.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/svd/ExpectationMaximizationSVD.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/recommender/svd/SVDRecommender.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/similarity/AbstractSimilarity.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/similarity/AveragingPreferenceInferrer.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/similarity/BooleanLogLikelihoodSimilarity.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/similarity/BooleanTanimotoCoefficientSimilarity.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/similarity/CachingItemSimilarity.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/similarity/CachingUserSimilarity.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/similarity/EuclideanDistanceSimilarity.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/similarity/GenericItemSimilarity.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/similarity/GenericUserSimilarity.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/similarity/LogLikelihoodSimilarity.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/similarity/PearsonCorrelationSimilarity.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/similarity/SpearmanCorrelationSimilarity.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/similarity/TanimotoCoefficientSimilarity.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/transforms/CaseAmplification.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/transforms/Counters.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/transforms/InverseUserFrequency.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/transforms/ZScore.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/model/DataModel.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/model/Item.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/model/JDBCDataModel.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/model/Preference.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/model/PreferenceArray.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/model/User.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/neighborhood/UserNeighborhood.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/recommender/ClusteringRecommender.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/recommender/ItemBasedRecommender.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/recommender/RecommendedItem.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/recommender/Recommender.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/recommender/Rescorer.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/recommender/UserBasedRecommender.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/recommender/slopeone/DiffStorage.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/similarity/ItemSimilarity.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/similarity/PreferenceInferrer.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/similarity/UserSimilarity.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/transforms/PreferenceTransform.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/transforms/SimilarityTransform.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/BayesFileFormatter.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/ClassifierResult.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/Classify.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/ConfusionMatrix.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/ResultAnalyzer.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/BayesClassifier.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/BayesDriver.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/BayesModel.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/BayesThetaNormalizerDriver.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/BayesThetaNormalizerMapper.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/BayesThetaNormalizerReducer.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/common/BayesFeatureDriver.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/common/BayesFeatureMapper.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/common/BayesFeatureOutputFormat.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/common/BayesFeatureReducer.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/common/BayesTfIdfDriver.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/common/BayesTfIdfMapper.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/common/BayesTfIdfOutputFormat.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/common/BayesTfIdfReducer.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/common/BayesWeightSummerDriver.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/common/BayesWeightSummerMapper.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/common/BayesWeightSummerOutputFormat.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/common/BayesWeightSummerReducer.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/io/SequenceFileModelReader.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/package.html
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/cbayes/CBayesClassifier.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/cbayes/CBayesDriver.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/cbayes/CBayesModel.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/cbayes/CBayesNormalizedWeightDriver.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/cbayes/CBayesNormalizedWeightMapper.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/cbayes/CBayesNormalizedWeightReducer.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/cbayes/CBayesThetaDriver.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/cbayes/CBayesThetaMapper.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/cbayes/CBayesThetaNormalizerDriver.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/cbayes/CBayesThetaNormalizerMapper.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/cbayes/CBayesThetaNormalizerReducer.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/cbayes/CBayesThetaReducer.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/ClusterBase.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/canopy/Canopy.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/canopy/CanopyClusteringJob.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/canopy/CanopyDriver.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/canopy/CanopyMapper.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/canopy/CanopyReducer.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/canopy/ClusterDriver.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/canopy/ClusterMapper.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/DirichletCluster.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/DirichletClusterer.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/DirichletCombiner.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/DirichletDriver.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/DirichletJob.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/DirichletMapper.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/DirichletReducer.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/DirichletState.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/JsonDirichletStateAdapter.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/JsonModelAdapter.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/JsonModelDistributionAdapter.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/UncommonDistributions.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/models/AsymmetricSampledNormalDistribution.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/models/AsymmetricSampledNormalModel.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/models/Model.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/models/ModelDistribution.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/models/NormalModel.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/models/NormalModelDistribution.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/models/SampledNormalDistribution.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/dirichlet/models/SampledNormalModel.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/fuzzykmeans/FuzzyKMeansClusterMapper.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/fuzzykmeans/FuzzyKMeansCombiner.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/fuzzykmeans/FuzzyKMeansDriver.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/fuzzykmeans/FuzzyKMeansInfo.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/fuzzykmeans/FuzzyKMeansJob.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/fuzzykmeans/FuzzyKMeansMapper.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/fuzzykmeans/FuzzyKMeansReducer.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/fuzzykmeans/FuzzyKMeansUtil.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/fuzzykmeans/SoftCluster.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/kmeans/Cluster.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansClusterMapper.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansCombiner.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansDriver.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansInfo.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansMapper.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansReducer.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansUtil.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/kmeans/RandomSeedGenerator.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/meanshift/MeanShiftCanopy.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/meanshift/MeanShiftCanopyDriver.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/meanshift/MeanShiftCanopyJob.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/meanshift/MeanShiftCanopyMapper.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/meanshift/MeanShiftCanopyReducer.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/common/Classifier.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/common/Model.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/common/Summarizable.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/ga/watchmaker/EvalMapper.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/ga/watchmaker/MahoutEvaluator.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/ga/watchmaker/MahoutFitnessEvaluator.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/ga/watchmaker/OutputUtils.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/ga/watchmaker/STEvolutionEngine.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/ga/watchmaker/STFitnessEvaluator.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/matrix/AbstractMatrix.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/matrix/AbstractVector.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/matrix/BinaryFunction.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/matrix/CardinalityException.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/matrix/DenseMatrix.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/matrix/DenseVector.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/matrix/IndexException.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/matrix/JsonMatrixAdapter.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/matrix/JsonVectorAdapter.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/matrix/Matrix.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/matrix/MatrixView.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/matrix/OrderedIntDoubleMapping.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/matrix/SparseColumnMatrix.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/matrix/SparseMatrix.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/matrix/SparseRowMatrix.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/matrix/SparseVector.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/matrix/UnaryFunction.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/matrix/UnboundLabelException.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/matrix/Vector.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/matrix/VectorView.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/utils/CosineDistanceMeasure.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/utils/DistanceMeasure.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/utils/EuclideanDistanceMeasure.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/utils/ManhattanDistanceMeasure.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/utils/SquaredEuclideanDistanceMeasure.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/utils/StringUtils.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/utils/TanimotoDistanceMeasure.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/utils/WeightedDistanceMeasure.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/utils/WeightedEuclideanDistanceMeasure.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/utils/WeightedManhattanDistanceMeasure.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/utils/parameters/CompositeParameter.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/utils/parameters/FileParameter.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/utils/parameters/Parameter.java
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/utils/parameters/Parametered.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/common/CommonTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/LoadTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/TasteTestCase.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/common/FastMapTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/common/FastSetTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/common/IteratorUtilsTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/common/MockRefreshable.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/common/RefreshHelperTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/common/RunningAverageTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/eval/AverageAbsoluteDifferenceRecommenderEvaluatorTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/model/file/FileDataModelTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/neighborhood/DummySimilarity.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/neighborhood/NearestNNeighborhoodTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/neighborhood/ThresholdNeighborhoodTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/recommender/CachingRecommenderTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/recommender/GenericItemBasedRecommenderTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/recommender/GenericUserBasedRecommenderTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/recommender/MockRecommender.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/recommender/NullRescorerTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/recommender/ReversingRescorer.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/recommender/TreeClusteringRecommenderTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/recommender/slopeone/MemoryDiffStorageTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/recommender/slopeone/SlopeOneRecommenderTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/similarity/AveragingPreferenceInferrerTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/similarity/EuclideanDistanceSimilarityTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/similarity/GenericItemSimilarityTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/similarity/LogLikelihoodSimilarityTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/similarity/PearsonCorrelationSimilarityTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/similarity/SpearmanCorrelationSimilarityTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/similarity/TanimotoCoefficientSimilarityTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/transforms/CaseAmplificationTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/transforms/InverseUserFrequencyTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/cf/taste/impl/transforms/ZScoreTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/classifier/bayes/BayesFeatureMapperTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/classifier/bayes/BayesFileFormatterTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/ClusteringTestUtils.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/canopy/TestCanopyCreation.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/canopy/VisibleCanopy.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/dirichlet/JsonModelHolderAdapter.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/dirichlet/TestDirichletClustering.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/dirichlet/TestDistributions.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/dirichlet/TestMapReduce.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/fuzzykmeans/TestFuzzyKmeansClustering.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/kmeans/TestKmeansClustering.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/kmeans/VisibleCluster.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/meanshift/TestMeanShift.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/ga/watchmaker/EvalMapperTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/ga/watchmaker/MahoutEvaluatorTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/ga/watchmaker/STFitnessEvaluatorTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/ga/watchmaker/utils/DummyCandidate.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/ga/watchmaker/utils/DummyEvaluator.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/matrix/MatrixTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/matrix/TestDenseVector.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/matrix/TestMatrixView.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/matrix/TestSparseColumnMatrix.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/matrix/TestSparseMatrix.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/matrix/TestSparseRowMatrix.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/matrix/TestSparseVector.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/matrix/TestVectorView.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/matrix/VectorTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/utils/DefaultDistanceMeasureTest.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/utils/DummyOutputCollector.java
    lucene/mahout/trunk/core/src/test/java/org/apache/mahout/utils/StringUtilsTest.java

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/common/Refreshable.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/common/Refreshable.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/common/Refreshable.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/common/Refreshable.java Fri Jul 10 09:35:19 2009
@@ -20,24 +20,25 @@
 import java.util.Collection;
 
 /**
- * <p>Implementations of this interface have state that can be periodically refreshed. For example, an
- * implementation instance might contain some pre-computed information that should be periodically
- * refreshed. The {@link #refresh(Collection)} method triggers such a refresh.</p>
+ * <p>Implementations of this interface have state that can be periodically refreshed. For example, an implementation
+ * instance might contain some pre-computed information that should be periodically refreshed. The {@link
+ * #refresh(Collection)} method triggers such a refresh.</p>
  *
- * <p>All Taste components implement this. In particular, {@link org.apache.mahout.cf.taste.recommender.Recommender}s do.
- * Callers may want to call {@link #refresh(Collection)} periodically to re-compute information throughout the system
- * and bring it up to date, though this operation may be expensive.</p>
+ * <p>All Taste components implement this. In particular, {@link org.apache.mahout.cf.taste.recommender.Recommender}s
+ * do. Callers may want to call {@link #refresh(Collection)} periodically to re-compute information throughout the
+ * system and bring it up to date, though this operation may be expensive.</p>
  */
 public interface Refreshable {
 
   /**
-   * <p>Triggers "refresh" -- whatever that means -- of the implementation. The general contract is that
-   * any {@link Refreshable} should always leave itself in a consistent, operational state, and that
-   * the refresh atomically updates internal state from old to new.</p>
+   * <p>Triggers "refresh" -- whatever that means -- of the implementation. The general contract is that any {@link
+   * Refreshable} should always leave itself in a consistent, operational state, and that the refresh atomically updates
+   * internal state from old to new.</p>
    *
-   * @param alreadyRefreshed {@link org.apache.mahout.cf.taste.common.Refreshable}s that are known to have already
-   *  been refreshed as a result of an initial call to a {@link #refresh(Collection)} method on some
-   *  object. This ensure that objects in a refresh dependency graph aren't refreshed twice needlessly.
+   * @param alreadyRefreshed {@link org.apache.mahout.cf.taste.common.Refreshable}s that are known to have already been
+   *                         refreshed as a result of an initial call to a {@link #refresh(Collection)} method on some
+   *                         object. This ensure that objects in a refresh dependency graph aren't refreshed twice
+   *                         needlessly.
    */
   void refresh(Collection<Refreshable> alreadyRefreshed);
 

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/common/TasteException.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/common/TasteException.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/common/TasteException.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/common/TasteException.java Fri Jul 10 09:35:19 2009
@@ -17,9 +17,7 @@
 
 package org.apache.mahout.cf.taste.common;
 
-/**
- * <p>An exception thrown when an error occurs inside the Taste engine.</p>
- */
+/** <p>An exception thrown when an error occurs inside the Taste engine.</p> */
 public class TasteException extends Exception {
 
   public TasteException() {

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/common/Weighting.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/common/Weighting.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/common/Weighting.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/common/Weighting.java Fri Jul 10 09:35:19 2009
@@ -18,8 +18,8 @@
 package org.apache.mahout.cf.taste.common;
 
 /**
- * <p>A simple enum which gives symbolic names to the ideas of "weighted" and "unweighted",
- * to make various API calls which take a weighting parameter more readable.</p>
+ * <p>A simple enum which gives symbolic names to the ideas of "weighted" and "unweighted", to make various API calls
+ * which take a weighting parameter more readable.</p>
  */
 public enum Weighting {
 

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/eval/IRStatistics.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/eval/IRStatistics.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/eval/IRStatistics.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/eval/IRStatistics.java Fri Jul 10 09:35:19 2009
@@ -18,36 +18,26 @@
 package org.apache.mahout.cf.taste.eval;
 
 /**
- * <p>Implementations encapsulate information retrieval-related statistics about
- * a {@link org.apache.mahout.cf.taste.recommender.Recommender}'s recommendations.</p>
+ * <p>Implementations encapsulate information retrieval-related statistics about a {@link
+ * org.apache.mahout.cf.taste.recommender.Recommender}'s recommendations.</p>
  *
  * <p>See <a href="http://en.wikipedia.org/wiki/Information_retrieval">Information retrieval</a>.</p>
  */
 public interface IRStatistics {
 
-  /**
-   * <p>See <a href="http://en.wikipedia.org/wiki/Information_retrieval#Precision">Precision</a>.</p>
-   */
+  /** <p>See <a href="http://en.wikipedia.org/wiki/Information_retrieval#Precision">Precision</a>.</p> */
   double getPrecision();
 
-  /**
-   * <p>See <a href="http://en.wikipedia.org/wiki/Information_retrieval#Recall">Recall</a>.</p>
-   */
+  /** <p>See <a href="http://en.wikipedia.org/wiki/Information_retrieval#Recall">Recall</a>.</p> */
   double getRecall();
 
-  /**
-   * <p>See <a href="http://en.wikipedia.org/wiki/Information_retrieval#Fall-Out">Fall-Out</a>.</p>
-   */
+  /** <p>See <a href="http://en.wikipedia.org/wiki/Information_retrieval#Fall-Out">Fall-Out</a>.</p> */
   double getFallOut();
 
-  /**
-   * <p>See <a href="http://en.wikipedia.org/wiki/Information_retrieval#F-measure">F-measure</a>.</p>
-   */
+  /** <p>See <a href="http://en.wikipedia.org/wiki/Information_retrieval#F-measure">F-measure</a>.</p> */
   double getF1Measure();
 
-  /**
-   * <p>See <a href="http://en.wikipedia.org/wiki/Information_retrieval#F-measure">F-measure</a>.</p>
-   */
+  /** <p>See <a href="http://en.wikipedia.org/wiki/Information_retrieval#F-measure">F-measure</a>.</p> */
   double getFNMeasure(double n);
 
 }

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/eval/RecommenderBuilder.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/eval/RecommenderBuilder.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/eval/RecommenderBuilder.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/eval/RecommenderBuilder.java Fri Jul 10 09:35:19 2009
@@ -22,8 +22,8 @@
 import org.apache.mahout.cf.taste.recommender.Recommender;
 
 /**
- * <p>Implementations of this inner interface are simple helper classes which create a
- * {@link Recommender} to be evaluated based on the given {@link DataModel}.</p>
+ * <p>Implementations of this inner interface are simple helper classes which create a {@link Recommender} to be
+ * evaluated based on the given {@link DataModel}.</p>
  */
 public interface RecommenderBuilder {
 

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/eval/RecommenderEvaluator.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/eval/RecommenderEvaluator.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/eval/RecommenderEvaluator.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/eval/RecommenderEvaluator.java Fri Jul 10 09:35:19 2009
@@ -21,43 +21,41 @@
 import org.apache.mahout.cf.taste.model.DataModel;
 
 /**
- * <p>Implementations of this interface evaluate the quality of a
- * {@link org.apache.mahout.cf.taste.recommender.Recommender}'s recommendations.</p>
+ * <p>Implementations of this interface evaluate the quality of a {@link org.apache.mahout.cf.taste.recommender.Recommender}'s
+ * recommendations.</p>
  */
 public interface RecommenderEvaluator {
 
   /**
-   * <p>Evaluates the quality of a {@link org.apache.mahout.cf.taste.recommender.Recommender}'s recommendations.
-   * The range of values that may be returned
-   * depends on the implementation, but <em>lower</em> values must mean better recommendations, with 0 being the
-   * lowest / best possible evaluation, meaning a perfect match. This method does not
-   * accept a {@link org.apache.mahout.cf.taste.recommender.Recommender} directly, but rather a
-   * {@link RecommenderBuilder} which can build the
-   * {@link org.apache.mahout.cf.taste.recommender.Recommender} to test on top of a given {@link DataModel}.</p>
+   * <p>Evaluates the quality of a {@link org.apache.mahout.cf.taste.recommender.Recommender}'s recommendations. The
+   * range of values that may be returned depends on the implementation, but <em>lower</em> values must mean better
+   * recommendations, with 0 being the lowest / best possible evaluation, meaning a perfect match. This method does not
+   * accept a {@link org.apache.mahout.cf.taste.recommender.Recommender} directly, but rather a {@link
+   * RecommenderBuilder} which can build the {@link org.apache.mahout.cf.taste.recommender.Recommender} to test on top
+   * of a given {@link DataModel}.</p>
    *
-   * <p>Implementations will take a certain percentage of the preferences supplied by the given {@link DataModel}
-   * as "training data". This is typically most of the data, like 90%. This data is used to produce recommendations,
-   * and the rest of the data is compared against estimated preference values to see how much the
-   * {@link org.apache.mahout.cf.taste.recommender.Recommender}'s predicted preferences match the user's real
-   * preferences. Specifically,
-   * for each user, this percentage of the user's ratings are used to produce recommendatinos, and for each user,
-   * the remaining preferences are compared against the user's real preferences.</p>
+   * <p>Implementations will take a certain percentage of the preferences supplied by the given {@link DataModel} as
+   * "training data". This is typically most of the data, like 90%. This data is used to produce recommendations, and
+   * the rest of the data is compared against estimated preference values to see how much the {@link
+   * org.apache.mahout.cf.taste.recommender.Recommender}'s predicted preferences match the user's real preferences.
+   * Specifically, for each user, this percentage of the user's ratings are used to produce recommendatinos, and for
+   * each user, the remaining preferences are compared against the user's real preferences.</p>
    *
    * <p>For large datasets, it may be desirable to only evaluate based on a small percentage of the data.
-   * <code>evaluationPercentage</code> controls how many of the {@link DataModel}'s users are used in
-   * evaluation.</p>
+   * <code>evaluationPercentage</code> controls how many of the {@link DataModel}'s users are used in evaluation.</p>
    *
-   * <p>To be clear, <code>trainingPercentage</code> and <code>evaluationPercentage</code> are not related.
-   * They do not need to add up to 1.0, for example.</p>
+   * <p>To be clear, <code>trainingPercentage</code> and <code>evaluationPercentage</code> are not related. They do not
+   * need to add up to 1.0, for example.</p>
    *
-   * @param recommenderBuilder object that can build a {@link org.apache.mahout.cf.taste.recommender.Recommender} to test
-   * @param dataModel dataset to test on
-   * @param trainingPercentage percentage of each user's preferences to use to produce recommendations; the rest
-   * are compared to estimated preference values to evaluate {@link org.apache.mahout.cf.taste.recommender.Recommender}
-   * performance
+   * @param recommenderBuilder   object that can build a {@link org.apache.mahout.cf.taste.recommender.Recommender} to
+   *                             test
+   * @param dataModel            dataset to test on
+   * @param trainingPercentage   percentage of each user's preferences to use to produce recommendations; the rest are
+   *                             compared to estimated preference values to evaluate {@link org.apache.mahout.cf.taste.recommender.Recommender}
+   *                             performance
    * @param evaluationPercentage percentage of users to use in evaluation
-   * @return a "score" representing how well the {@link org.apache.mahout.cf.taste.recommender.Recommender}'s
-   *         estimated preferences match real values; <em>lower</em> scores mean a better match and 0 is a perfect match
+   * @return a "score" representing how well the {@link org.apache.mahout.cf.taste.recommender.Recommender}'s estimated
+   *         preferences match real values; <em>lower</em> scores mean a better match and 0 is a perfect match
    * @throws TasteException if an error occurs while accessing the {@link DataModel}
    */
   double evaluate(RecommenderBuilder recommenderBuilder,

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/eval/RecommenderIRStatsEvaluator.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/eval/RecommenderIRStatsEvaluator.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/eval/RecommenderIRStatsEvaluator.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/eval/RecommenderIRStatsEvaluator.java Fri Jul 10 09:35:19 2009
@@ -23,23 +23,22 @@
 import org.apache.mahout.cf.taste.recommender.Rescorer;
 
 /**
- * <p>Implementations collect information retrieval-related statistics on a
- * {@link org.apache.mahout.cf.taste.recommender.Recommender}'s performance, including precision,
- * recall and f-measure.</p>
+ * <p>Implementations collect information retrieval-related statistics on a {@link
+ * org.apache.mahout.cf.taste.recommender.Recommender}'s performance, including precision, recall and f-measure.</p>
  *
  * <p>See <a href="http://en.wikipedia.org/wiki/Information_retrieval">Information retrieval</a>.
  */
 public interface RecommenderIRStatsEvaluator {
 
   /**
-   * @param recommenderBuilder object that can build a
-   * {@link org.apache.mahout.cf.taste.recommender.Recommender} to test
-   * @param dataModel dataset to test on
-   * @param rescorer if any, to use when computing recommendations
-   * @param at as in, "precision at 5". The number of recommendations to consider when evaluating
-   * precision, etc.
-   * @param relevanceThreshold {@link Item}s whose preference value is at least
-   * this value are considered "relevant" for the purposes of computations
+   * @param recommenderBuilder object that can build a {@link org.apache.mahout.cf.taste.recommender.Recommender} to
+   *                           test
+   * @param dataModel          dataset to test on
+   * @param rescorer           if any, to use when computing recommendations
+   * @param at                 as in, "precision at 5". The number of recommendations to consider when evaluating
+   *                           precision, etc.
+   * @param relevanceThreshold {@link Item}s whose preference value is at least this value are considered "relevant" for
+   *                           the purposes of computations
    * @return {@link IRStatistics} with resulting precision, recall, etc.
    * @throws TasteException if an error occurs while accessing the {@link DataModel}
    */

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/ItemItemWritable.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/ItemItemWritable.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/ItemItemWritable.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/ItemItemWritable.java Fri Jul 10 09:35:19 2009
@@ -23,9 +23,7 @@
 import java.io.DataOutput;
 import java.io.IOException;
 
-/**
- * A {@link WritableComparable} encapsulating two {@link org.apache.mahout.cf.taste.model.Item}s.
- */
+/** A {@link WritableComparable} encapsulating two {@link org.apache.mahout.cf.taste.model.Item}s. */
 public final class ItemItemWritable implements WritableComparable<ItemItemWritable> {
 
   private String itemAID;

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/ItemPrefWritable.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/ItemPrefWritable.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/ItemPrefWritable.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/ItemPrefWritable.java Fri Jul 10 09:35:19 2009
@@ -23,9 +23,7 @@
 import java.io.DataOutput;
 import java.io.IOException;
 
-/**
- * A {@link Writable} encapsulating a {@link org.apache.mahout.cf.taste.model.Item} and a preference value.
- */
+/** A {@link Writable} encapsulating a {@link org.apache.mahout.cf.taste.model.Item} and a preference value. */
 public final class ItemPrefWritable implements Writable {
 
   private String itemID;

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/RecommendedItemsWritable.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/RecommendedItemsWritable.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/RecommendedItemsWritable.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/RecommendedItemsWritable.java Fri Jul 10 09:35:19 2009
@@ -31,9 +31,8 @@
 import java.util.List;
 
 /**
- * A {@link Writable} which encapsulates a list of {@link RecommendedItem}s. This is
- * the mapper (and reducer) output, and represents items recommended to a user.
- * The first item is the one whose estimated preference is highest.
+ * A {@link Writable} which encapsulates a list of {@link RecommendedItem}s. This is the mapper (and reducer) output,
+ * and represents items recommended to a user. The first item is the one whose estimated preference is highest.
  */
 public final class RecommendedItemsWritable implements Writable {
 

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/ReducerMetrics.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/ReducerMetrics.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/ReducerMetrics.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/ReducerMetrics.java Fri Jul 10 09:35:19 2009
@@ -17,9 +17,7 @@
 
 package org.apache.mahout.cf.taste.hadoop;
 
-/**
- * Custom metrics collected by {@link RecommenderMapper}.
- */
+/** Custom metrics collected by {@link RecommenderMapper}. */
 public enum ReducerMetrics {
 
   /** Number of unique users for which recommendations were produced */

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/ArrayIterator.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/ArrayIterator.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/ArrayIterator.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/ArrayIterator.java Fri Jul 10 09:35:19 2009
@@ -21,9 +21,7 @@
 import java.util.Iterator;
 import java.util.NoSuchElementException;
 
-/**
- * <p>Simple, fast {@link Iterator} for an array.</p>
- */
+/** <p>Simple, fast {@link Iterator} for an array.</p> */
 public final class ArrayIterator<T> implements SkippingIterator<T>, Iterable<T> {
 
   private final T[] array;

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/BitSet.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/BitSet.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/BitSet.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/BitSet.java Fri Jul 10 09:35:19 2009
@@ -19,9 +19,7 @@
 
 import java.io.Serializable;
 
-/**
- * A simplified and streamlined version of {@link java.util.BitSet}.
- */
+/** A simplified and streamlined version of {@link java.util.BitSet}. */
 final class BitSet implements Serializable, Cloneable {
 
   private final long[] bits;

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/Cache.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/Cache.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/Cache.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/Cache.java Fri Jul 10 09:35:19 2009
@@ -20,14 +20,14 @@
 import org.apache.mahout.cf.taste.common.TasteException;
 
 /**
- * <p>An efficient Map-like class which caches values for keys. Values are not "put" into a {@link Cache};
- * instead the caller supplies the instance with an implementation of {@link Retriever} which can load the
- * value for a given key.</p>
+ * <p>An efficient Map-like class which caches values for keys. Values are not "put" into a {@link Cache}; instead the
+ * caller supplies the instance with an implementation of {@link Retriever} which can load the value for a given
+ * key.</p>
  *
  * <p>The cache does not support <code>null</code> values or keys.</p>
  *
- * <p>Thanks to Amila Jayasooriya for helping evaluate performance of the rewrite of this class, as part of a
- * Google Summer of Code 2007 project.</p>
+ * <p>Thanks to Amila Jayasooriya for helping evaluate performance of the rewrite of this class, as part of a Google
+ * Summer of Code 2007 project.</p>
  */
 public final class Cache<K, V> implements Retriever<K, V> {
 
@@ -46,7 +46,7 @@
   /**
    * <p>Creates a new cache based on the given {@link Retriever} and with given maximum size.</p>
    *
-   * @param retriever object which can retrieve values for keys
+   * @param retriever  object which can retrieve values for keys
    * @param maxEntries maximum number of entries the cache will store before evicting some
    */
   public Cache(Retriever<? super K, ? extends V> retriever, int maxEntries) {
@@ -90,9 +90,7 @@
     }
   }
 
-  /**
-   * <p>Clears the cache.</p>
-   */
+  /** <p>Clears the cache.</p> */
   public void clear() {
     synchronized (cache) {
       cache.clear();

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/CompactRunningAverage.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/CompactRunningAverage.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/CompactRunningAverage.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/CompactRunningAverage.java Fri Jul 10 09:35:19 2009
@@ -20,8 +20,8 @@
 import java.io.Serializable;
 
 /**
- * <p>Like {@link org.apache.mahout.cf.taste.impl.common.FullRunningAverage} but uses smaller values (short, float)
- * to conserve memory. This is used in {@link org.apache.mahout.cf.taste.impl.recommender.slopeone.SlopeOneRecommender}
+ * <p>Like {@link org.apache.mahout.cf.taste.impl.common.FullRunningAverage} but uses smaller values (short, float) to
+ * conserve memory. This is used in {@link org.apache.mahout.cf.taste.impl.recommender.slopeone.SlopeOneRecommender}
  * since it may allocate tens of millions of such objects.</p>
  */
 public class CompactRunningAverage implements RunningAverage, Serializable {
@@ -41,7 +41,7 @@
         average = (float) datum;
       } else {
         average = (float)
-                ((double) average * ((double) ((int) count - 1) / (double) count) + datum / (double) count);
+            ((double) average * ((double) ((int) count - 1) / (double) count) + datum / (double) count);
       }
     }
   }
@@ -55,7 +55,7 @@
       average = Float.NaN;
     } else {
       average = (float)
-              ((double) average * ((double) ((int) count + 1) / (double) count) - datum / (double) count);
+          ((double) average * ((double) ((int) count + 1) / (double) count) - datum / (double) count);
     }
   }
 

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/CompactRunningAverageAndStdDev.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/CompactRunningAverageAndStdDev.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/CompactRunningAverageAndStdDev.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/CompactRunningAverageAndStdDev.java Fri Jul 10 09:35:19 2009
@@ -17,9 +17,7 @@
 
 package org.apache.mahout.cf.taste.impl.common;
 
-/**
- * <p>Extends {@link CompactRunningAverage} to add a running standard deviation computation.</p>
- */
+/** <p>Extends {@link CompactRunningAverage} to add a running standard deviation computation.</p> */
 public final class CompactRunningAverageAndStdDev extends CompactRunningAverage implements RunningAverageAndStdDev {
 
   private float stdDev;

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/EmptyIterable.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/EmptyIterable.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/EmptyIterable.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/EmptyIterable.java Fri Jul 10 09:35:19 2009
@@ -19,10 +19,7 @@
 
 import java.util.Iterator;
 
-/**
- * <p>An {@link Iterable} over no elements: always produces an {@link Iterator} which iterates
- * over nothing.</p>
- */
+/** <p>An {@link Iterable} over no elements: always produces an {@link Iterator} which iterates over nothing.</p> */
 public final class EmptyIterable<T> implements Iterable<T> {
 
   private final Iterator<T> iterator;

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/EmptyIterator.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/EmptyIterator.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/EmptyIterator.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/EmptyIterator.java Fri Jul 10 09:35:19 2009
@@ -20,23 +20,16 @@
 import java.util.Iterator;
 import java.util.NoSuchElementException;
 
-/**
- * <p>An empty {@link Iterator}, which iterates over nothing.</p>
- */
+/** <p>An empty {@link Iterator}, which iterates over nothing.</p> */
 final class EmptyIterator<T> implements Iterator<T> {
 
-  /**
-   * @return false
-   */
+  /** @return false */
   @Override
   public boolean hasNext() {
     return false;
   }
 
-  /**
-   * @return never returns anything
-   * @throws NoSuchElementException
-   */
+  /** @return never returns anything */
   @Override
   public T next() {
     throw new NoSuchElementException();

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FastMap.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FastMap.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FastMap.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FastMap.java Fri Jul 10 09:35:19 2009
@@ -17,6 +17,7 @@
 
 package org.apache.mahout.cf.taste.impl.common;
 
+import java.io.Serializable;
 import java.util.AbstractCollection;
 import java.util.AbstractSet;
 import java.util.Arrays;
@@ -25,15 +26,14 @@
 import java.util.Map;
 import java.util.NoSuchElementException;
 import java.util.Set;
-import java.io.Serializable;
 
 /**
- * <p>This is an optimized {@link Map} implementation, based on algorithms described in Knuth's
- * "Art of Computer Programming", Vol. 3, p. 529.</p>
+ * <p>This is an optimized {@link Map} implementation, based on algorithms described in Knuth's "Art of Computer
+ * Programming", Vol. 3, p. 529.</p>
  *
- * <p>It should be faster than {@link java.util.HashMap} in some cases, but not all. Its main feature is
- * a "max size" and the ability to transparently, efficiently and semi-intelligently evict old entries
- * when max size is exceeded.</p>
+ * <p>It should be faster than {@link java.util.HashMap} in some cases, but not all. Its main feature is a "max size"
+ * and the ability to transparently, efficiently and semi-intelligently evict old entries when max size is
+ * exceeded.</p>
  *
  * <p>This class is not a bit thread-safe.</p>
  *
@@ -43,9 +43,7 @@
 
   public static final int NO_MAX_SIZE = Integer.MAX_VALUE;
 
-  /**
-   * Dummy object used to represent a key that has been removed.
-   */
+  /** Dummy object used to represent a key that has been removed. */
   private static final Object REMOVED = new Object();
 
   private K[] keys;
@@ -56,9 +54,7 @@
   private BitSet recentlyAccessed;
   private final boolean countingAccesses;
 
-  /**
-   * Creates a new {@link FastMap} with default capacity.
-   */
+  /** Creates a new {@link FastMap} with default capacity. */
   public FastMap() {
     this(5, NO_MAX_SIZE);
   }
@@ -70,10 +66,9 @@
   /**
    * Creates a new {@link FastMap} whose capacity can accommodate the given number of entries without rehash.</p>
    *
-   * @param size desired capacity
+   * @param size    desired capacity
    * @param maxSize max capacity
-   * @throws IllegalArgumentException if size is less than 1 or at least half of
-   *  {@link RandomUtils#MAX_INT_SMALLER_TWIN_PRIME}
+   * @throws IllegalArgumentException if size is less than 1 or at least half of {@link RandomUtils#MAX_INT_SMALLER_TWIN_PRIME}
    */
   @SuppressWarnings("unchecked")
   public FastMap(int size, int maxSize) {
@@ -95,16 +90,16 @@
   }
 
   /**
-   * This is for the benefit of inner classes. Without it the compiler would just generate a similar synthetic
-   * accessor. Might as well make it explicit.
+   * This is for the benefit of inner classes. Without it the compiler would just generate a similar synthetic accessor.
+   * Might as well make it explicit.
    */
   K[] getKeys() {
     return keys;
   }
 
   /**
-   * This is for the benefit of inner classes. Without it the compiler would just generate a similar synthetic
-   * accessor. Might as well make it explicit.
+   * This is for the benefit of inner classes. Without it the compiler would just generate a similar synthetic accessor.
+   * Might as well make it explicit.
    */
   V[] getValues() {
     return values;
@@ -168,9 +163,7 @@
     return false;
   }
 
-  /**
-   * @throws NullPointerException if key or value is null
-   */
+  /** @throws NullPointerException if key or value is null */
   @Override
   public V put(K key, V value) {
     if (key == null || value == null) {
@@ -326,10 +319,10 @@
 
   @SuppressWarnings("unchecked")
   @Override
-  public FastMap<K,V> clone() {
-    FastMap<K,V> clone;
+  public FastMap<K, V> clone() {
+    FastMap<K, V> clone;
     try {
-      clone = (FastMap<K,V>) super.clone();
+      clone = (FastMap<K, V>) super.clone();
     } catch (CloneNotSupportedException cnse) {
       throw new AssertionError();
     }
@@ -337,7 +330,7 @@
     clone.keys = (K[]) new Object[length];
     clone.values = (V[]) new Object[length];
     System.arraycopy(keys, 0, clone.keys, 0, length);
-    System.arraycopy(values, 0, clone.values,  0, length);
+    System.arraycopy(values, 0, clone.values, 0, length);
     clone.recentlyAccessed = countingAccesses ? new BitSet(length) : null;
     return clone;
   }

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FastSet.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FastSet.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FastSet.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FastSet.java Fri Jul 10 09:35:19 2009
@@ -17,21 +17,21 @@
 
 package org.apache.mahout.cf.taste.impl.common;
 
+import java.io.Serializable;
+import java.lang.reflect.Array;
 import java.util.Arrays;
 import java.util.Collection;
 import java.util.Iterator;
 import java.util.NoSuchElementException;
 import java.util.Set;
-import java.lang.reflect.Array;
-import java.io.Serializable;
 
 /**
- * <p>This is an optimized {@link Set} implementation, based on algorithms described in Knuth's
- * "Art of Computer Programming", Vol. 3, p. 529.</p>
+ * <p>This is an optimized {@link Set} implementation, based on algorithms described in Knuth's "Art of Computer
+ * Programming", Vol. 3, p. 529.</p>
  *
- * <p>It should be faster than {@link java.util.HashSet} in some cases, but not all. It should definitely
- * be more memory efficient since that implementation is actually just a {@link java.util.HashMap} underneath
- * mapping values to a dummy object.</p>
+ * <p>It should be faster than {@link java.util.HashSet} in some cases, but not all. It should definitely be more memory
+ * efficient since that implementation is actually just a {@link java.util.HashMap} underneath mapping values to a dummy
+ * object.</p>
  *
  * <p>This class is not a bit thread-safe.</p>
  *
@@ -41,18 +41,14 @@
  */
 public final class FastSet<K> implements Set<K>, Serializable, Cloneable {
 
-  /**
-   * Dummy object used to represent a key that has been removed.
-   */
+  /** Dummy object used to represent a key that has been removed. */
   private static final Object REMOVED = new Object();
 
   private K[] keys;
   private int numEntries;
   private int numSlotsUsed;
 
-  /**
-   * Creates a new {@link FastSet} with default capacity.
-   */
+  /** Creates a new {@link FastSet} with default capacity. */
   public FastSet() {
     this(5);
   }
@@ -62,7 +58,7 @@
     addAll(c);
   }
 
-  @SuppressWarnings("unchecked")  
+  @SuppressWarnings("unchecked")
   public FastSet(int size) {
     if (size < 1) {
       throw new IllegalArgumentException("size must be at least 1");
@@ -75,8 +71,8 @@
   }
 
   /**
-   * This is for the benefit of inner classes. Without it the compiler would just generate a similar synthetic
-   * accessor. Might as well make it explicit.
+   * This is for the benefit of inner classes. Without it the compiler would just generate a similar synthetic accessor.
+   * Might as well make it explicit.
    */
   K[] getKeys() {
     return keys;
@@ -115,9 +111,7 @@
     return key != null && keys[find(key)] != null;
   }
 
-  /**
-   * @throws NullPointerException if key is null
-   */
+  /** @throws NullPointerException if key is null */
   @Override
   public boolean add(K key) {
     if (key == null) {
@@ -266,10 +260,8 @@
     }
   }
 
-  /**
-   * Convenience method to quickly compute just the size of the intersection with another {@link FastSet}.
-   */
-  @SuppressWarnings("unchecked")  
+  /** Convenience method to quickly compute just the size of the intersection with another {@link FastSet}. */
+  @SuppressWarnings("unchecked")
   public int intersectionSize(FastSet<?> other) {
     int count = 0;
     for (K key : (K[]) other.keys) {

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FileLineIterable.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FileLineIterable.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FileLineIterable.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FileLineIterable.java Fri Jul 10 09:35:19 2009
@@ -19,13 +19,12 @@
 
 import java.io.File;
 import java.io.IOException;
-import java.util.Iterator;
 import java.nio.charset.Charset;
+import java.util.Iterator;
 
 /**
- * Iterable representing the lines of a text file. It can produce an {@link Iterator} over those lines.
- * This assumes the text file's lines are delimited in a manner
- * consistent with how {@link java.io.BufferedReader} defines lines.
+ * Iterable representing the lines of a text file. It can produce an {@link Iterator} over those lines. This assumes the
+ * text file's lines are delimited in a manner consistent with how {@link java.io.BufferedReader} defines lines.
  *
  * This class will uncompress files that end in .zip or .gz accordingly, too.
  */
@@ -35,16 +34,12 @@
   private final Charset encoding;
   private final boolean skipFirstLine;
 
-  /**
-   * Creates a {@link FileLineIterable} over a given file, assuming a UTF-8 encoding.
-   */
+  /** Creates a {@link FileLineIterable} over a given file, assuming a UTF-8 encoding. */
   public FileLineIterable(File file, boolean skipFirstLine) {
     this(file, Charset.forName("UTF-8"), skipFirstLine);
   }
 
-  /**
-   * Creates a {@link FileLineIterable} over a given file, using the given encoding.
-   */
+  /** Creates a {@link FileLineIterable} over a given file, using the given encoding. */
   public FileLineIterable(File file, Charset encoding, boolean skipFirstLine) {
     this.file = file;
     this.encoding = encoding;

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FileLineIterator.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FileLineIterator.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FileLineIterator.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FileLineIterator.java Fri Jul 10 09:35:19 2009
@@ -25,15 +25,14 @@
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.InputStreamReader;
+import java.nio.charset.Charset;
 import java.util.NoSuchElementException;
 import java.util.zip.GZIPInputStream;
 import java.util.zip.ZipInputStream;
-import java.nio.charset.Charset;
 
 /**
- * Iterates over the lines of a text file. This assumes the text file's lines
- * are delimited in a manner consistent with how {@link BufferedReader}
- * defines lines.
+ * Iterates over the lines of a text file. This assumes the text file's lines are delimited in a manner consistent with
+ * how {@link BufferedReader} defines lines.
  *
  * This class will uncompress files that end in .zip or .gz accordingly, too.
  */
@@ -46,7 +45,7 @@
    * Creates a {@link FileLineIterator} over a given file, assuming a UTF-8 encoding.
    *
    * @throws FileNotFoundException if the file does not exist
-   * @throws IOException if the file cannot be read
+   * @throws IOException           if the file cannot be read
    */
   public FileLineIterator(File file, boolean skipFirstLine) throws IOException {
     this(file, Charset.forName("UTF-8"), skipFirstLine);
@@ -56,7 +55,7 @@
    * Creates a {@link FileLineIterator} over a given file, using the given encoding.
    *
    * @throws FileNotFoundException if the file does not exist
-   * @throws IOException if the file cannot be read
+   * @throws IOException           if the file cannot be read
    */
   public FileLineIterator(File file, Charset encoding, boolean skipFirstLine) throws IOException {
     InputStream is = getFileInputStream(file);

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FullRunningAverage.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FullRunningAverage.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FullRunningAverage.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FullRunningAverage.java Fri Jul 10 09:35:19 2009
@@ -20,10 +20,9 @@
 import java.io.Serializable;
 
 /**
- * <p>A simple class that can keep track of a running avearage of a series of numbers.
- * One can add to or remove from the series, as well as update a datum in the series.
- * The class does not actually keep track of the series of values, just its running average,
- * so it doesn't even matter if you remove/change a value that wasn't added.</p>
+ * <p>A simple class that can keep track of a running avearage of a series of numbers. One can add to or remove from the
+ * series, as well as update a datum in the series. The class does not actually keep track of the series of values, just
+ * its running average, so it doesn't even matter if you remove/change a value that wasn't added.</p>
  */
 public class FullRunningAverage implements RunningAverage, Serializable {
 
@@ -35,9 +34,7 @@
     average = Double.NaN;
   }
 
-  /**
-   * @param datum new item to add to the running average
-   */
+  /** @param datum new item to add to the running average */
   @Override
   public void addDatum(double datum) {
     if (++count == 1) {

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FullRunningAverageAndStdDev.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FullRunningAverageAndStdDev.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FullRunningAverageAndStdDev.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/FullRunningAverageAndStdDev.java Fri Jul 10 09:35:19 2009
@@ -17,9 +17,7 @@
 
 package org.apache.mahout.cf.taste.impl.common;
 
-/**
- * <p>Extends {@link FullRunningAverage} to add a running standard deviation computation.</p>
- */
+/** <p>Extends {@link FullRunningAverage} to add a running standard deviation computation.</p> */
 public final class FullRunningAverageAndStdDev extends FullRunningAverage implements RunningAverageAndStdDev {
 
   private double stdDev;

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/IOUtils.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/IOUtils.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/IOUtils.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/IOUtils.java Fri Jul 10 09:35:19 2009
@@ -20,23 +20,21 @@
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+import java.io.ByteArrayOutputStream;
 import java.io.Closeable;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.io.InputStream;
 import java.io.File;
 import java.io.FileOutputStream;
-import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.net.URL;
+import java.nio.charset.Charset;
 import java.sql.Connection;
 import java.sql.ResultSet;
 import java.sql.SQLException;
 import java.sql.Statement;
-import java.net.URL;
-import java.nio.charset.Charset;
 
-/**
- * <p>I/O-related utility methods that don't have a better home.</p>
- */
+/** <p>I/O-related utility methods that don't have a better home.</p> */
 public final class IOUtils {
 
   private static final Logger log = LoggerFactory.getLogger(IOUtils.class);
@@ -87,12 +85,11 @@
   }
 
   /**
-   * Closes a {@link ResultSet}, {@link Statement} and {@link Connection} (if not null) and
-   * logs (but does not rethrow) any resulting {@link SQLException}. This is useful for cleaning
-   * up after a database query.
+   * Closes a {@link ResultSet}, {@link Statement} and {@link Connection} (if not null) and logs (but does not rethrow)
+   * any resulting {@link SQLException}. This is useful for cleaning up after a database query.
    *
-   * @param resultSet {@link ResultSet} to close
-   * @param statement {@link Statement} to close
+   * @param resultSet  {@link ResultSet} to close
+   * @param statement  {@link Statement} to close
    * @param connection {@link Connection} to close
    */
   public static void quietClose(ResultSet resultSet, Statement statement, Connection connection) {

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/IteratorIterable.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/IteratorIterable.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/IteratorIterable.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/IteratorIterable.java Fri Jul 10 09:35:19 2009
@@ -20,8 +20,8 @@
 import java.util.Iterator;
 
 /**
- * <p>Simple utility class that makes an {@link Iterator} {@link Iterable}
- * by returning the {@link Iterator} itself.</p>
+ * <p>Simple utility class that makes an {@link Iterator} {@link Iterable} by returning the {@link Iterator}
+ * itself.</p>
  */
 public final class IteratorIterable<T> implements Iterable<T> {
 

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/IteratorUtils.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/IteratorUtils.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/IteratorUtils.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/IteratorUtils.java Fri Jul 10 09:35:19 2009
@@ -23,9 +23,7 @@
 import java.util.Comparator;
 import java.util.List;
 
-/**
- * <p>{@link java.util.Iterator}-related methods without a better home.</p>
- */
+/** <p>{@link java.util.Iterator}-related methods without a better home.</p> */
 public final class IteratorUtils {
 
   private IteratorUtils() {
@@ -40,10 +38,10 @@
   }
 
   /**
-   * @param iterable {@link Iterable} whose contents are to be put into a {@link List}
+   * @param iterable   {@link Iterable} whose contents are to be put into a {@link List}
    * @param comparator {@link Comparator} defining the sort order of the returned {@link List}
-   * @return a {@link List} with the objects one gets by iterating over the given {@link Iterable},
-   *         sorted according to the given {@link Comparator}
+   * @return a {@link List} with the objects one gets by iterating over the given {@link Iterable}, sorted according to
+   *         the given {@link Comparator}
    */
   public static <K> List<K> iterableToList(Iterable<K> iterable, Comparator<K> comparator) {
     if (iterable == null) {

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/Pair.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/Pair.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/Pair.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/Pair.java Fri Jul 10 09:35:19 2009
@@ -17,9 +17,7 @@
 
 package org.apache.mahout.cf.taste.impl.common;
 
-/**
- * A simple (ordered) pair of two objects. Elements may be null.
- */
+/** A simple (ordered) pair of two objects. Elements may be null. */
 public final class Pair<A, B> {
 
   private final A first;
@@ -45,7 +43,7 @@
     }
     Pair<?, ?> otherPair = (Pair<?, ?>) obj;
     return isEqualOrNulls(first, otherPair.first) &&
-           isEqualOrNulls(second, otherPair.second);
+        isEqualOrNulls(second, otherPair.second);
   }
 
   private static boolean isEqualOrNulls(Object obj1, Object obj2) {

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/PermutingIterator.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/PermutingIterator.java?rev=792856&r1=792855&r2=792856&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/PermutingIterator.java (original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/common/PermutingIterator.java Fri Jul 10 09:35:19 2009
@@ -21,10 +21,7 @@
 import java.util.NoSuchElementException;
 import java.util.Random;
 
-/**
- * An {@link Iterator} that iterates in a random order over a given sequence
- * of elements. It is non-destructive.
- */
+/** An {@link Iterator} that iterates in a random order over a given sequence of elements. It is non-destructive. */
 public final class PermutingIterator<T> implements Iterator<T> {
 
   private final T[] elements;
@@ -67,9 +64,7 @@
     return elements[permutation[offset++]];
   }
 
-  /**
-   * @throws UnsupportedOperationException always
-   */
+  /** @throws UnsupportedOperationException always */
   @Override
   public void remove() {
     throw new UnsupportedOperationException();



Mime
View raw message