<commit_before>require 'formula'

class Yajl < Formula
  homepage 'http://lloyd.github.com/yajl/'
  url 'http://github.com/lloyd/yajl/tarball/1.0.11'
  md5 '5b60f4d59b3b1fb42d7808d08460fb12'

  def patches
    # All YAJL releases so far have an rpath bug, though its fixed in upstream git:
    "https://github.com/lloyd/yajl/commit/a31c4d0f9ad90b4b58508702fd877bb35039067e.patch"
  end

  # Configure uses cmake, even though it looks like we're
  # just using autotools below.
  depends_on 'cmake' => :build

  def install
    ENV.deparallelize

    system "./configure", "--prefix=#{prefix}"
    system "make install"
    (include + 'yajl').install Dir['src/api/*.h']
  end
end<commit_msg>YAJL 2.0<commit_after>require 'formula'

class Yajl < Formula
  homepage 'http://lloyd.github.com/yajl/'
  url 'http://github.com/lloyd/yajl/tarball/2.0.0'
  sha256 '752033679036ca32cd938bc73d89096f74d51b049aeb5131ee0d47152b6363d5'

  # Configure uses cmake, even though it looks like we're
  # just using autotools below.
  depends_on 'cmake' => :build

  def install
    ENV.deparallelize

    system "./configure", "--prefix=#{prefix}"
    system "make install"
    (include + 'yajl').install Dir['src/api/*.h']
  end
end
{'fraction_non_alphanumeric': 0.12602965403624383, 'fraction_numerical': 0.08813838550247118, 'mean_word_length': 3.74609375, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '4961090', 'n_tokens_mistral': 534, 'n_tokens_neox': 467, 'n_words': 101}