<commit_before>{stdenv, fetchurl, autoconf}:

let
  version = "0.15.1b";
in
stdenv.mkDerivation rec {
  name = "libmad-${version}";

  src = fetchurl {
    url = "mirror://sourceforge/mad/libmad/${version}/${name}.tar.gz";
    multihash = "QmWuZPxbgcQEspBQGJwrrHNshYFbdBGUDTjpdBAKf1nQwf";
    sha256 = "bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690";
  };

  patches = [ ./001-mips_removal_h_constraint.patch ./pkgconfig.patch ]
  # optimize.diff is taken from https://projects.archlinux.org/svntogit/packages.git/tree/trunk/optimize.diff?h=packages/libmad
  # It is included here in order to fix a build failure in Clang
  # But it may be useful to fix other, currently unknown problems as well
  ++ stdenv.lib.optional stdenv.cc.isClang [ ./optimize.diff ];

  nativeBuildInputs = [ autoconf ];

  # The -fforce-mem flag has been removed in GCC 4.3.
  preConfigure = ''
    autoconf
    substituteInPlace configure --replace "-fforce-mem" ""
    substituteInPlace configure --replace "arch=\"-march=i486\"" ""
  '';

  meta = with stdenv.lib; {
    homepage    = http://sourceforge.net/projects/mad/;
    description = "A high-quality, fixed-point MPEG audio decoder supporting MPEG-1 and MPEG-2";
    license     = licenses.gpl2;
    maintainers = with maintainers; [ lovek323 ];
    platforms   = platforms.all;
  };
}<commit_msg>libmad: remove reference to isClang<commit_after>{stdenv, fetchurl, autoconf}:

let
  version = "0.15.1b";
in
stdenv.mkDerivation rec {
  name = "libmad-${version}";

  src = fetchurl {
    url = "mirror://sourceforge/mad/libmad/${version}/${name}.tar.gz";
    multihash = "QmWuZPxbgcQEspBQGJwrrHNshYFbdBGUDTjpdBAKf1nQwf";
    sha256 = "bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690";
  };

  patches = [ ./001-mips_removal_h_constraint.patch ./pkgconfig.patch ];

  nativeBuildInputs = [ autoconf ];

  # The -fforce-mem flag has been removed in GCC 4.3.
  preConfigure = ''
    autoconf
    substituteInPlace configure --replace "-fforce-mem" ""
    substituteInPlace configure --replace "arch=\"-march=i486\"" ""
  '';

  meta = with stdenv.lib; {
    homepage    = http://sourceforge.net/projects/mad/;
    description = "A high-quality, fixed-point MPEG audio decoder supporting MPEG-1 and MPEG-2";
    license     = licenses.gpl2;
    maintainers = with maintainers; [ lovek323 ];
    platforms   = platforms.all;
  };
}
{'fraction_non_alphanumeric': 0.12844036697247707, 'fraction_numerical': 0.04920767306088407, 'mean_word_length': 3.6046065259117084, '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': '7549131', 'n_tokens_mistral': 953, 'n_tokens_neox': 884, 'n_words': 172}