-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstruct.go
52 lines (49 loc) · 3.35 KB
/
struct.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Copyright 2018 Fedir RYKHTIK. All rights reserved.
// Use of this source code is governed by the GNU GPL 3.0
// license that can be found in the LICENSE file.
package main
import "time"
// Repository structure with selcted data keys for JSON processing
type Repository struct {
Name string `header:"Name"`
URL string `header:"URL"`
Author string `header:"Author"`
AuthorLocation string `header:"Author's location"`
MainLanguage string `header:"Main language"`
AllLanguages string `header:"All used languages"`
Description string `header:"Description"`
TotalCodeSize int `header:"Total code size"`
License string `header:"License"`
AuthorsFollowers int `header:"Author's followers"`
Top10ContributorsFollowers int `header:"Top 10 contributors followers"`
CreatedAt time.Time `header:"Created at"`
Age int `header:"Age in days"`
TotalCommits int `header:"Total commits"`
TotalAdditions int `header:"Total additions"`
TotalDeletions int `header:"Total deletions"`
TotalCodeChanges int `header:"Total code changes"`
LastCommitDate time.Time `header:"Last commit date"`
CommitsByDay float64 `header:"Commits/day"`
AverageContributionPeriod int `header:"Average contribution period by contributor, days"`
MediCommitSize int `header:"Medium commit size"`
TotalTags int `header:"Total releases"`
Watchers int `header:"Stargazers"`
Forks int `header:"Forks"`
Contributors int `header:"Contributors"`
ActiveForkersPercentage float64 `header:"Active forkers(%)"`
ReturningContributors int `header:"Returning contributors (more than 4 weeks)"`
OpenIssues int `header:"Open issues"`
ClosedIssues int `header:"Closed issues"`
TotalIssues int `header:"Total issues"`
IssueByDay float64 `header:"Issue/day"`
ClosedIssuesPercentage float64 `header:"Closed issues(%)"`
PlacementPopularity int `header:"Placement by popularity"`
PlacementAge int `header:"Placement by age"`
PlacementTotalCommits int `header:"Placement by total commits"`
PlacementTotalTags int `header:"Placement by total tags"`
PlacementTop10ContributorsFollowers int `header:"Placement by top 10 contributors followers"`
PlacementClosedIssuesPercentage int `header:"Placement by closed issues percentage"`
PlacementCommitsByDay int `header:"Placement by commits by day"`
PlacementActiveForkersColumn int `header:"Placement by active forkers column"`
PlacementOverall int `header:"Placement overall"`
}