<commit_before>class Frobtads < Formula
  desc "TADS interpreter and compilers"
  homepage "http://www.tads.org/frobtads.htm"
  url "http://www.tads.org/frobtads/frobtads-1.2.3.tar.gz"
  sha256 "88c6a987813d4be1420a1c697e99ecef4fa9dd9bc922be4acf5a3054967ee788"

  bottle do
    sha256 "48bb40f88489ea4a7c8fc0351a23dd4a243ac61b2e710bcd28b22db3320e53a1" => :sierra
    sha256 "0fac4c4359ac59bffa5838884fb53ee6cf18c4b6efbc0d5fa2e16ca1c1675cc6" => :el_capitan
    sha256 "5acaa00274668115972537bf48e6f855b66f7144a2bdfceb4a396d5837dbbc59" => :yosemite
  end

  def install
    # Fix compilation with Xcode 9
    # https://github.com/realnc/frobtads/pull/2
    inreplace "tads3/vmtz.cpp",
              "result->set(tcur > 0 ? tcur - 1 : tcur)",
              "result->set((intptr_t)tcur > 0 ? tcur - 1 : tcur)"

    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"<commit_msg>frobtads: update 1.2.3 bottle.<commit_after>class Frobtads < Formula
  desc "TADS interpreter and compilers"
  homepage "http://www.tads.org/frobtads.htm"
  url "http://www.tads.org/frobtads/frobtads-1.2.3.tar.gz"
  sha256 "88c6a987813d4be1420a1c697e99ecef4fa9dd9bc922be4acf5a3054967ee788"

  bottle do
    rebuild 1
    sha256 "bee493bbabeae1390a581f8e949db51c98facef463ea4cbb4e92cb096cf77339" => :high_sierra
    sha256 "8bc8bce88594b63897623bd11ac5e91fe37cde7608935cb17c93676f30a74109" => :sierra
    sha256 "9eff8f1df1176294c2fedbbc90c269a1b1d38e794265c0a48289bb9a2eab77dc" => :el_capitan
  end

  def install
    # Fix compilation with Xcode 9
    # https://github.com/realnc/frobtads/pull/2
    inreplace "tads3/vmtz.cpp",
              "result->set(tcur > 0 ? tcur - 1 : tcur)",
              "result->set((intptr_t)tcur > 0 ? tcur - 1 : tcur)"

    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
{'fraction_non_alphanumeric': 0.1126461211477152, 'fraction_numerical': 0.18544102019128586, 'mean_word_length': 3.559322033898305, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '4780366', 'n_tokens_mistral': 984, 'n_tokens_neox': 798, 'n_words': 104}