<commit_before>{stdenv, fetchurl, perl, perlXMLParser, xkbcomp, gettext, intltool}:

stdenv.mkDerivation rec {
  name = "xkeyboard-config-1.9";

  src = fetchurl {
    url = "mirror://xorg/individual/data/xkeyboard-config/${name}.tar.bz2";
    sha256 = "0df2iad598pxw3fzkx10f7irqah0fgawx262d07s04x0whn9ql9b";
  };

  buildInputs = [perl perlXMLParser xkbcomp gettext intltool];

  patches = [ ./eo.patch ];

  preConfigure = ''
    configureFlags="--with-xkb-base=$out/etc/X11/xkb -with-xkb-rules-symlink=xorg,xfree86"
    sed -e 's@#!\s*/bin/bash@#! /bin/sh@' -i rules/merge.sh
  '';

  postInstall = ''
    cat ${./level3-deadkeys-us-intl} >> $out/etc/X11/xkb/symbols/us
  '';
}
<commit_msg>* Update xkeyboard-config to 2.1.  (The latest version, 2.3, requires   a newer version of libX11 than we have.)<commit_after>{ stdenv, fetchurl, perl, perlXMLParser, xkbcomp, gettext, intltool  }:

stdenv.mkDerivation rec {
  name = "xkeyboard-config-2.1";

  src = fetchurl {
    url = "mirror://xorg/individual/data/xkeyboard-config/${name}.tar.bz2";
    sha256 = "0x9hkb4iqz64gcabzkdcfy4p78sdhnpjwh54g8wx5bdgy9087vpr";
  };

  buildInputs = [ perl perlXMLParser xkbcomp gettext intltool ];

  patches = [ ./eo.patch ];

  preConfigure = ''
    configureFlags="--with-xkb-base=$out/etc/X11/xkb -with-xkb-rules-symlink=xorg,xfree86"
    sed -e 's@#!\s*/bin/bash@#! /bin/sh@' -i rules/merge.sh
  '';

  postInstall = ''
    cat ${./level3-deadkeys-us-intl} >> $out/etc/X11/xkb/symbols/us
  '';
}

{'fraction_non_alphanumeric': 0.17181208053691274, 'fraction_numerical': 0.04563758389261745, 'mean_word_length': 3.5876923076923077, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6877837', 'n_tokens_mistral': 673, 'n_tokens_neox': 636, 'n_words': 94}