<commit_before>require 'brewkit'

class Couchdb <Formula
  @url='http://apache.multihomed.net/couchdb/0.9.1/apache-couchdb-0.9.1.tar.gz'
  @homepage='http://couchdb.apache.org/'
  @md5='9583efae5adfb3f9043e970fef825561'

  depends_on 'spidermonkey'
  depends_on 'icu4c'
  depends_on 'erlang'

  def install
    system "./configure", "--prefix=#{prefix}", "--localstatedir=#{var}", "--sysconfdir=#{etc}"
    system "make"
    system "make install"

    (var+'lib'+'couchdb').mkpath
    (var+'log'+'couchdb').mkpath
  end
end<commit_msg>upgrade to couchdb 0.10 and fix problems<commit_after>require 'brewkit'

class Couchdb <Formula
  @url='http://apache.multihomed.net/couchdb/0.10.0/apache-couchdb-0.10.0.tar.gz'
  @homepage='http://couchdb.apache.org/'
  @md5='227886b5ecbb6bcbbdc538aac4592b0e'

  depends_on 'spidermonkey'
  depends_on 'icu4c'
  depends_on 'erlang'

  def install
    system "./configure", "--prefix=#{prefix}",
                          "--localstatedir=#{var}",
                          "--sysconfdir=#{etc}",
                          "--with-erlang=#{HOMEBREW_PREFIX}/lib/erlang/usr/include"
    system "make"
    system "make install"

    (var+'lib'+'couchdb').mkpath
    (var+'log'+'couchdb').mkpath
  end
end
{'fraction_non_alphanumeric': 0.17233009708737865, 'fraction_numerical': 0.045307443365695796, 'mean_word_length': 3.2363013698630136, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6480344', 'n_tokens_mistral': 500, 'n_tokens_neox': 477, 'n_words': 66}