<commit_before>class Tika < Formula
  desc "Content analysis toolkit"
  homepage "https://tika.apache.org/"
  url "https://www.apache.org/dyn/closer.cgi?path=tika/tika-app-1.10.jar"
  sha256 "21ac3c156c2b53c451599f1b2c441c7898fce8efb7e912f6894e5e543d7cd48c"

  bottle do
    cellar :any
    sha256 "149bb5712c16304d1f71fa3047dd58ed9fa1b013679309ad2b2e03ea98d8d047" => :yosemite
    sha256 "b42c447ae4519b9663c94dbb64087e812a2123221778e4b60be34727a708994b" => :mavericks
    sha256 "f0295de87032c10300884c875427872c6b12368c19126342930c3770b3f95e77" => :mountain_lion
  end

  resource "server" do
    url "https://repo1.maven.org/maven2/org/apache/tika/tika-server/1.10/tika-server-1.10.jar"
    sha256 "d1977896455d78c4a080886d460726393360329a4b8e7d0b290ee24571aede39"
  end

  def install
    libexec.install "tika-app-#{version}.jar"
    bin.write_jar_script libexec/"tika-app-#{version}.jar", "tika"

    libexec.install resource("server")
    bin.write_jar_script libexec/"tika-server-#{version}.jar", "tika-rest-server"
  end
<commit_msg>tika: add Java 7 requirement.<commit_after>class Tika < Formula
  desc "Content analysis toolkit"
  homepage "https://tika.apache.org/"
  url "https://www.apache.org/dyn/closer.cgi?path=tika/tika-app-1.10.jar"
  sha256 "21ac3c156c2b53c451599f1b2c441c7898fce8efb7e912f6894e5e543d7cd48c"

  depends_on :java => "1.7"

  bottle do
    cellar :any
    sha256 "149bb5712c16304d1f71fa3047dd58ed9fa1b013679309ad2b2e03ea98d8d047" => :yosemite
    sha256 "b42c447ae4519b9663c94dbb64087e812a2123221778e4b60be34727a708994b" => :mavericks
    sha256 "f0295de87032c10300884c875427872c6b12368c19126342930c3770b3f95e77" => :mountain_lion
  end

  resource "server" do
    url "https://repo1.maven.org/maven2/org/apache/tika/tika-server/1.10/tika-server-1.10.jar"
    sha256 "d1977896455d78c4a080886d460726393360329a4b8e7d0b290ee24571aede39"
  end

  def install
    libexec.install "tika-app-#{version}.jar"
    bin.write_jar_script libexec/"tika-app-#{version}.jar", "tika"

    libexec.install resource("server")
    bin.write_jar_script libexec/"tika-server-#{version}.jar", "tika-rest-server"
  end

{'fraction_non_alphanumeric': 0.11168465509150634, 'fraction_numerical': 0.24073205068043171, 'mean_word_length': 5.126436781609195, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, 'https://': 6, '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': '7080351', 'n_tokens_mistral': 1218, 'n_tokens_neox': 948, 'n_words': 103}