<commit_before>{ stdenv
, fetchurl

, freetype
, fontconfig
, xorg
, zlib
}:

stdenv.mkDerivation rec {
  name = "dmenu-4.7";

  src = fetchurl {
    url = "http://dl.suckless.org/tools/${name}.tar.gz";
    multihash = "QmfWHbjBueUn281KveLuFytjLepEBBMAGvj8YKcrfBR79Y";
    sha256 = "a75635f8dc2cbc280deecb906ad9b7594c5c31620e4a01ba30dc83984881f7b9";
  };

  buildInputs = [
    freetype
    fontconfig
    xorg.libX11
    xorg.libXft
    xorg.libXinerama
    xorg.libXrender
    xorg.renderproto
    xorg.xproto
    zlib
  ];

  postPatch = ''
    sed -i dmenu_run \
      -i dmenu_path \
      -re 's!\<(dmenu|dmenu_run|dmenu_path|stest)\>!'"$out/bin"'/&!g'
  '';

  preConfigure = ''
    sed -i config.mk \
      -e "s,PREFIX = /usr/local,PREFIX = $out,g"
  '';

  meta = with stdenv.lib; {
    description = "Dynamic menu for X";
    homepage = http://tools.suckless.org/dmenu;
    license = licenses.mit;
    maintainers = with maintainers; [
      codyopel
      wkennington
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}
<commit_msg>dmenu: Fix cache<commit_after>{ stdenv
, fetchurl

, freetype
, fontconfig
, xorg
, zlib
}:

stdenv.mkDerivation rec {
  name = "dmenu-4.7";

  src = fetchurl {
    url = "http://dl.suckless.org/tools/${name}.tar.gz";
    multihash = "QmfWHbjBueUn281KveLuFytjLepEBBMAGvj8YKcrfBR79Y";
    sha256 = "a75635f8dc2cbc280deecb906ad9b7594c5c31620e4a01ba30dc83984881f7b9";
  };

  buildInputs = [
    freetype
    fontconfig
    xorg.libX11
    xorg.libXft
    xorg.libXinerama
    xorg.libXrender
    xorg.renderproto
    xorg.xproto
    zlib
  ];

  postPatch = ''
    sed -i dmenu_run \
      -re 's!\<(dmenu|dmenu_path)\>!'"$out/bin"'/&!g'
    sed -i dmenu_path \
      -re 's!\<(stest)\>!'"$out/bin"'/&!g'
  '';

  preConfigure = ''
    sed -i config.mk \
      -e "s,PREFIX = /usr/local,PREFIX = $out,g"
  '';

  meta = with stdenv.lib; {
    description = "Dynamic menu for X";
    homepage = http://tools.suckless.org/dmenu;
    license = licenses.mit;
    maintainers = with maintainers; [
      codyopel
      wkennington
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}

{'fraction_non_alphanumeric': 0.14013035381750466, 'fraction_numerical': 0.0521415270018622, 'mean_word_length': 2.611764705882353, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '3083403', 'n_tokens_mistral': 980, 'n_tokens_neox': 920, 'n_words': 137}