File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 [ds]
2727 (distinct (ds/-select-by :author ds)))
2828
29- (defn entity-with-author-count
30- " Calculates the number of different authors for the given module, m.
31- Returns a tuple of [entity-name number-of-distinct-authors]."
32- [m ds]
33- [m (ds/-nrows (of-module m ds))])
34-
3529(defn- authors-of-entity
3630 [entity-group]
3731 (->>
5953 Returns a dataset with the columns :entity :n-authors."
6054 ([ds options]
6155 (by-count ds options :desc ))
62- ([ds options order-fn]
56+ ([ds _options order-fn]
6357 (->> ds
6458 (ds/-group-by :entity )
6559 (map make-entity-with-author-count)
6660 (ds/-dataset [:entity :n-authors :n-revs ])
6761 (ds/-order-by [:n-authors :n-revs ] order-fn))))
68-
69- (defn all-authors
70- [ds]
71- (->> ds
72- all
73- (ds/-dataset [:author ])
74- (ds/-order-by [:author ] :asc )))
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments