<commit_before>class AmdatuBootstrap < Formula
  desc "Bootstrapping OSGi development"
  homepage "http://www.amdatu.com/bootstrap/intro.html"
  url "https://bitbucket.org/amdatu/amdatu-bootstrap/downloads/bootstrap-bin-r9.zip"
  sha256 "937ef932a740665439ea0118ed417ff7bdc9680b816b8b3c81ecfd6d0fc4773b"

  bottle :unneeded

  def install
    libexec.install %w[amdatu-bootstrap bootstrap.jar conf]
    bin.install_symlink "#{libexec}/amdatu-bootstrap" => "amdatu-bootstrap"
  end

  test do
    assert_match "Amdatu Bootstrap R9", shell_output("#{bin}/amdatu-bootstrap --info")
  end
end<commit_msg>amdatu-bootstrap: require Java 8 specifically (#22609)<commit_after>class AmdatuBootstrap < Formula
  desc "Bootstrapping OSGi development"
  homepage "http://www.amdatu.com/bootstrap/intro.html"
  url "https://bitbucket.org/amdatuadm/amdatu-bootstrap/downloads/bootstrap-bin-r9.zip"
  sha256 "937ef932a740665439ea0118ed417ff7bdc9680b816b8b3c81ecfd6d0fc4773b"

  bottle :unneeded

  depends_on :java => "1.8"

  def install
    libexec.install %w[amdatu-bootstrap bootstrap.jar conf]
    (bin/"amdatu-bootstrap").write_env_script libexec/"amdatu-bootstrap", Language::Java.java_home_env("1.8")
  end

  test do
    assert_match "Amdatu Bootstrap R9", shell_output("#{bin}/amdatu-bootstrap --info")
  end
end
{'fraction_non_alphanumeric': 0.11476664116296863, 'fraction_numerical': 0.07651109410864575, 'mean_word_length': 5.140845070422535, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '91679', 'n_tokens_mistral': 545, 'n_tokens_neox': 483, 'n_words': 77}