<commit_before>{ stdenv, fetchFromGitHub, python2Packages }:

let
  bName = "check_esxi_hardware";
  pName = stdenv.lib.replaceStrings [ "_" ] [ "-" ] "${bName}";

in python2Packages.buildPythonApplication rec {
  name = "${pName}-${version}";
  version = "20161013";

  src = fetchFromGitHub {
    owner  = "Napsty";
    repo   = bName;
    rev    = version;
    sha256 = "19zybcg62dqcinixnp1p8zw916x3w7xvy6dlsmn347iigfa5s55s";
  };

  dontBuild = true;
  doCheck = false;

  installPhase = ''
    runHook preInstall

    install -Dm755 -t $out/bin                ${bName}.py
    install -Dm644 -t $out/share/doc/${pName} README.md

    runHook postInstall
  '';

  propagatedBuildInputs = with python2Packages; [ pywbem ];

  meta = with stdenv.lib; {
    homepage = https://www.claudiokuenzler.com/nagios-plugins/;
    license = licenses.gpl2;
    maintainers = with maintainers; [ peterhoeg ];
  };
}
<commit_msg>check-esxi-hardware: 20161013 -> 20181001<commit_after>{ stdenv, fetchFromGitHub, python2Packages }:

let
  bName = "check_esxi_hardware";
  pName = stdenv.lib.replaceStrings [ "_" ] [ "-" ] "${bName}";

in python2Packages.buildPythonApplication rec {
  name = "${pName}-${version}";
  version = "20181001";

  src = fetchFromGitHub {
    owner  = "Napsty";
    repo   = bName;
    rev    = version;
    sha256 = "0azfacxcnnxxfqzrhh29k8cnjyr88gz35bi6h8fq931fl3plv10l";
  };

  dontBuild = true;
  doCheck = false;

  installPhase = ''
    runHook preInstall

    install -Dm755 -t $out/bin                ${bName}.py
    install -Dm644 -t $out/share/doc/${pName} README.md

    runHook postInstall
  '';

  propagatedBuildInputs = with python2Packages; [ pywbem ];

  meta = with stdenv.lib; {
    homepage = https://www.claudiokuenzler.com/nagios-plugins/;
    license = licenses.gpl2;
    maintainers = with maintainers; [ peterhoeg ];
  };
}

{'fraction_non_alphanumeric': 0.1326530612244898, 'fraction_numerical': 0.04940923737916219, 'mean_word_length': 3.1492204899777283, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '810315', 'n_tokens_mistral': 764, 'n_tokens_neox': 699, 'n_words': 124}