<commit_before>{stdenv, fetchurl, imake, libX11, libXtst, libXext}:

stdenv.mkDerivation {
  name = "x2x-1.27";

  src = fetchurl {
    url = "http://github.com/downloads/dottedmag/x2x/x2x-1.27.tar.gz";
    sha256 = "0dha0kn1lbc4as0wixsvk6bn4innv49z9a0sm5wlx4q1v0vzqzyj";
  };

  buildInputs = [ imake libX11 libXtst libXext ];

  hardeningDisable = [ "format" ];

  configurePhase = ''
    xmkmf
    makeFlags="BINDIR=$out/bin x2x"
  '';

  installPhase = ''
    mkdir -p $out/bin
    mkdir -p $out/man/man1
    cp x2x $out/bin/
    cp x2x.1 $out/man/man1/
  '';

  meta = with stdenv.lib; {
    description = "Allows the keyboard, mouse on one X display to be used to control another X display";
    homepage = https://github.com/dottedmag/x2x;
    license = licenses.bsd3;
    platforms = platforms.linux;
  };
}<commit_msg>x2x: use imake setup hook<commit_after>{ stdenv, fetchurl, imake, libX11, libXtst, libXext, gccmakedep }:

stdenv.mkDerivation {
  name = "x2x-1.27";

  src = fetchurl {
    url = "http://github.com/downloads/dottedmag/x2x/x2x-1.27.tar.gz";
    sha256 = "0dha0kn1lbc4as0wixsvk6bn4innv49z9a0sm5wlx4q1v0vzqzyj";
  };

  nativeBuildInputs = [ imake gccmakedep ];
  buildInputs = [ libX11 libXtst libXext ];

  hardeningDisable = [ "format" ];

  buildFlags = [ "x2x" ];

  installPhase = ''
    install -D x2x $out/bin/x2x
    install -D x2x.1 $out/man/man1/x2x.1
  '';

  meta = with stdenv.lib; {
    description = "Allows the keyboard, mouse on one X display to be used to control another X display";
    homepage = https://github.com/dottedmag/x2x;
    license = licenses.bsd3;
    platforms = platforms.linux;
  };
}
{'fraction_non_alphanumeric': 0.1337386018237082, 'fraction_numerical': 0.049240121580547115, 'mean_word_length': 3.1989795918367347, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1338793', 'n_tokens_mistral': 710, 'n_tokens_neox': 679, 'n_words': 132}