<commit_before>class Viewvc < Formula
  desc "Browser interface for CVS and Subversion repositories"
  homepage "http://www.viewvc.org"
  url "http://viewvc.tigris.org/files/documents/3330/49471/viewvc-1.1.24.tar.gz"
  sha256 "0620f69fa5ba02ac65e000586ba31015a2053a82711bedb30629fd6087003d7e"

  bottle do
    cellar :any_skip_relocation
    sha256 "3b1359403616f260acd861ef0603fd30f296c8e7e5277d865ed20ed1fb67cb9d" => :sierra
    sha256 "389820a6f60d0977413ac7aebbf3bbacd2661cc105865813e5cf50c1f9f02020" => :el_capitan
    sha256 "06d3611ba9c051f0e5d51859c739c77a1bb2c6beb054008ca2a63db1c2f3a1f1" => :yosemite
    sha256 "8d76afcfed4be03aee5c35b83a389dd4174fc6dbc528386c1e9ba3dd4a7a575d" => :mavericks
  end

  # swig is a dependency of subversion --with-python, but due to a
  # bug it needs to also be specified here.
  # https://github.com/Homebrew/homebrew/issues/42915
  depends_on "swig" => :run
  depends_on "subversion" => "with-python"

  def install
    system "python", "./viewvc-install", "--prefix=#{libexec}", "--destdir="
    Pathname.glob(libexec/"bin/*") do |f|
      next if f.directory?
      bin.install_symlink f => "viewvc-#{f.basename}"
    end
  end

  test do
    require "net/http"
    require "uri"<commit_msg>viewvc 1.1.26<commit_after>class Viewvc < Formula
  desc "Browser interface for CVS and Subversion repositories"
  homepage "http://www.viewvc.org"
  url "https://github.com/viewvc/viewvc/releases/download/1.1.26/viewvc-1.1.26.tar.gz"
  sha256 "9d718237df7fc04d511302812c0bec0363cf6b8334ab796953a764c2de426e43"

  bottle do
    cellar :any_skip_relocation
    sha256 "3b1359403616f260acd861ef0603fd30f296c8e7e5277d865ed20ed1fb67cb9d" => :sierra
    sha256 "389820a6f60d0977413ac7aebbf3bbacd2661cc105865813e5cf50c1f9f02020" => :el_capitan
    sha256 "06d3611ba9c051f0e5d51859c739c77a1bb2c6beb054008ca2a63db1c2f3a1f1" => :yosemite
    sha256 "8d76afcfed4be03aee5c35b83a389dd4174fc6dbc528386c1e9ba3dd4a7a575d" => :mavericks
  end

  # swig is a dependency of subversion --with-python, but due to a
  # bug it needs to also be specified here.
  # https://github.com/Homebrew/homebrew/issues/42915
  depends_on "swig" => :run
  depends_on "subversion" => "with-python"

  def install
    system "python", "./viewvc-install", "--prefix=#{libexec}", "--destdir="
    Pathname.glob(libexec/"bin/*") do |f|
      next if f.directory?
      bin.install_symlink f => "viewvc-#{f.basename}"
    end
  end

  test do
    require "net/http"
    require "uri"
{'fraction_non_alphanumeric': 0.10717163577759871, 'fraction_numerical': 0.18573730862207896, 'mean_word_length': 4.493362831858407, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5957381', 'n_tokens_mistral': 1269, 'n_tokens_neox': 1050, 'n_words': 168}