You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.
The purpose of this issue is to determine metrics for tracking and measuring code reuse and open source code policies. These metrics are meant to, over time, track whether or not adoption of these policies are successful. The recommendations are broken down into the two policies: Code Reuse & Open Source Code.
Code Reuse Policy Metrics
Repo Reuse Metadata – Metadata in repos.json (such as array of repository links) that designate whether a project has components that originate from other federal government repositories.
Exempted Repositories – For repositories that are excluded from the source code policy, would it make sense to include repo reuse metadata?
Package Metadata – For code available in package managers, create a metadata schema that defines the name of the package and the package managers it is available on. Doing so will allow for simpler dependency reconciliation in recommendation remove the repo wiki if not in use #3. It may also allow us to pull usage data from the package managers themselves.
With dependency data, package metadata, and reuse metadata, we could compile Code.gov dependency trees to visually and numerically represent code reuse. This would also be helpful in regards to displaying "Built With" info on Code.gov.
Open Source Code Policy Metrics
GitHub/Repo Statistics – Statistics that can be pulled from any given repository include:
Number of stars/followers/forks
Commit count & frequency
Pull Request approval/denial rates & time frames
Addition/deletion count & frequency
Number of contributors
Contributor activity (including repeat and one-time contributors)
Issue open/close rate
These statistics are most important for open source tracking, but they would also be beneficial in determining the overall activity, liveliness, and importance of a repository. All metrics being tracked on a daily or weekly basis would be useful for time-based analysis. Anything shorter (such as hourly) would likely be too frequent. It would make sense to start with GitHub and then proceed to GitLab, BitBucket, etc. as GitHub is the largest provider. https://developer.github.com/v3/repos/statistics/.
Code.gov Statistics – Track traffic to individual Code.gov project pages by time segments. We can compare project page metrics to increases/decreases in repo metrics. Similarly, if a community/discussion feature is built out for Code.gov, we could track contribution and traffic metrics.
Google Trends – Use google trends to analyze public interest in the project name
Please post suggestions/additions!
The text was updated successfully, but these errors were encountered:
I'm not sure if this is out of scope for the project, but it may be a good idea to also look at the software licenses for projects that code.gov uses, and check whether or not code.gov is in compliance with those software licenses.
Metrics for Success
Hi All,
The purpose of this issue is to determine metrics for tracking and measuring code reuse and open source code policies. These metrics are meant to, over time, track whether or not adoption of these policies are successful. The recommendations are broken down into the two policies: Code Reuse & Open Source Code.
Code Reuse Policy Metrics
Repo Reuse Metadata – Metadata in repos.json (such as array of repository links) that designate whether a project has components that originate from other federal government repositories.
Exempted Repositories – For repositories that are excluded from the source code policy, would it make sense to include repo reuse metadata?
Example JSON
Package Metadata – For code available in package managers, create a metadata schema that defines the name of the package and the package managers it is available on. Doing so will allow for simpler dependency reconciliation in recommendation remove the repo wiki if not in use #3. It may also allow us to pull usage data from the package managers themselves.
Example JSON
Dependency Checking – A tool built for (1st level?) dependency discovery & checking in regards to package managers such as
With dependency data, package metadata, and reuse metadata, we could compile Code.gov dependency trees to visually and numerically represent code reuse. This would also be helpful in regards to displaying "Built With" info on Code.gov.
Open Source Code Policy Metrics
These statistics are most important for open source tracking, but they would also be beneficial in determining the overall activity, liveliness, and importance of a repository. All metrics being tracked on a daily or weekly basis would be useful for time-based analysis. Anything shorter (such as hourly) would likely be too frequent. It would make sense to start with GitHub and then proceed to GitLab, BitBucket, etc. as GitHub is the largest provider. https://developer.github.com/v3/repos/statistics/.
Please post suggestions/additions!
The text was updated successfully, but these errors were encountered: