<commit_before>{ stdenv, lib, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  name = "syncthing-${version}";
  version = "0.12.15";
  rev = "v${version}";

  buildFlags = "--tags noupgrade,release";
  
  goPackagePath = "github.com/syncthing/syncthing";

  src = fetchFromGitHub {
    inherit rev;
    owner = "syncthing";
    repo = "syncthing";
    sha256 = "0g4sj509h45iq6g7b0pl88rbbn7c7s01774yjc6bl376x1xrl6a1";
  };

  goDeps = ./deps.nix;

  postPatch = ''
    # Mostly a cosmetic change
    sed -i 's,unknown-dev,${version},g' cmd/syncthing/main.go
  '';
}<commit_msg>syncthing012: update go tags argument<commit_after>{ stdenv, lib, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  name = "syncthing-${version}";
  version = "0.12.15";
  rev = "v${version}";

  goPackagePath = "github.com/syncthing/syncthing";

  src = fetchFromGitHub {
    inherit rev;
    owner = "syncthing";
    repo = "syncthing";
    sha256 = "0g4sj509h45iq6g7b0pl88rbbn7c7s01774yjc6bl376x1xrl6a1";
  };

  goDeps = ./deps.nix;

  postPatch = ''
    # Mostly a cosmetic change
    sed -i 's,unknown-dev,${version},g' cmd/syncthing/main.go
  '';

  preBuild = ''
    export buildFlagsArray+=("-tags" "noupgrade release")
  '';
}
{'fraction_non_alphanumeric': 0.1502843216896832, 'fraction_numerical': 0.057676685621445976, 'mean_word_length': 3.7022900763358777, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '7054771', 'n_tokens_mistral': 536, 'n_tokens_neox': 491, 'n_words': 84}