<commit_before>{ stdenv, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  pname = "hivemind";
  version = "1.0.6";
  goPackagePath = "github.com/DarthSim/hivemind";

  src = fetchFromGitHub {
    owner = "DarthSim";
    repo = "hivemind";
    rev = "v${version}";
    sha256 = "0afcnd03wsdphbbpha65rv5pnv0x6ldnnm6rnv1m6xkkywgnzx95";
  };

  meta = with stdenv.lib; {
    homepage = https://github.com/DarthSim/;<commit_msg>hivemind: Patch /bin/sh to runtimeShell<commit_after>{ stdenv, buildGoPackage, fetchFromGitHub, runtimeShell }:

buildGoPackage rec {
  pname = "hivemind";
  version = "1.0.6";
  goPackagePath = "github.com/DarthSim/hivemind";

  postPatch = ''
    substituteInPlace process.go --replace \"/bin/sh\" \"${runtimeShell}\"
  '';

  src = fetchFromGitHub {
    owner = "DarthSim";
    repo = "hivemind";
    rev = "v${version}";
    sha256 = "0afcnd03wsdphbbpha65rv5pnv0x6ldnnm6rnv1m6xkkywgnzx95";
  };

  meta = with stdenv.lib; {
    homepage = https://github.com/DarthSim/;
{'fraction_non_alphanumeric': 0.1472636815920398, 'fraction_numerical': 0.03781094527363184, 'mean_word_length': 3.813397129186603, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3006821', 'n_tokens_mistral': 424, 'n_tokens_neox': 404, 'n_words': 64}