<commit_before>{ stdenv
, bison
, fetchTritonPatch
, fetchurl
, flex

, ncurses
, readline
}:

stdenv.mkDerivation rec {
  name = "bc-1.06.95";

  src = fetchurl {
    url = "http://alpha.gnu.org/gnu/bc/${name}.tar.bz2";
    sha256 = "1k2yf9bhjxjwfhz0d1c5hmmrs8rxi9al0d4a39p8lgf0zayapr3y";
  };

  patches = [
    (fetchTritonPatch {
      rev = "4eaff4fc1ef159416bd98cf46c56dafa9d755a7a";
      file = "bc/bc-1.06-mem-leak.patch";
      sha256 = "27e30d0389b79556609a74a4bb2a19f208f0e527bf08357ad79e0f453f15ac17";
    })
    (fetchTritonPatch {
      rev = "4eaff4fc1ef159416bd98cf46c56dafa9d755a7a";
      file = "bc/bc-1.06-void_uninitialized.patch";
      sha256 = "cb210e21f6a9ab5cac591259b1649120b0b74a722dc02ec17cb09bc9a19f3b8a";
    })
  ];

  configureFlags = [
    "--without-libedit"
    "--with-readline"
  ];

  postConfigure =
  /* Don't regen docs -- configure produces a small fragment
     that includes the version info which causes all pages to
     regen (newer file). */ ''
  	touch -r doc doc/*
  '';

  nativeBuildInputs = [
    bison
    flex
  ];

  buildInputs = [
    ncurses
    readline
  ];

  postBuild =
  /* Simple test */ ''
    echo "quit" | ./bc/bc -l Test/checklib.b
  '';

  doCheck = true;
  enableParallelBuilding = false;

  meta = with stdenv.lib; {
    description = "GNU software calculator";
    homepage = http://www.gnu.org/software/bc/;
    license = with licenses; [
      lgpl21
      gpl2
    ];
    maintainers = with maintainers; [ ];
    platforms = with platforms;
      i686-linux
      ++ x86_64-linux;
  };
}<commit_msg>bc: cleanup<commit_after>{ stdenv
, bison
, fetchTritonPatch
, fetchurl
, flex

, ncurses
, readline
}:

stdenv.mkDerivation rec {
  name = "bc-1.06.95";

  src = fetchurl {
    url = "http://alpha.gnu.org/gnu/bc/${name}.tar.bz2";
    sha256 = "1k2yf9bhjxjwfhz0d1c5hmmrs8rxi9al0d4a39p8lgf0zayapr3y";
  };

  nativeBuildInputs = [
    bison
    flex
  ];

  buildInputs = [
    ncurses
    readline
  ];

  patches = [
    (fetchTritonPatch {
      rev = "4eaff4fc1ef159416bd98cf46c56dafa9d755a7a";
      file = "bc/bc-1.06-mem-leak.patch";
      sha256 = "27e30d0389b79556609a74a4bb2a19f208f0e527bf08357ad79e0f453f15ac17";
    })
    (fetchTritonPatch {
      rev = "4eaff4fc1ef159416bd98cf46c56dafa9d755a7a";
      file = "bc/bc-1.06-void_uninitialized.patch";
      sha256 = "cb210e21f6a9ab5cac591259b1649120b0b74a722dc02ec17cb09bc9a19f3b8a";
    })
  ];

  configureFlags = [
    "--without-libedit"
    "--with-readline"
  ];

  postConfigure =
    /* Don't regen docs -- configure produces a small fragment
       that includes the version info which causes all pages to
       regen (newer file). */ ''
    	touch -r doc doc/*
    '';

  postBuild =
    /* Simple test */ ''
      echo "quit" | ./bc/bc -l Test/checklib.b
    '';

  doCheck = true;

  meta = with stdenv.lib; {
    description = "GNU software calculator";
    homepage = http://www.gnu.org/software/bc/;
    license = with licenses; [
      lgpl21
      gpl2
    ];
    maintainers = with maintainers; [ ];
    platforms = with platforms;
      i686-linux
      ++ x86_64-linux;
  };
}
{'fraction_non_alphanumeric': 0.12404336734693877, 'fraction_numerical': 0.10714285714285714, 'mean_word_length': 2.660443407234539, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2734136', 'n_tokens_mistral': 1446, 'n_tokens_neox': 1272, 'n_words': 203}