<commit_before>require 'formula'

class Slony < Formula
  homepage 'http://slony.info/'
  url 'http://slony.info/downloads/2.1/source/slony1-2.1.2.tar.bz2'
  sha1 '47449fbc742a25eefdab088ab650973416bccb53'

  depends_on :postgresql

  def install
    system "./configure", "--disable-debug",
                          "--prefix=#{prefix}"
    system "make install"<commit_msg>slony: specify --with-pgcofigdir<commit_after>require 'formula'

class Slony < Formula
  homepage 'http://slony.info/'
  url 'http://slony.info/downloads/2.1/source/slony1-2.1.2.tar.bz2'
  sha1 '47449fbc742a25eefdab088ab650973416bccb53'

  depends_on :postgresql

  def install
    postgres = Formula.factory('postgresql')
    system "./configure", "--disable-debug",
                          "--with-pgconfigdir=#{postgres.opt_prefix}/bin",
                          "--prefix=#{prefix}"
    system "make install"
{'fraction_non_alphanumeric': 0.143658810325477, 'fraction_numerical': 0.0718294051627385, 'mean_word_length': 2.8448275862068964, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1425922', 'n_tokens_mistral': 346, 'n_tokens_neox': 313, 'n_words': 48}