<commit_before>{stdenv, fetchurl, pcre}:

let version = "2.6.3"; in

stdenv.mkDerivation {
  name = "gnugrep-${version}";
  
  patches = [ ./malloc.patch ];
  
  src = fetchurl {
    url = "mirror://gnu/grep/grep-${version}.tar.gz";
    sha256 = "0rnnljzcpb2sl5zabww7gbzk9r6kp8kycsqrf909d6jdak8yah53";
  };
  
  buildInputs = [pcre];

  doCheck = if stdenv.isDarwin then false else true;

  # On Mac OS X, force use of mkdir -p, since Grep's fallback
  # (./install-sh) is broken.
  preConfigure = ''
    export MKDIR_P="mkdir -p"
  '';<commit_msg>GNU grep 2.7.<commit_after>{stdenv, fetchurl, pcre}:

let version = "2.7"; in

stdenv.mkDerivation {
  name = "gnugrep-${version}";
  
  patches = [ ./malloc.patch ];
  
  src = fetchurl {
    url = "mirror://gnu/grep/grep-${version}.tar.gz";
    sha256 = "1b8vksfd1ngharac3ygaqim3lrf0yqap992sg0vfm7572l88655d";
  };
  
  buildInputs = [pcre];

  doCheck = if stdenv.isDarwin then false else true;

  # On Mac OS X, force use of mkdir -p, since Grep's fallback
  # (./install-sh) is broken.
  preConfigure = ''
    export MKDIR_P="mkdir -p"
  '';
{'fraction_non_alphanumeric': 0.1526508226691042, 'fraction_numerical': 0.04204753199268738, 'mean_word_length': 3.1793893129770994, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7131857', 'n_tokens_mistral': 489, 'n_tokens_neox': 461, 'n_words': 94}