<commit_before>class Theos < Formula
  homepage "http://theiphonewiki.net/index.php/Theos"
  url "https://github.com/kirb/theos.git", :branch => "master"
  version "stable"

  depends_on :xcode

  # These tools are the most common ones used in conjunction with Theos, but
  # they are not required.
  depends_on "ldid" => :recommended
  depends_on "dpkg" => :recommended

  keg_only <<-EOS.undent
    Theos is intended to be self-contained. It also contains "include" and "lib"
    directories that should not be mixed with the system's. (Ignore the generic
    message from Homebrew below.)
  EOS

  def install
    prefix.install Dir["*"]
  end

  def caveats; <<-EOS.undent
    Theos has been installed to #{opt_prefix}.

    To use Theos, you must first set the $THEOS variable in your environment, and
    add the bin directory to your $PATH:

      export THEOS=#{opt_prefix}
      export PATH=$THEOS/bin:$PATH

    The #{HOMEBREW_PREFIX}/theos symlink that existed in previous version of this
    formula has been removed. Please use #{opt_prefix}.
  EOS
  end

  test do
    # TODO: this is broken
    require "open3"
    Open3.popen3("#{bin}/nic.pl --packagename=sh.brew.test --name=test --template=iphone/tweak") do |stdin, _, _|
      stdin.write "com.apple.springboard\nSpringBoard\n"
    end

    cd "test" do
      system bin/"logos", "Tweak.xm"
      system "make"
    end
  end
end
<commit_msg>[theos] Fix 'Calling <<-EOS.undent is disabled!'<commit_after>class Theos < Formula
  homepage "http://theiphonewiki.net/index.php/Theos"
  url "https://github.com/kirb/theos.git", :branch => "master"
  version "stable"

  depends_on :xcode

  # These tools are the most common ones used in conjunction with Theos, but
  # they are not required.
  depends_on "ldid" => :recommended
  depends_on "dpkg" => :recommended

  keg_only <<~EOS
    Theos is intended to be self-contained. It also contains "include" and "lib"
    directories that should not be mixed with the system's. (Ignore the generic
    message from Homebrew below.)
  EOS

  def install
    prefix.install Dir["*"]
  end

  def caveats; <<~EOS
    Theos has been installed to #{opt_prefix}.

    To use Theos, you must first set the $THEOS variable in your environment, and
    add the bin directory to your $PATH:

      export THEOS=#{opt_prefix}
      export PATH=$THEOS/bin:$PATH

    The #{HOMEBREW_PREFIX}/theos symlink that existed in previous version of this
    formula has been removed. Please use #{opt_prefix}.
  EOS
  end

  test do
    # TODO: this is broken
    require "open3"
    Open3.popen3("#{bin}/nic.pl --packagename=sh.brew.test --name=test --template=iphone/tweak") do |stdin, _, _|
      stdin.write "com.apple.springboard\nSpringBoard\n"
    end

    cd "test" do
      system bin/"logos", "Tweak.xm"
      system "make"
    end
  end
end

{'fraction_non_alphanumeric': 0.1052446321717705, 'fraction_numerical': 0.0021119324181626186, 'mean_word_length': 3.130813953488372, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '993665', 'n_tokens_mistral': 952, 'n_tokens_neox': 924, 'n_words': 311}