https://github.com/softwaresystemslaboratory/prime-bus-factor
A tool to calculate the bus factor metric of a Git repository
https://github.com/softwaresystemslaboratory/prime-bus-factor
Last synced: about 1 month ago
JSON representation
A tool to calculate the bus factor metric of a Git repository
- Host: GitHub
- URL: https://github.com/softwaresystemslaboratory/prime-bus-factor
- Owner: SoftwareSystemsLaboratory
- License: bsd-3-clause
- Created: 2021-09-16T23:49:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-02T16:54:07.000Z (over 2 years ago)
- Last Synced: 2025-03-19T00:38:43.906Z (2 months ago)
- Language: Python
- Homepage:
- Size: 80.1 KB
- Stars: 1
- Watchers: 0
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Citation: CITATION.cff
Awesome Lists containing this project
README
# CLIME Bus Factor
[](https://zenodo.org/badge/latestdoi/407346377)
[](https://github.com/SoftwareSystemsLaboratory/clime-bus-factor/actions/workflows/release.yml)> A tool to calculate the bus factor metric of a Git repository
## Table of Contents
- [CLIME Bus Factor](#clime-bus-factor)
- [Table of Contents](#table-of-contents)
- [About](#about)
- [Licensing](#licensing)
- [How To Use](#how-to-use)
- [Installation](#installation)
- [Command Line Options](#command-line-options)## About
The Software Systems Laboratory (SSL) CLIME Bus Factor project is a tool to calculate the bus factor metric of a Git repository. This tool relies on the output of the [CLIME Commits tool](https://github.com/SoftwareSystemsLaboratory/clime-commits).
### Licensing
This project is licensed under the BSD-3-Clause. See the [LICENSE](LICENSE) for more information.
## How To Use
### Installation
You can install the tool via `pip` with either of the two following one-liners:
- `pip install --upgrade pip clime-metrics`
- `pip install --upgrade pip clime-bus-factor`### Command Line Options
`clime-git-bus-factor-compute -h`
``` shell
usage: CLIME Bus Factor Calculator [-h] [-i INPUT] [-o OUTPUT] [-v]A tool to calculate the bus factor of a Git repository
options:
-h, --help show this help message and exit
-i INPUT, --input INPUT
Commits JSON file. DEFAULT: ./commits_loc.json
-o OUTPUT, --output OUTPUT
Output JSON file. DEFAULT: ./bus_factor.json
-b BIN, --bin BIN
Bin containing the number of days between computed bus
factor values. DEFAULT: 1
-v, --version Display version of the toolAuthor(s): Nicholas M. Synovic, Matthew Hyatt, George K. Thiruvathukal
````clime-git-bus-factor-graph -h`
``` shell
usage: CLIME Bus Factor Grapher [-h] [-i INPUT] [-o OUTPUT] [--type TYPE]
[--title TITLE] [--x-label X_LABEL]
[--y-label Y_LABEL] [--stylesheet STYLESHEET]
[-v]A tool to graph the bus factor of a repository
options:
-h, --help show this help message and exit
-i INPUT, --input INPUT
JSON export from clime-git-bus-factor-compute.
DEFAULT: ./bus_factor.json
-o OUTPUT, --output OUTPUT
Filename of the graph. DEFAULT: ./bus_factor.pdf
--type TYPE Type of figure to plot. DEFAULT: line
--title TITLE Title of the figure. DEFAULT: ""
--x-label X_LABEL X axis label of the figure. DEFAULT: ""
--y-label Y_LABEL Y axis label of the figure. DEFAULT: ""
--stylesheet STYLESHEET
Filepath of matplotlib stylesheet to use. DEFAULT: ""
-v, --version Display version of the toolAuthor(s): Nicholas M. Synovic, Matthew Hyatt, George K. Thiruvathukal
```