<commit_before>{ stdenv, cmake, pkgconfig, SDL2, qtbase, qttools, xorg, fetchzip }:

stdenv.mkDerivation rec {
  name = "antimicro-${version}";
  version = "2.18";

  src = fetchzip {
    url    = "https://github.com/Ryochan7/antimicro/archive/${version}.tar.gz";
    sha256 = "0kyl4xl2am50v2xscgy2irpcdj78f7flgfhljyjck4ynf8d40vb7";
  };

  buildInputs = [
    cmake pkgconfig SDL2 qtbase qttools xorg.libXtst
  ];

  meta = with stdenv.lib; {
    description = "GUI for mapping keyboard and mouse controls to a gamepad";
    homepage = "https://github.com/Ryochan7/antimicro";
    maintainers = with maintainers; [ jb55 ];
    license = licenses.gpl3;
  };
}<commit_msg>antimicro 2.18 -> 2.18.2 The original repo was deleted by it's author. I took the one with the most recent releases I could find. See: https://github.com/Ryochan7/antimicro-packaging/issues/1#issuecomment-205949365<commit_after>{ stdenv, cmake, pkgconfig, SDL2, qtbase, qttools, xorg, fetchFromGitHub }:

stdenv.mkDerivation rec {
  name = "antimicro-${version}";
  version = "2.18.2";

  src = fetchFromGitHub {
    owner = "7185";
    repo = "antimicro";
    rev = "${version}";
    sha256 = "1mqw5idn57yj6c1w8y0byzh0xafcpbhaa6czgljh206abwfixjmk";
  };

  buildInputs = [
    cmake pkgconfig SDL2 qtbase qttools xorg.libXtst
  ];

  meta = with stdenv.lib; {
    description = "GUI for mapping keyboard and mouse controls to a gamepad";
    homepage = "https://github.com/Ryochan7/antimicro";
    maintainers = with maintainers; [ jb55 ];
    license = licenses.gpl3;
  };
}
{'fraction_non_alphanumeric': 0.12475759534583064, 'fraction_numerical': 0.0491273432449903, 'mean_word_length': 3.7195121951219514, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 4, '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': '4424640', 'n_tokens_mistral': 637, 'n_tokens_neox': 588, 'n_words': 128}