<commit_before>{ stdenv, fetchFromGitHub, gnugrep
, legacySupport ? false }:

stdenv.mkDerivation rec {
  name = "zstd-${version}";
  version = "1.3.2";

  src = fetchFromGitHub {
    sha256 = "1hwh6pw1z3y5kpwcwxrk8cwc83anigiqhy3z06ywy1jll8im57pz";
    rev = "v${version}";
    repo = "zstd";
    owner = "facebook";
  };

  makeFlags = [
    "ZSTD_LEGACY_SUPPORT=${if legacySupport then "1" else "0"}"<commit_msg>zstd: 1.3.2 -> 1.3.3<commit_after>{ stdenv, fetchFromGitHub, gnugrep
, legacySupport ? false }:

stdenv.mkDerivation rec {
  name = "zstd-${version}";
  version = "1.3.3";

  src = fetchFromGitHub {
    sha256 = "15h9i9ygry0znlmvll5r21lzwgyqzynaw9q2wbj4bcn7zjy4c1pn";
    rev = "v${version}";
    repo = "zstd";
    owner = "facebook";
  };

  makeFlags = [
    "ZSTD_LEGACY_SUPPORT=${if legacySupport then "1" else "0"}"
{'fraction_non_alphanumeric': 0.15449101796407186, 'fraction_numerical': 0.06107784431137724, 'mean_word_length': 3.9467455621301775, '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': '3733716', 'n_tokens_mistral': 388, 'n_tokens_neox': 358, 'n_words': 59}