<commit_before>{ stdenv, fetchFromGitHub, qtbase, qmakeHook, makeWrapper, libX11 }:

stdenv.mkDerivation rec {
  name = "cmst-2016.01.28";

  src = fetchFromGitHub {
    sha256 = "1zf4jnrnbi05mrq1fnsji5zx60h1knrkr64pwcz2c7q8p59k4646";
    rev    = name;
    repo   = "cmst";
    owner  = "andrew-bibb";
  };

  buildInputs = [ qtbase makeWrapper qmakeHook ];

  preConfigure = ''
    substituteInPlace ./cmst.pro \
      --replace "/usr/bin" "$out/bin" \
      --replace "/usr/share" "$out/usr/share"

    substituteInPlace ./cmst.pri \
      --replace "/usr/lib" "$out/lib" \
      --replace "/usr/share" "$out/share"

    substituteInPlace ./apps/cmstapp/cmstapp.pro \
      --replace "/usr/bin" "$out/bin" \
      --replace "/usr/share" "$out/share"
<commit_msg>cmst: 2016.01.28 -> 2016.04.03 (#17134)<commit_after>{ stdenv, fetchFromGitHub, qtbase, qmakeHook, makeWrapper, libX11 }:

stdenv.mkDerivation rec {
  name = "cmst-${version}";
  version = "2016.04.03";

  src = fetchFromGitHub {
    repo = "cmst";
    owner = "andrew-bibb";
    rev = name;
    sha256 = "1334ynhq1lxcfqln3bq17hy1awyfnn3zhzpsnymlyp0z3h4ydpp9";
  };

  nativeBuildInputs = [ makeWrapper qmakeHook ];

  buildInputs = [ qtbase ];

  enableParallelBuilding = true;

  preConfigure = ''
    substituteInPlace ./cmst.pro \
      --replace "/usr/bin" "$out/bin" \
      --replace "/usr/share" "$out/usr/share"

    substituteInPlace ./cmst.pri \
      --replace "/usr/lib" "$out/lib" \
      --replace "/usr/share" "$out/share"

    substituteInPlace ./apps/cmstapp/cmstapp.pro \
      --replace "/usr/bin" "$out/bin" \
      --replace "/usr/share" "$out/share"

{'fraction_non_alphanumeric': 0.16544566544566544, 'fraction_numerical': 0.04945054945054945, 'mean_word_length': 2.7081447963800906, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '4369316', 'n_tokens_mistral': 691, 'n_tokens_neox': 635, 'n_words': 108}