<commit_before>{ lib, fetchFromGitHub, buildGoPackage }:

buildGoPackage {
  pname = "prometheus-nextcloud-exporter";
  version = "unstable-2019-10-12";

  src = fetchFromGitHub {
    owner = "xperimental";
    repo = "nextcloud-exporter";
    rev = "215c8b6b2daa3125798d883fe222bc419240e7ab";
    sha256 = "1xpc6q6zp92ckkyd24cfl65vyzjv60qwh44ys6mza4k6yrxhacv4";
  };

  goPackagePath = "github.com/xperimental/nextcloud-exporter";

  goDeps = ./nextcloud-exporter-deps.nix;

  doCheck = true;

  meta = with lib; {<commit_msg>prometheus-nextcloud-exporter: use tagged version<commit_after>{ lib, fetchFromGitHub, buildGoPackage }:

buildGoPackage rec {
  pname = "prometheus-nextcloud-exporter";
  version = "0.1.0";

  src = fetchFromGitHub {
    owner = "xperimental";
    repo = "nextcloud-exporter";
    rev = "v${version}";
    sha256 = "1xpc6q6zp92ckkyd24cfl65vyzjv60qwh44ys6mza4k6yrxhacv4";
  };

  goPackagePath = "github.com/xperimental/nextcloud-exporter";

  goDeps = ./nextcloud-exporter-deps.nix;

  doCheck = true;

  meta = with lib; {
{'fraction_non_alphanumeric': 0.12464319695528069, 'fraction_numerical': 0.07326355851569934, 'mean_word_length': 4.313131313131313, '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': '2557536', 'n_tokens_mistral': 471, 'n_tokens_neox': 416, 'n_words': 60}