<commit_before>{stdenv, fetchurl, m4}:
stdenv.mkDerivation rec {
  name = "mpir-${version}";
  version = "2.7.2";
  buildInputs = [m4];
  src = fetchurl {
    url = "http://mpir.org/mpir-${version}.tar.bz2";
    sha256 = "1v25dx7cah2vxwzgq78hpzqkryrfxhwx3mcj3jjq3xxljlsw7m57";
  };<commit_msg>mpir: add patch to account for sed update<commit_after>{ stdenv, fetchurl, fetchpatch, m4 }:

stdenv.mkDerivation rec {
  name = "mpir-${version}";
  version = "2.7.2";

  buildInputs = [ m4 ];

  src = fetchurl {
    url = "http://mpir.org/mpir-${version}.tar.bz2";
    sha256 = "1v25dx7cah2vxwzgq78hpzqkryrfxhwx3mcj3jjq3xxljlsw7m57";
  };

  patches = [ (fetchpatch {
    url = "https://github.com/wbhart/mpir/commit/fdb590023f7ca4b2e881a2e9573718e7ed180f03.patch";
    sha256 = "152pdqpf8xxr4ky25f9zrvfb66i1wzy6a5b91h4zmpqjdffqf1iw";
  }) ];

{'fraction_non_alphanumeric': 0.15393794749403342, 'fraction_numerical': 0.10739856801909307, 'mean_word_length': 4.276729559748428, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '3737851', 'n_tokens_mistral': 432, 'n_tokens_neox': 392, 'n_words': 49}