Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,14 @@ access to a configured GrimoireLab instance and HealthyCode models.

## Run HealthyCode locally

See [Installation guide]/(deploy/README.md).
See [Installation guide](deploy/README.md).

## High Theory of Operations for HealthyCode

- PurlDB health API receives a PURL. If the health score is available in the DB
the score and metrics are return as-is.
- Otherwise, PurlDB finds the corresponding Git repository.
- PurlDB calls is scan worker (ScanCode.io) to run the "scan_repo_health"
pipeline on that git repo
- PurlDB calls scan worker (ScanCode.io) to run the "scan_repo_health" pipeline on that git repo
- That pipeline calls the HealthyCode script
- HealthyCode calls GrimoireLab to clone and collect the repository history
- When the data is ready, HealthyCode computes the metrics over a time window.
Expand Down Expand Up @@ -234,7 +233,7 @@ e.g., top author's share of commits over the last 12 months.
The model was trained on about 1,150 popular npm packages drawn from Census II,
Census III, and deps.dev. As open source experts, we reviewed about 200 of these
npm packages and classified them as "healthy" or "unhealthy" to create a training
dataset. We computed a logistic regression to determine and learn learned which
dataset. We computed a logistic regression to determine and learned which
metrics best discriminate between the two groups and how much weight each metric
would get in the score computation.

Expand Down
Loading