<commit_before>require 'formula'

class Postgresql <Formula
  @homepage='http://www.postgresql.org/'
  @url='http://ftp3.de.postgresql.org/pub/Mirrors/ftp.postgresql.org/source/v8.4.1/postgresql-8.4.1.tar.bz2'
  @md5='f2015af17bacbbfe140daf0d1067f9c9'

  depends_on 'readline'

  aka 'postgres'

  def install
    configure_args = [
        "--enable-thread-safety",
        "--with-bonjour",
        "--with-python",
        "--with-perl",
        "--with-gssapi",
        "--with-krb5",
        "--with-openssl",
        "--with-libxml",
        "--with-libxslt",
        "--prefix=#{prefix}",
        "--disable-debug",
    ]

    if MACOS_VERSION >= 10.6 && Hardware.is_64_bit?
        configure_args << "ARCHFLAGS='-arch x86_64'"
    end

    # Fails on Core Duo with O4 and O3
    if Hardware.intel_family == :core
      ENV.O2
    end

    system "./configure", *configure_args
    system "make install"

    (prefix+'org.postgresql.postgres.plist').write startup_plist
  end

  def skip_clean? path
    # NOTE at some point someone should tweak this so it only skips clean<commit_msg>ENV.libxml2 seemingly required for some people<commit_after>require 'formula'

class Postgresql <Formula
  @homepage='http://www.postgresql.org/'
  @url='http://ftp3.de.postgresql.org/pub/Mirrors/ftp.postgresql.org/source/v8.4.1/postgresql-8.4.1.tar.bz2'
  @md5='f2015af17bacbbfe140daf0d1067f9c9'

  depends_on 'readline'

  aka 'postgres'

  def install
    ENV.libxml2 # wouldn't compile for justinlilly otherwise
    
    configure_args = [
        "--enable-thread-safety",
        "--with-bonjour",
        "--with-python",
        "--with-perl",
        "--with-gssapi",
        "--with-krb5",
        "--with-openssl",
        "--with-libxml",
        "--with-libxslt",
        "--prefix=#{prefix}",
        "--disable-debug",
    ]

    if MACOS_VERSION >= 10.6 && Hardware.is_64_bit?
        configure_args << "ARCHFLAGS='-arch x86_64'"
    end

    # Fails on Core Duo with O4 and O3
    if Hardware.intel_family == :core
      ENV.O2
    end

    system "./configure", *configure_args
    system "make install"

    (prefix+'org.postgresql.postgres.plist').write startup_plist
  end

  def skip_clean? path
    # NOTE at some point someone should tweak this so it only skips clean
{'fraction_non_alphanumeric': 0.143670608848007, 'fraction_numerical': 0.03416557161629435, 'mean_word_length': 2.4397590361445785, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '6860820', 'n_tokens_mistral': 857, 'n_tokens_neox': 790, 'n_words': 154}