<commit_before>{ stdenv, fetchurl }:

let
  version = "2.0";
in
stdenv.mkDerivation {
  name = "bash-completion-${version}";

  src = fetchurl {
    url = "http://bash-completion.alioth.debian.org/files/bash-completion-${version}.tar.bz2";
    sha256 = "e5a490a4301dfb228361bdca2ffca597958e47dd6056005ef9393a5852af5804";
  };

  doCheck = true;

  meta = {
    homepage = "http://bash-completion.alioth.debian.org/";
    description = "Programmable completion for the bash shell";
    license = "GPL";

    maintainers = [ stdenv.lib.maintainers.simons ];
  };
}<commit_msg>bash-completion: automatically source any completion files that the user might have installed in ~/.nix-profile/etc/bash_completion.d<commit_after>{ stdenv, fetchurl }:

let
  version = "2.0";
in
stdenv.mkDerivation {
  name = "bash-completion-${version}";

  src = fetchurl {
    url = "http://bash-completion.alioth.debian.org/files/bash-completion-${version}.tar.bz2";
    sha256 = "e5a490a4301dfb228361bdca2ffca597958e47dd6056005ef9393a5852af5804";
  };

  postInstall = ''
    sed -i "$out/share/bash-completion/bash_completion" \
        -e 's|: .{BASH_COMPLETION_COMPAT_DIR:=.*}|BASH_COMPLETION_COMPAT_DIR="$HOME/.nix-profile/etc/bash_completion.d"|'
  '';

  doCheck = true;

  meta = {
    homepage = "http://bash-completion.alioth.debian.org/";
    description = "Programmable completion for the bash shell";
    license = "GPL";

    maintainers = [ stdenv.lib.maintainers.simons ];
  };
}
{'fraction_non_alphanumeric': 0.14789687924016282, 'fraction_numerical': 0.06512890094979647, 'mean_word_length': 3.851973684210526, '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': '961936', 'n_tokens_mistral': 629, 'n_tokens_neox': 527, 'n_words': 84}