lib/attractor/suggester.rb in attractor-0.4.3 vs lib/attractor/suggester.rb in attractor-0.5.0

- old
+ new

@@ -11,9 +11,9 @@ products = @values.map { |val| val.churn * val.complexity } products.extend(DescriptiveStatistics) quantile = products.percentile(threshold.to_i) @values.select { |val| val.churn * val.complexity > quantile } - .sort_by { |val| val.churn * val.complexity }.reverse + .sort_by { |val| val.churn * val.complexity }.reverse end end end