<commit_before>{ stdenv, fetchurl, gmp, m4 }:

let
  pname = "ecm";
  version = "6.4.4";
  name = "${pname}-${version}";
in

stdenv.mkDerivation {
  inherit name;

  src = fetchurl {
      url = http://gforge.inria.fr/frs/download.php/file/32159/ecm-6.4.4.tar.gz;
      sha256 = "0v5h2nicz9yx78c2d72plbhi30iq4nxbvphja1s9501db4aah4y8";
    };

  buildInputs = [ m4 gmp ];

  doCheck = true;

  meta = {
    description = "Elliptic Curve Method for Integer Factorization";
    license = stdenv.lib.licenses.gpl2Plus;
    homepage = http://ecm.gforge.inria.fr/;
    maintainers = [ stdenv.lib.maintainers.roconnor ];
    platforms = stdenv.lib.platforms.linux;
  };
}<commit_msg>ecm: enable on Darwin<commit_after>{ stdenv, fetchurl, gmp, m4 }:

let
  pname = "ecm";
  version = "6.4.4";
  name = "${pname}-${version}";
in

stdenv.mkDerivation {
  inherit name;

  src = fetchurl {
    url = http://gforge.inria.fr/frs/download.php/file/32159/ecm-6.4.4.tar.gz;
    sha256 = "0v5h2nicz9yx78c2d72plbhi30iq4nxbvphja1s9501db4aah4y8";
  };

  # See https://trac.sagemath.org/ticket/19233
  configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-asm-redc";

  buildInputs = [ m4 gmp ];

  doCheck = true;

  meta = {
    description = "Elliptic Curve Method for Integer Factorization";
    license = stdenv.lib.licenses.gpl2Plus;
    homepage = http://ecm.gforge.inria.fr/;
    maintainers = [ stdenv.lib.maintainers.roconnor ];
    platforms = with stdenv.lib.platforms; linux ++ darwin;
  };
}
{'fraction_non_alphanumeric': 0.14849498327759197, 'fraction_numerical': 0.05284280936454849, 'mean_word_length': 3.286532951289398, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7050793', 'n_tokens_mistral': 665, 'n_tokens_neox': 618, 'n_words': 98}