<commit_before>class Wabt < Formula
  desc "Web Assembly Binary Toolkit"
  homepage "https://github.com/WebAssembly/wabt"
  url "https://github.com/WebAssembly/wabt.git",
      tag:      "1.0.24",
      revision: "21279a861fa3dbac9af9d2bab16c741df17a86af"
  license "Apache-2.0"

  livecheck do
    url :stable
    strategy :github_latest
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "0c3a634c829542de5a75e37a1bf6c0af5611c23c7db2fdff67405d78d1b5d3a7"
    sha256 cellar: :any_skip_relocation, big_sur:       "2fd468189b6686a97c30cb2c7936e724d49fa5a769c791087470de5ad0a4ace5"
    sha256 cellar: :any_skip_relocation, catalina:      "41c4dd8e0e66a6a9b9e61e6afe1c9c2ca59435128dc98efd4a14dca038a06716"
    sha256 cellar: :any_skip_relocation, mojave:        "d205531f9c54a60c1a92526cf931d15f0d281893546d4b3bf3bbefbdd36be470"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "d0f9491f2bedfe53c73cc56a3f8a5dd0f1e04fa76e713cfb9d5ab9b370d5089f"
  end

  depends_on "cmake" => :build
  depends_on "python@3.9" => :build

  def install
    mkdir "build" do
      system "cmake", "..", "-DBUILD_TESTS=OFF", *std_cmake_args
      system "make", "install"
    end
  end

  test do
    (testpath/"sample.wast").write("(module (memory 1) (func))")
    system "#{bin}/wat2wasm", testpath/"sample.wast"
  end
end<commit_msg>wabt: add WASI support<commit_after>class Wabt < Formula
  desc "Web Assembly Binary Toolkit"
  homepage "https://github.com/WebAssembly/wabt"
  url "https://github.com/WebAssembly/wabt.git",
      tag:      "1.0.24",
      revision: "21279a861fa3dbac9af9d2bab16c741df17a86af"
  license "Apache-2.0"
  revision 1

  livecheck do
    url :stable
    strategy :github_latest
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "0c3a634c829542de5a75e37a1bf6c0af5611c23c7db2fdff67405d78d1b5d3a7"
    sha256 cellar: :any_skip_relocation, big_sur:       "2fd468189b6686a97c30cb2c7936e724d49fa5a769c791087470de5ad0a4ace5"
    sha256 cellar: :any_skip_relocation, catalina:      "41c4dd8e0e66a6a9b9e61e6afe1c9c2ca59435128dc98efd4a14dca038a06716"
    sha256 cellar: :any_skip_relocation, mojave:        "d205531f9c54a60c1a92526cf931d15f0d281893546d4b3bf3bbefbdd36be470"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "d0f9491f2bedfe53c73cc56a3f8a5dd0f1e04fa76e713cfb9d5ab9b370d5089f"
  end

  depends_on "cmake" => :build
  depends_on "python@3.9" => :build

  def install
    mkdir "build" do
      system "cmake", "..", "-DBUILD_TESTS=OFF", "-DWITH_WASI=ON", *std_cmake_args
      system "make", "install"
    end
  end

  test do
    (testpath/"sample.wast").write("(module (memory 1) (func))")
    system "#{bin}/wat2wasm", testpath/"sample.wast"
  end
end
{'fraction_non_alphanumeric': 0.09757887013939838, 'fraction_numerical': 0.17865003668378576, 'mean_word_length': 4.634297520661157, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1624872', 'n_tokens_mistral': 1434, 'n_tokens_neox': 1208, 'n_words': 173}