<commit_before>require 'formula'

class Groonga < Formula
  homepage 'http://groonga.org/'
  url 'http://packages.groonga.org/source/groonga/groonga-4.0.1.tar.gz'
  sha1 '96859d352cb6439f8dbe8e5fb55373f796a4a11e'

  bottle do
    sha1 "e39684c9c88a738496ebbcb0ba2e33c21d922043" => :mavericks
    sha1 "7692109f8b2ca457c1ae2a6d7314c24d05cda339" => :mountain_lion
    sha1 "a28d4c0d7de6a8590b8c3a6c1ff0def06485fe84" => :lion
  end

  depends_on 'pkg-config' => :build
  depends_on 'pcre'
  depends_on 'msgpack'
  depends_on "mecab" => :optional
  depends_on "mecab-ipadic" if build.with? "mecab"

  depends_on 'glib' if build.include? 'enable-benchmark'

  option 'enable-benchmark', "Enable benchmark program for developer use"

  def install
    args = %W[
      --prefix=#{prefix}
      --with-zlib
      --disable-zeromq
    ]

    args << "--enable-benchmark" if build.include? "enable-benchmark"<commit_msg>Groonga 4.0.2<commit_after>require 'formula'

class Groonga < Formula
  homepage 'http://groonga.org/'
  url 'http://packages.groonga.org/source/groonga/groonga-4.0.2.tar.gz'
  sha1 'daa89ac16f00e8cb7f11ebf28cc15dc36a84f4ce'

  bottle do
    sha1 "e39684c9c88a738496ebbcb0ba2e33c21d922043" => :mavericks
    sha1 "7692109f8b2ca457c1ae2a6d7314c24d05cda339" => :mountain_lion
    sha1 "a28d4c0d7de6a8590b8c3a6c1ff0def06485fe84" => :lion
  end

  depends_on 'pkg-config' => :build
  depends_on 'pcre'
  depends_on 'msgpack'
  depends_on "mecab" => :optional
  depends_on "mecab-ipadic" if build.with? "mecab"

  depends_on 'glib' if build.include? 'enable-benchmark'

  option 'enable-benchmark', "Enable benchmark program for developer use"

  def install
    args = %W[
      --prefix=#{prefix}
      --with-zlib
      --disable-zeromq
    ]

    args << "--enable-benchmark" if build.include? "enable-benchmark"
{'fraction_non_alphanumeric': 0.11964873765093303, 'fraction_numerical': 0.11525795828759605, 'mean_word_length': 3.980874316939891, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 0, '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': '7557498', 'n_tokens_mistral': 868, 'n_tokens_neox': 776, 'n_words': 126}