@@ -113,7 +113,6 @@ cabalScore p docum =
113
113
tests = boolScor 50 (hasTests p)
114
114
benchs = boolScor 10 (hasBenchmarks p)
115
115
desc = scorer 30 (min 1 (int2Float (S. length $ description p) / 300 ))
116
- -- documentation = boolScor 30 ()
117
116
homeP = boolScor 30 (not $ S. null $ homepage p)
118
117
sourceRp = boolScor 8 (not $ null $ sourceRepos p)
119
118
cats = boolScor 5 (not $ S. null $ category p)
@@ -230,7 +229,7 @@ codeScore documentS haskellL =
230
229
boolScor 1 (haskellL > 700 )
231
230
<> boolScor 1 (haskellL < 80000 )
232
231
<> fracScor 2 (min 1 (haskellL / 5000 ))
233
- <> fracScor 2 (min 1 documentS / ((3000 + haskellL) * 200 ))
232
+ <> fracScor 2 (min 1 documentS / ((3000 + haskellL) * 1600 ))
234
233
235
234
versionScore
236
235
:: [Version ]
@@ -281,11 +280,10 @@ temporalScore p lastUploads versionList recentDownloads = do
281
280
where
282
281
isApp = (isNothing . library) p && (not . null . executables) p
283
282
downloadScore = calcDownScore recentDownloads
284
- calcDownScore i = Scorer 5 $ min
283
+ calcDownScore i = scorer 5 $ min
285
284
( (logBase 2 (int2Float $ max 0 (i - 100 ) + 100 ) - 6.6 )
286
285
/ (if isApp then 5 else 6 )
287
286
)
288
- 5
289
287
packageFreshness = case safeHead lastUploads of
290
288
Nothing -> return 0
291
289
(Just l) -> freshness versionList l isApp
0 commit comments