<commit_before>class Subversion < Formula
  desc "Version control system designed to be a better CVS"
  homepage "https://subversion.apache.org/"
  url "https://www.apache.org/dyn/closer.cgi?path=subversion/subversion-1.10.0.tar.bz2"
  mirror "https://archive.apache.org/dist/subversion/subversion-1.10.0.tar.bz2"
  sha256 "2cf23f3abb837dea0585a6b0ebd70e80e01f95bddef7c1aa097c18e3eaa6b584"

  bottle do
    sha256 "c9c3361ed8052f85250510f499af601d7134dd84b27db5fd8499f588925f4b23" => :high_sierra
    sha256 "433b0e2945afcbd51c70bcec6a8c9e268b3e98b797c0dc0bb3a20bada02f84de" => :sierra
    sha256 "00ee7ed7b816f8f158bf3bc69a30c0764ae9bd4c7ce92b9cb08b7365c92b8982" => :el_capitan
  end

  deprecated_option "java" => "with-java"
  deprecated_option "perl" => "with-perl"
  deprecated_option "ruby" => "with-ruby"

  option "with-java", "Build Java bindings"
  option "without-ruby", "Build without Ruby bindings"
  option "without-perl", "Build without Perl bindings"
  option "with-gpg-agent", "Build with support for GPG Agent"

  depends_on "pkg-config" => :build
  depends_on "swig" => :build
  depends_on "apr-util"
  depends_on "apr"

  # Always build against Homebrew versions instead of system versions for consistency.
  depends_on "lz4"
  depends_on "sqlite"
  depends_on "utf8proc"
  depends_on "perl" => :recommended

  # For Serf
  depends_on "scons" => :build
  depends_on "openssl"

  # Other optional dependencies
  depends_on "gpg-agent" => :optional
  depends_on "gettext" => :optional
  depends_on :java => :optional

  resource "serf" do
    url "https://www.apache.org/dyn/closer.cgi?path=serf/serf-1.3.9.tar.bz2"
    mirror "https://archive.apache.org/dist/serf/serf-1.3.9.tar.bz2"
    sha256 "549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf7a87cc"
  end

  # Fix #23993 by stripping flags swig can't handle from SWIG_CPPFLAGS
  # Prevent "-arch ppc" from being pulled in from Perl's $Config{ccflags}
  # Prevent linking into a Python Framework
  patch :DATA

  if build.with?("perl") || build.with?("ruby")<commit_msg>subversion: depend on java 1.8 if built with java<commit_after>class Subversion < Formula
  desc "Version control system designed to be a better CVS"
  homepage "https://subversion.apache.org/"
  url "https://www.apache.org/dyn/closer.cgi?path=subversion/subversion-1.10.0.tar.bz2"
  mirror "https://archive.apache.org/dist/subversion/subversion-1.10.0.tar.bz2"
  sha256 "2cf23f3abb837dea0585a6b0ebd70e80e01f95bddef7c1aa097c18e3eaa6b584"

  bottle do
    sha256 "c9c3361ed8052f85250510f499af601d7134dd84b27db5fd8499f588925f4b23" => :high_sierra
    sha256 "433b0e2945afcbd51c70bcec6a8c9e268b3e98b797c0dc0bb3a20bada02f84de" => :sierra
    sha256 "00ee7ed7b816f8f158bf3bc69a30c0764ae9bd4c7ce92b9cb08b7365c92b8982" => :el_capitan
  end

  deprecated_option "java" => "with-java"
  deprecated_option "perl" => "with-perl"
  deprecated_option "ruby" => "with-ruby"

  option "with-java", "Build Java bindings"
  option "without-ruby", "Build without Ruby bindings"
  option "without-perl", "Build without Perl bindings"
  option "with-gpg-agent", "Build with support for GPG Agent"

  depends_on "pkg-config" => :build
  depends_on "swig" => :build
  depends_on "apr-util"
  depends_on "apr"

  # Always build against Homebrew versions instead of system versions for consistency.
  depends_on "lz4"
  depends_on "sqlite"
  depends_on "utf8proc"
  depends_on "perl" => :recommended

  # For Serf
  depends_on "scons" => :build
  depends_on "openssl"

  # Other optional dependencies
  depends_on "gpg-agent" => :optional
  depends_on "gettext" => :optional
  depends_on :java => "1.8" if build.with? "java"

  resource "serf" do
    url "https://www.apache.org/dyn/closer.cgi?path=serf/serf-1.3.9.tar.bz2"
    mirror "https://archive.apache.org/dist/serf/serf-1.3.9.tar.bz2"
    sha256 "<KEY>"
  end

  # Fix #23993 by stripping flags swig can't handle from SWIG_CPPFLAGS
  # Prevent "-arch ppc" from being pulled in from Perl's $Config{ccflags}
  # Prevent linking into a Python Framework
  patch :DATA

  if build.with?("perl") || build.with?("ruby")
{'fraction_non_alphanumeric': 0.11325360019526483, 'fraction_numerical': 0.1034903587991213, 'mean_word_length': 4.652413793103448, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 30, 'https://': 10, 'lorem ipsum': 0, 'www.': 4, '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': '1639394', 'n_tokens_mistral': 1832, 'n_tokens_neox': 1607, 'n_words': 324}