<commit_before>require 'formula'

class Binutils < Formula
  homepage 'http://www.gnu.org/software/binutils/binutils.html'
  url 'http://ftpmirror.gnu.org/binutils/binutils-2.24.tar.gz'
  mirror 'http://ftp.gnu.org/gnu/binutils/binutils-2.24.tar.gz'
  sha1 '1b2bc33003f4997d38fadaa276c1f0321329ec56'

  # No --default-names option as it interferes with Homebrew builds.

  bottle do
    sha1 "b411f528adb58ccdf068832b84f35da97e510ec9" => :mavericks
    sha1 "506dcb201baa8cf6ffed975c993335f7a48389a1" => :mountain_lion
    sha1 "2726d3a479491570b01fd707e14fabf97185271e" => :lion
  end

  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--program-prefix=g",
                          "--prefix=#{prefix}",
                          "--infodir=#{info}",
                          "--mandir=#{man}",
                          "--disable-werror",
                          "--enable-interwork",
                          "--enable-multilib",
                          "--enable-64-bit-bfd",
                          "--enable-targets=all"
    system "make"
    system "make install"
  end
end<commit_msg>binutils: Add --default-names option for Linux<commit_after>require 'formula'

class Binutils < Formula
  homepage 'http://www.gnu.org/software/binutils/binutils.html'
  url 'http://ftpmirror.gnu.org/binutils/binutils-2.24.tar.gz'
  mirror 'http://ftp.gnu.org/gnu/binutils/binutils-2.24.tar.gz'
  sha1 '1b2bc33003f4997d38fadaa276c1f0321329ec56'

  # No --default-names option as it interferes with Homebrew builds.
  option "default-names", "Do not prepend 'g' to the binary" if OS.linux?

  bottle do
    sha1 "b411f528adb58ccdf068832b84f35da97e510ec9" => :mavericks
    sha1 "506dcb201baa8cf6ffed975c993335f7a48389a1" => :mountain_lion
    sha1 "2726d3a479491570b01fd707e14fabf97185271e" => :lion
  end

  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          ("--program-prefix=g" unless build.include? 'default-names'),
                          "--prefix=#{prefix}",
                          "--infodir=#{info}",
                          "--mandir=#{man}",
                          "--disable-werror",
                          "--enable-interwork",
                          "--enable-multilib",
                          "--enable-64-bit-bfd",
                          "--enable-targets=all"
    system "make"
    system "make install"
  end
end
{'fraction_non_alphanumeric': 0.12947658402203857, 'fraction_numerical': 0.09051554506099961, 'mean_word_length': 1.8338907469342252, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '7457231', 'n_tokens_mistral': 953, 'n_tokens_neox': 824, 'n_words': 130}