<commit_before>{ stdenv
, fetchurl
, unzip
}:

stdenv.mkDerivation rec{
  name = "amrnb-11.0.0.0";

  # http://www.3gpp.org/DynaReport/26104.htm
  # NOTE: When updating amrnb-3gpp, update every instance of 26104-d00 to the
  #       updated file name.
  amrnb_3gpp = fetchurl {
    # Rel-13
    url = "http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-d00.zip";
    multihash = "QmWFJTCdcERKsPwkkWLGhRhz54QEosYWmVJpxTkKw3CFuh";
    sha256 = "d5447f8a672243dd9db32ba64fd69181da725cac1f7b347c0af95d9949a47619";
  };

  src = fetchurl {
    url = "http://www.penguin.cz/~utx/ftp/amr/${name}.tar.bz2";
    multihash = "QmbeaQgStCwmNCUDfiX6LKPVxpC14SETBAvVr4P7k3t6m1";
    sha256 = "3890004b665278b963ecaae2dc1321dcee29c53ea9d91aaf18d9286105e0f1e1";
  };

  nativeBuildInputs = [
    unzip
  ];

  postPatch = /* Fix hardcoded 3GPP source version */ ''
    sed -i Makefile.{in,am} \
      -i configure{,.ac} \
      -i prepare_sources.sh.in \
      -e 's/26104-b00/26104-d00/g'
  '';

  configureFlags = [
    "--without-downloader"
  ];

  preConfigure = ''
    cp -v $amrnb_3gpp 26104-d00.zip
  '';

  meta = with stdenv.lib; {
    description = "AMR Narrow-Band Codec";
    homepage = http://www.penguin.cz/~utx/amr;
    # The wrapper code is free, but not the libraries from 3gpp.
    license = licenses.unfreeRedistributable;
    maintainers = with maintainers; [
      codyopel
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}
<commit_msg>amrnb: amnd-3gpp Rel-13 -> Rel-14<commit_after>{ stdenv
, fetchurl
, lib
, unzip
}:

stdenv.mkDerivation rec{
  name = "amrnb-11.0.0.0";

  # http://www.3gpp.org/DynaReport/26104.htm
  # NOTE: When updating amrnb-3gpp, update every instance of 26104-e00 to the
  #       updated file name.
  amrnb_3gpp = fetchurl {
    # Rel-14
    url = "http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-e00.zip";
    multihash = "QmaQRi5VKMGgRTgxhjARAbNB5aTgKCLpskfCvg3QwEoGH9";
    sha256 = "5d0c70576cea76bf200c6412306a6152758391b1aa40e7e14271169bbafa9125";
  };

  src = fetchurl {
    url = "http://www.penguin.cz/~utx/ftp/amr/${name}.tar.bz2";
    multihash = "QmbeaQgStCwmNCUDfiX6LKPVxpC14SETBAvVr4P7k3t6m1";
    sha256 = "3890004b665278b963ecaae2dc1321dcee29c53ea9d91aaf18d9286105e0f1e1";
  };

  nativeBuildInputs = [
    unzip
  ];

  postPatch = /* Fix hardcoded 3GPP source version */ ''
    sed -i Makefile.{in,am} \
      -i configure{,.ac} \
      -i prepare_sources.sh.in \
      -e 's/26104-b00/26104-e00/g'
  '';

  configureFlags = [
    "--without-downloader"
  ];

  preConfigure = ''
    cp -v $amrnb_3gpp 26104-e00.zip
  '';

  meta = with lib; {
    description = "AMR Narrow-Band Codec";
    homepage = http://www.penguin.cz/~utx/amr;
    # The wrapper code is free, but not the libraries from 3gpp.
    license = licenses.unfreeRedistributable;
    maintainers = with maintainers; [
      codyopel
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}

{'fraction_non_alphanumeric': 0.13130287648054145, 'fraction_numerical': 0.1143824027072758, 'mean_word_length': 2.9518716577540105, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 2, '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': '1344434', 'n_tokens_mistral': 1483, 'n_tokens_neox': 1282, 'n_words': 192}