<commit_before>{ stdenv, fetchurl, m4, perl, gfortran, texLive, ffmpeg, tk
, imagemagick, liblapack
}:

stdenv.mkDerivation rec {
  name = "sage-6.1.1";

  src = fetchurl {
    url = "http://mirrors.xmission.com/sage/src/sage-6.1.1.tar.gz";
    sha256 = "0kbzs0l9q7y34jv3f8rd1c2mrjsjkdgaw6mfdwjlpg9g4gghmq5y";
  };

  buildInputs = [ m4 perl gfortran texLive ffmpeg tk imagemagick liblapack ];

  enableParallelBuilding = true;

  preConfigure = ''
    export SAGE_NUM_THREADS=$NIX_BUILD_CORES
    sed -i 's/if ! [ -d "$HOME" ]/if [ -d "$HOME" ]/' src/bin/sage-env
  '' + stdenv.lib.optionalString stdenv.isDarwin ''
    sed -i "s/ld_version = try_run('ld  -v')/ld_version = 'Apple'/" \
      build/pkgs/atlas/configuration.py
  '';

  meta = {
    homepage = "http://www.sagemath.org";
    description = "A free open source mathematics software system";
    license = stdenv.lib.licenses.gpl2Plus;
  };
}
<commit_msg>sage: fix download url for version 6.1.1<commit_after>{ stdenv, fetchurl, m4, perl, gfortran, texLive, ffmpeg, tk
, imagemagick, liblapack
}:

stdenv.mkDerivation rec {
  name = "sage-6.1.1";

  src = fetchurl {
    url = "http://www.sagemath.org/src-old/sage-6.1.1.tar.gz";
    sha256 = "0kbzs0l9q7y34jv3f8rd1c2mrjsjkdgaw6mfdwjlpg9g4gghmq5y";
  };

  buildInputs = [ m4 perl gfortran texLive ffmpeg tk imagemagick liblapack ];

  enableParallelBuilding = true;

  preConfigure = ''
    export SAGE_NUM_THREADS=$NIX_BUILD_CORES
    sed -i 's/if ! [ -d "$HOME" ]/if [ -d "$HOME" ]/' src/bin/sage-env
  '' + stdenv.lib.optionalString stdenv.isDarwin ''
    sed -i "s/ld_version = try_run('ld  -v')/ld_version = 'Apple'/" \
      build/pkgs/atlas/configuration.py
  '';

  meta = {
    homepage = "http://www.sagemath.org";
    description = "A free open source mathematics software system";
    license = stdenv.lib.licenses.gpl2Plus;
  };
}

{'fraction_non_alphanumeric': 0.1480086114101184, 'fraction_numerical': 0.029601722282023683, 'mean_word_length': 3.3536299765807964, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6606062', 'n_tokens_mistral': 801, 'n_tokens_neox': 777, 'n_words': 138}