analyzer

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecentByPush

func RecentByPush(repos []gh.Repo, n int) []gh.Repo

RecentByPush returns the top N repos sorted by most recent push.

func TopByStars

func TopByStars(repos []gh.Repo, n int) []gh.Repo

TopByStars returns the top N repos sorted by star count.

Types

type Language

type Language struct {
	Name       string
	RepoCount  int
	Percentage float64
	BadgeURL   string
	Color      string
}

Language represents a language with its usage percentage.

func AggregateLanguages

func AggregateLanguages(langMaps []map[string]int) []Language

AggregateLanguages normalizes language data per-repo then averages across repos. Each repo has equal weight regardless of size, so a large C project won't dominate over many smaller PHP/Go projects.

type Stats

type Stats struct {
	TotalRepos int
	TotalStars int
	TotalForks int
}

Stats holds aggregate statistics across all repos.

func ComputeStats

func ComputeStats(repos []gh.Repo) Stats

ComputeStats calculates aggregate stats from all repos.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL