<commit_before>class Nasm < Formula
  desc "Netwide Assembler (NASM) is an 80x86 assembler"
  homepage "http://www.nasm.us/"
  url "http://www.nasm.us/pub/nasm/releasebuilds/2.13.03/nasm-2.13.03.tar.xz"
  sha256 "812ecfb0dcbc5bd409aaa8f61c7de94c5b8752a7b00c632883d15b2ed6452573"

  bottle do
    cellar :any_skip_relocation
    sha256 "2fa5bb8d830cb03115cc2f12a03dd15bf49674324604760019f3170b5cc089fd" => :high_sierra
    sha256 "0a7e744e56384aae2dd1a9a80c6ae8037fa3c4a0b0481a7c403dbf8db2c1cf19" => :sierra
    sha256 "071188eaf2b8b37f7de944306eddaa632ef7892ef0d9df58fb1aa5fac3bf8b7a" => :el_capitan
  end

  head do
    url "http://repo.or.cz/nasm.git"
    depends_on "autoconf" => :build
    depends_on "asciidoc" => :build
    depends_on "xmlto" => :build
  end

  def install
    system "./autogen.sh" if build.head?
    system "./configure", "--prefix=#{prefix}"
    system "make", "manpages" if build.head?
    system "make", "rdf"
    system "make", "install", "install_rdf"
  end

  test do
    (testpath/"foo.s").write <<-EOS
      mov eax, 0
      mov ebx, 0
      int 0x80
    EOS<commit_msg>nasm: mirror to Bintray (#23998)<commit_after>class Nasm < Formula
  desc "Netwide Assembler (NASM) is an 80x86 assembler"
  homepage "http://www.nasm.us/"
  url "http://www.nasm.us/pub/nasm/releasebuilds/2.13.03/nasm-2.13.03.tar.xz"
  mirror "https://dl.bintray.com/homebrew/mirror/nasm-2.13.03.tar.xz"
  sha256 "812ecfb0dcbc5bd409aaa8f61c7de94c5b8752a7b00c632883d15b2ed6452573"

  bottle do
    cellar :any_skip_relocation
    sha256 "2fa5bb8d830cb03115cc2f12a03dd15bf49674324604760019f3170b5cc089fd" => :high_sierra
    sha256 "0a7e744e56384aae2dd1a9a80c6ae8037fa3c4a0b0481a7c403dbf8db2c1cf19" => :sierra
    sha256 "071188eaf2b8b37f7de944306eddaa632ef7892ef0d9df58fb1aa5fac3bf8b7a" => :el_capitan
  end

  head do
    url "http://repo.or.cz/nasm.git"
    depends_on "autoconf" => :build
    depends_on "asciidoc" => :build
    depends_on "xmlto" => :build
  end

  def install
    system "./autogen.sh" if build.head?
    system "./configure", "--prefix=#{prefix}"
    system "make", "manpages" if build.head?
    system "make", "rdf"
    system "make", "install", "install_rdf"
  end

  test do
    (testpath/"foo.s").write <<-EOS
      mov eax, 0
      mov ebx, 0
      int 0x80
    EOS
{'fraction_non_alphanumeric': 0.12069716775599129, 'fraction_numerical': 0.16209150326797386, 'mean_word_length': 3.773388773388773, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, 'https://': 1, 'lorem ipsum': 0, 'www.': 4, 'xml': 2}, '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': '6461173', 'n_tokens_mistral': 1198, 'n_tokens_neox': 1018, 'n_words': 165}