We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 946e5be commit 4829229Copy full SHA for 4829229
src/code_maat/app/time_based_grouper.clj
@@ -98,13 +98,18 @@
98
remove-empty-windows
99
combine-commits-to-logical-changesets))
100
101
+(defn- partition-commits-into-sliding-periods-of
102
+ [time-period padded-cs]
103
+ (->> padded-cs
104
+ (sort-by first)
105
+ drop-date-key
106
+ (partition time-period 1)))
107
+
108
(defn- commits->sliding-window-seq
109
[time-period cs]
110
(->> cs
111
pad-commits-to-complete-time-series
- (sort-by first)
- drop-date-key
- (partition time-period 1)
112
+ (partition-commits-into-sliding-periods-of time-period)
113
combine-sliding-commits))
114
115
(defn- validated-time-period-from
0 commit comments