<commit_before>class Taisei < Formula
  desc "Clone of Touhou Project shoot-em-up games"
  homepage "https://taisei-project.org/"
  url "https://github.com/taisei-project/taisei.git",
      :tag => "v1.1.2",
      :revision => "3c5da74722b445c6aaf8af7666ba2e7e29fb4ccb"
  revision 2

  bottle do
    cellar :any
    sha256 "3303678cfaa0f5e19f30649cb26042e22029946f7c7d36af58f5e617e41fe28e" => :high_sierra
    sha256 "c8148a8ee90632221ad5790f286d73af43d378e7fdc521a568b5bfb6732844f6" => :sierra
    sha256 "fed47ca7b0254468f374b1319347877a8c1cdb39253985de0151003d97d65e41" => :el_capitan
  end

  depends_on "bash" => :build
  depends_on "cmake" => :build
  depends_on "pkg-config" => :build
  depends_on "freetype"
  depends_on "libpng"
  depends_on "libzip"
  depends_on "python3"
  depends_on "sdl2"
  depends_on "sdl2_mixer"
  depends_on "sdl2_ttf"

  def install
    mkdir "build" do
      system "cmake", "..", "-DOSX_TOOL_PREFIX=", "-DOSX_LIB_PATH=:",
             *std_cmake_args
      system "make", "install"
    end
  end

  def caveats
    "Sound may not work."
  end

  test do
    output = shell_output("#{prefix}/Taisei.app/Contents/MacOS/Taisei -h", 1)
    assert_match "Touhou clone", output
  end
end<commit_msg>taisei 1.2<commit_after>class Taisei < Formula
  desc "Clone of Touhou Project shoot-em-up games"
  homepage "https://taisei-project.org/"
  url "https://github.com/taisei-project/taisei.git",
      :tag => "v1.2",
      :revision => "46fb0f894ad269528ac7fda533c7994eddd9b758"

  bottle do
    cellar :any
    sha256 "3303678cfaa0f5e19f30649cb26042e22029946f7c7d36af58f5e617e41fe28e" => :high_sierra
    sha256 "c8148a8ee90632221ad5790f286d73af43d378e7fdc521a568b5bfb6732844f6" => :sierra
    sha256 "fed47ca7b0254468f374b1319347877a8c1cdb39253985de0151003d97d65e41" => :el_capitan
  end

  depends_on "meson" => :build
  depends_on "ninja" => :build
  depends_on "pkg-config" => :build
  depends_on "freetype"
  depends_on "libpng"
  depends_on "libzip"
  depends_on "python3"
  depends_on "sdl2"
  depends_on "sdl2_mixer"
  depends_on "sdl2_ttf"

  def install
    mkdir "build" do
      system "meson", "--prefix=#{prefix}", "-Ddocs=false", "-Dmacos_bundle=false", ".."
      system "ninja"
      system "ninja", "install"
    end
  end

  def caveats
    "Sound may not work."
  end

  test do
    output = shell_output("#{bin}/taisei -h", 1)
    assert_match "Touhou clone", output
  end
end
{'fraction_non_alphanumeric': 0.11211871393239901, 'fraction_numerical': 0.14220939818631492, 'mean_word_length': 3.922920892494929, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 4, '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': '1728488', 'n_tokens_mistral': 1205, 'n_tokens_neox': 1033, 'n_words': 182}