Skip to content

Commit

Permalink
Remove dead code such as earlier prototypes
Browse files Browse the repository at this point in the history
  • Loading branch information
adamtornhill committed Dec 29, 2020
1 parent d9c9405 commit c41a1ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 61 deletions.
15 changes: 1 addition & 14 deletions src/code_maat/analysis/authors.clj
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@
[ds]
(distinct (ds/-select-by :author ds)))

(defn entity-with-author-count
"Calculates the number of different authors for the given module, m.
Returns a tuple of [entity-name number-of-distinct-authors]."
[m ds]
[m (ds/-nrows (of-module m ds))])

(defn- authors-of-entity
[entity-group]
(->>
Expand Down Expand Up @@ -59,16 +53,9 @@
Returns a dataset with the columns :entity :n-authors."
([ds options]
(by-count ds options :desc))
([ds options order-fn]
([ds _options order-fn]
(->> ds
(ds/-group-by :entity)
(map make-entity-with-author-count)
(ds/-dataset [:entity :n-authors :n-revs])
(ds/-order-by [:n-authors :n-revs] order-fn))))

(defn all-authors
[ds]
(->> ds
all
(ds/-dataset [:author])
(ds/-order-by [:author] :asc)))
47 changes: 0 additions & 47 deletions src/code_maat/parsers/limitters.clj

This file was deleted.

0 comments on commit c41a1ae

Please sign in to comment.