<commit_before>require 'formula'

class Subversion < Formula
  homepage 'http://subversion.apache.org/'
  url 'http://www.apache.org/dyn/closer.cgi?path=subversion/subversion-1.8.0.tar.bz2'
  sha1 '45d227511507c5ed99e07f9d42677362c18b364c'

  bottle do
    sha1 '4b8920c129cfc8adbf491a69d836a5a8f7455409' => :mountain_lion
    sha1 'ee99dbd0f7b7d4abfdfc5d7a82a008d720713e47' => :lion
    sha1 '733d68a8bfd92a64270fb67f0bc4cc0974602bf0' => :snow_leopard
  end

  option :universal
  option 'java', 'Build Java bindings'
  option 'perl', 'Build Perl bindings'
  option 'ruby', 'Build Ruby bindings'

  depends_on 'pkg-config' => :build

  # Always build against Homebrew versions instead of system versions for consistency.
  depends_on 'serf'
  depends_on 'sqlite'
  depends_on :python => :optional

  # Building Ruby bindings requires libtool
  depends_on :libtool if build.include? 'ruby'

  # If building bindings, allow non-system interpreters
  env :userpaths if build.include? 'perl' or build.include? 'ruby'

  def patches<commit_msg>subversion: use archive URL until we move to 1.8.1<commit_after>require 'formula'

class Subversion < Formula
  homepage 'http://subversion.apache.org/'
  url 'http://archive.apache.org/dist/subversion/subversion-1.8.0.tar.bz2'
  # url 'http://www.apache.org/dyn/closer.cgi?path=subversion/subversion-1.8.0.tar.bz2'
  sha1 '45d227511507c5ed99e07f9d42677362c18b364c'

  bottle do
    sha1 '4b8920c129cfc8adbf491a69d836a5a8f7455409' => :mountain_lion
    sha1 'ee99dbd0f7b7d4abfdfc5d7a82a008d720713e47' => :lion
    sha1 '733d68a8bfd92a64270fb67f0bc4cc0974602bf0' => :snow_leopard
  end

  option :universal
  option 'java', 'Build Java bindings'
  option 'perl', 'Build Perl bindings'
  option 'ruby', 'Build Ruby bindings'

  depends_on 'pkg-config' => :build

  # Always build against Homebrew versions instead of system versions for consistency.
  depends_on 'serf'
  depends_on 'sqlite'
  depends_on :python => :optional

  # Building Ruby bindings requires libtool
  depends_on :libtool if build.include? 'ruby'

  # If building bindings, allow non-system interpreters
  env :userpaths if build.include? 'perl' or build.include? 'ruby'

  def patches
{'fraction_non_alphanumeric': 0.09890610756608934, 'fraction_numerical': 0.10346399270738377, 'mean_word_length': 4.7460732984293195, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5285203', 'n_tokens_mistral': 949, 'n_tokens_neox': 814, 'n_words': 183}