<commit_before>require 'formula'

class Yajl < Formula
  homepage 'http://lloyd.github.io/yajl/'
  url 'https://github.com/lloyd/yajl/archive/2.1.0.tar.gz'
  sha256 '3fb73364a5a30efe615046d07e6db9d09fd2b41c763c5f7d3bfb121cd5c5ac5a'

  bottle do
    cellar :any
    sha1 "418941bfd0684cf14ae0bebc65324e99b76a3aa4" => :mavericks
    sha1 "f59aa705d9324e1c4a47bbba7ba50b74b3649ca3" => :mountain_lion
    sha1 "1bea5088df669781cc1835a97ae991773ad7b36b" => :lion
  end

  # Configure uses cmake internally
  depends_on 'cmake' => :build

  def install
    ENV.deparallelize

    system "cmake", ".", *std_cmake_args
    system "make install"
    (include/'yajl').install Dir['src/api/*.h']
  end

  test do
    output = pipe_output("#{bin}/json_verify", "[0,1,2,3]").strip
    assert_equal "JSON is valid", output
  end
end
<commit_msg>yajl: update 2.1.0 bottle.<commit_after>require 'formula'

class Yajl < Formula
  homepage 'http://lloyd.github.io/yajl/'
  url 'https://github.com/lloyd/yajl/archive/2.1.0.tar.gz'
  sha256 '3fb73364a5a30efe615046d07e6db9d09fd2b41c763c5f7d3bfb121cd5c5ac5a'

  bottle do
    cellar :any
    revision 3
    sha1 "3365b3fd3e47023adf9aacdff66dd5570bddb124" => :yosemite
    sha1 "ba8a07a67cc0c8b4f6ea92f7dc7ef3008fdf222f" => :mavericks
    sha1 "1017b9a117f55464eac2eb254e0d8aa9e181b5c9" => :mountain_lion
  end

  # Configure uses cmake internally
  depends_on 'cmake' => :build

  def install
    ENV.deparallelize

    system "cmake", ".", *std_cmake_args
    system "make install"
    (include/'yajl').install Dir['src/api/*.h']
  end

  test do
    output = pipe_output("#{bin}/json_verify", "[0,1,2,3]").strip
    assert_equal "JSON is valid", output
  end
end

{'fraction_non_alphanumeric': 0.1192443919716647, 'fraction_numerical': 0.1422668240850059, 'mean_word_length': 4.151975683890577, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '1514405', 'n_tokens_mistral': 852, 'n_tokens_neox': 744, 'n_words': 117}