<commit_before>require 'formula'

class Tor < Formula
  homepage 'https://www.torproject.org/'
  url 'https://www.torproject.org/dist/tor-0.2.4.19.tar.gz'
  sha1 'f0050921016d63c426f0c61dbaa8ced50a36474b'

  devel do
    url 'https://www.torproject.org/dist/tor-0.2.5.1-alpha.tar.gz'
    version '0.2.5.1-alpha'
    sha1 'd10cb78e6a41657d970a1ce42105142bcfc315fb'
  end

  option "with-brewed-openssl", "Build with Homebrew's OpenSSL instead of the system version" if MacOS.version > :leopard

  depends_on 'libevent'
  depends_on 'openssl' if build.with?('brewed-openssl') || MacOS.version < :snow_leopard

  def install
    args = %W[
      --disable-dependency-tracking
      --prefix=#{prefix}
    ]

    args << "-with-ssl=#{Formulary.factory('openssl').opt_prefix}" if build.with?('brewed-openssl') || MacOS.version < :snow_leopard

    system "./configure", *args
    system "make install"
  end
<commit_msg>tor 0.2.4.20<commit_after>require 'formula'

class Tor < Formula
  homepage 'https://www.torproject.org/'
  url 'https://www.torproject.org/dist/tor-0.2.4.20.tar.gz'
  sha1 '09ba4eda9a73c46852a277b721ed74c8263e8dba'

  devel do
    url 'https://www.torproject.org/dist/tor-0.2.5.1-alpha.tar.gz'
    version '0.2.5.1-alpha'
    sha1 'd10cb78e6a41657d970a1ce42105142bcfc315fb'
  end

  option "with-brewed-openssl", "Build with Homebrew's OpenSSL instead of the system version" if MacOS.version > :leopard

  depends_on 'libevent'
  depends_on 'openssl' if build.with?('brewed-openssl') || MacOS.version < :snow_leopard

  def install
    args = %W[
      --disable-dependency-tracking
      --prefix=#{prefix}
    ]

    args << "-with-ssl=#{Formulary.factory('openssl').opt_prefix}" if build.with?('brewed-openssl') || MacOS.version < :snow_leopard

    system "./configure", *args
    system "make install"
  end

{'fraction_non_alphanumeric': 0.14598141060688902, 'fraction_numerical': 0.07381082558775287, 'mean_word_length': 3.6095717884130982, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 7, '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': '5286968', 'n_tokens_mistral': 777, 'n_tokens_neox': 687, 'n_words': 123}