• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moosetechnology / GitProjectHealth / 16164507010

09 Jul 2025 08:37AM UTC coverage: 72.954% (-1.9%) from 74.896%
16164507010

Pull #216

github

web-flow
Merge 058e20017 into 8f0fcd09b
Pull Request #216: add issue class in model

10 of 758 new or added lines in 11 files covered. (1.32%)

4 existing lines in 1 file now uncovered.

17584 of 24103 relevant lines covered (72.95%)

0.73 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/GitLabHealth-Model-Visualization/GLHCommitDistributionAverageByWeekDayVisualization.class.st
1
Class {
2
        #name : #GLHCommitDistributionAverageByWeekDayVisualization,
3
        #superclass : #GLHCommitDistributionVisualization,
4
        #category : #'GitLabHealth-Model-Visualization'
5
}
6

7
{ #category : #'instance creation' }
NEW
8
GLHCommitDistributionAverageByWeekDayVisualization >> forCommits: aCommitsCollection [
×
NEW
9

×
NEW
10
        | c  horizontal commitGroups  dates data |
×
NEW
11
        c := RSBoxPlot new.
×
NEW
12
        aCommitsCollection ifEmpty: [ ^ c canvas ].
×
NEW
13

×
NEW
14
        dates := Date dayNames.
×
NEW
15

×
NEW
16
        "default is group by commitCreator (initialize)"
×
NEW
17
        commitGroups := aCommitsCollection groupedBy: [ :commit |
×
NEW
18
                                commit committed_date asDate ].
×
NEW
19

×
NEW
20

×
NEW
21
        data := (dates collect: [ :day |
×
NEW
22
                         | commitsAtDay |
×
NEW
23
                         commitsAtDay := OrderedCollection new.
×
NEW
24
                         commitGroups keysAndValuesDo: [ :date :commitsAtDate |
×
NEW
25
                                 date dayOfWeekName = day ifTrue: [
×
NEW
26
                                         commitsAtDay add: commitsAtDate size ] ].
×
NEW
27

×
NEW
28
                         day -> (commitsAtDay ifEmpty: [ { 0 } ]) ]) asDictionary.
×
NEW
29
        
×
NEW
30
        c y: data values.
×
NEW
31

×
NEW
32
        horizontal := c horizontalTick fromNames: dates.
×
NEW
33
        horizontal configuration fontSize: 10.
×
NEW
34
        horizontal useDiagonalLabel.
×
NEW
35

×
NEW
36

×
NEW
37
        c verticalTick integer.
×
NEW
38
        c ylabel: 'Average commits'.
×
NEW
39
        c title: 'Average commits by day of the week'.
×
NEW
40
        c build.
×
NEW
41

×
NEW
42
        "lb := RSLegend new.
×
NEW
43
        lb layout vertical.
×
NEW
44
        commitGroups keys doWithIndex: [ :groupObject :index |
×
NEW
45
                lb
×
NEW
46
                        text: groupObject fullDisplayString
×
NEW
47
                        withBoxColor: (c plots at: index) computeColor ].
×
NEW
48
        lb container: c canvas.
×
NEW
49
        lb location
×
NEW
50
                right;
×
NEW
51
                middle;
×
NEW
52
                offset: 10 @ 0.
×
NEW
53
        lb build."
×
NEW
54
        ^ c canvas
×
NEW
55
]
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc