<commit_before>{ stdenv, fetchurl
, autoconf, automake, libtool, makeWrapper
, perl, bison, flex, glibc, gettext, which, rpm, tetex, LocaleGettext
, bash, pam, TermReadKey, RpcXML, swig, python}:
stdenv.mkDerivation rec {

  name = "apparmor-${version}";
  version = "2.8.1";

  src = fetchurl {
    url = "http://launchpad.net/apparmor/2.8/${version}/+download/${name}.tar.gz";
    sha256 = "1r0a5k14jbiik28m5gql0f3dbxl252jya7i120rrsbzqqnvw6nw7";
  };

  buildInputs = [
    autoconf automake libtool perl bison flex gettext which rpm tetex
    LocaleGettext pam TermReadKey RpcXML swig makeWrapper python ];

  prePatch = ''
    substituteInPlace libraries/libapparmor/src/Makefile.in --replace "/usr/include" "${glibc}/include"
    substituteInPlace libraries/libapparmor/src/Makefile.am --replace "/usr/include" "${glibc}/include"
    substituteInPlace common/Make.rules --replace "/usr/bin/pod2man" "${perl}/bin/pod2man"
    substituteInPlace common/Make.rules --replace "/usr/bin/pod2html" "${perl}/bin/pod2html"<commit_msg>apparmor: update from 2.8.1 to 2.8.2<commit_after>{ stdenv, fetchurl
, autoconf, automake, libtool, makeWrapper
, perl, bison, flex, glibc, gettext, which, rpm, tetex, LocaleGettext
, bash, pam, TermReadKey, RpcXML, swig, python}:
stdenv.mkDerivation rec {

  name = "apparmor-${version}";
  version = "2.8.2";

  src = fetchurl {
    url = "http://launchpad.net/apparmor/2.8/${version}/+download/${name}.tar.gz";
    sha256 = "1fyjvfkvl0fc7agmz64ck8c965940xvcljrczq1z66sydivkybvl";
  };

  buildInputs = [
    autoconf automake libtool perl bison flex gettext which rpm tetex
    LocaleGettext pam TermReadKey RpcXML swig makeWrapper python ];

  prePatch = ''
    substituteInPlace libraries/libapparmor/src/Makefile.in --replace "/usr/include" "${glibc}/include"
    substituteInPlace libraries/libapparmor/src/Makefile.am --replace "/usr/include" "${glibc}/include"
    substituteInPlace common/Make.rules --replace "/usr/bin/pod2man" "${perl}/bin/pod2man"
    substituteInPlace common/Make.rules --replace "/usr/bin/pod2html" "${perl}/bin/pod2html"
{'fraction_non_alphanumeric': 0.14066250600096014, 'fraction_numerical': 0.030724915986557848, 'mean_word_length': 4.427083333333333, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1679937', 'n_tokens_mistral': 794, 'n_tokens_neox': 758, 'n_words': 150}