<commit_before>{ lib, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  pname = "git-sizer";
  version = "1.3.0";

  goPackagePath = "github.com/github/git-sizer";

  src = fetchFromGitHub {
    owner = "github";
    repo = pname;
    rev = "v${version}";
    sha256 = "0kmyvai5xfalm56ywa6mhdvvjnacdzwcyz28bw0pz9a4gyf1mgvh";
  };

  meta = with lib; {
    description = "Compute various size metrics for a Git repository";<commit_msg>git-sizer: 1.3.0 -> 1.5.0<commit_after>{ lib, buildGoModule, fetchFromGitHub, testVersion, git-sizer }:

buildGoModule rec {
  pname = "git-sizer";
  version = "1.5.0";

  src = fetchFromGitHub {
    owner = "github";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-On7QBTzKfnuuzwMQ8m1odxGqfIKL+EDg5V05Kxuhmqw=";
  };

  vendorSha256 = "sha256-oRlsD99XiI/0ZWibjyRcycmGab+vMbXrV5hIdIyUDYg=";

  ldflags = [ "-s" "-w" "-X main.BuildVersion=${version}" ];

  doCheck = false;

  passthru.tests.vesion = testVersion {
    package = git-sizer;
  };

  meta = with lib; {
    description = "Compute various size metrics for a Git repository";
    homepage = "https://github.com/github/git-sizer";
{'fraction_non_alphanumeric': 0.144473455178416, 'fraction_numerical': 0.04177545691906005, 'mean_word_length': 3.6370967741935485, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5626368', 'n_tokens_mistral': 498, 'n_tokens_neox': 461, 'n_words': 84}