<commit_before>require "formula"

class Mruby < Formula
  homepage "http://www.mruby.org"
  url "https://github.com/mruby/mruby/archive/1.0.0.tar.gz"
  sha1 "6d4cb1b3594b1c609cc3e39d458d2ff27e4f9b4d"

  head "https://github.com/mruby/mruby.git"

  bottle do
    cellar :any
    sha1 "22bbdac4d6f903b24b1d79d64b311464fdd42161" => :mavericks
    sha1 "5076d06d254730a052d88b4a9b4b2d1f630a0449" => :mountain_lion
    sha1 "a88b7302f383dae1f9ca67a3fcbbd603841eec86" => :lion
  end

  depends_on "bison" => :build

  def install
    system "make"

    cd "build/host/" do
      lib.install Dir["lib/*.a"]
      prefix.install %w{bin mrbgems mrblib tools}
    end
  end

  test do<commit_msg>mruby: install includes<commit_after>require "formula"

class Mruby < Formula
  homepage "http://www.mruby.org"
  url "https://github.com/mruby/mruby/archive/1.0.0.tar.gz"
  sha1 "6d4cb1b3594b1c609cc3e39d458d2ff27e4f9b4d"

  head "https://github.com/mruby/mruby.git"

  bottle do
    cellar :any
    sha1 "22bbdac4d6f903b24b1d79d64b311464fdd42161" => :mavericks
    sha1 "5076d06d254730a052d88b4a9b4b2d1f630a0449" => :mountain_lion
    sha1 "a88b7302f383dae1f9ca67a3fcbbd603841eec86" => :lion
  end

  depends_on "bison" => :build

  def install
    system "make"

    cd "build/host/" do
      lib.install Dir["lib/*.a"]
      prefix.install %w{bin mrbgems mrblib tools}
    end

    prefix.install "include"
  end

  test do
{'fraction_non_alphanumeric': 0.11189801699716714, 'fraction_numerical': 0.1501416430594901, 'mean_word_length': 3.6633663366336635, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '7342987', 'n_tokens_mistral': 747, 'n_tokens_neox': 634, 'n_words': 99}