<commit_before>class Htmlcompressor < Formula
  desc "Minify HTML or XML"
  homepage "https://code.google.com/archive/p/htmlcompressor/"
  url "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/htmlcompressor/htmlcompressor-1.5.3.jar"
  sha256 "88894e330cdb0e418e805136d424f4c262236b1aa3683e51037cdb66310cb0f9"

  bottle :unneeded

  option "with-yuicompressor", "Use YUICompressor for JS/CSS compression"
  option "with-closure-compiler", "Use Closure Compiler for JS optimization"

  deprecated_option "yuicompressor" => "with-yuicompressor"
  deprecated_option "closure-compiler" => "with-closure-compiler"

  depends_on "yuicompressor" => :optional
  depends_on "closure-compiler" => :optional

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

    if build.with? "yuicompressor"
      yui = Formula["yuicompressor"]
      libexec.install_symlink yui.opt_libexec/"yuicompressor-#{yui.version}.jar"
    end

    if build.with? "closure-compiler"
      libexec.install_symlink Formula["closure-compiler"].opt_libexec/"build/compiler.jar"
    end<commit_msg>htmlcompressor: fix dependency order<commit_after>class Htmlcompressor < Formula
  desc "Minify HTML or XML"
  homepage "https://code.google.com/archive/p/htmlcompressor/"
  url "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/htmlcompressor/htmlcompressor-1.5.3.jar"
  sha256 "88894e330cdb0e418e805136d424f4c262236b1aa3683e51037cdb66310cb0f9"

  bottle :unneeded

  option "with-yuicompressor", "Use YUICompressor for JS/CSS compression"
  option "with-closure-compiler", "Use Closure Compiler for JS optimization"

  deprecated_option "yuicompressor" => "with-yuicompressor"
  deprecated_option "closure-compiler" => "with-closure-compiler"

  depends_on "closure-compiler" => :optional
  depends_on "yuicompressor" => :optional

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

    if build.with? "yuicompressor"
      yui = Formula["yuicompressor"]
      libexec.install_symlink yui.opt_libexec/"yuicompressor-#{yui.version}.jar"
    end

    if build.with? "closure-compiler"
      libexec.install_symlink Formula["closure-compiler"].opt_libexec/"build/compiler.jar"
    end
{'fraction_non_alphanumeric': 0.11620158267388588, 'fraction_numerical': 0.043315285297792584, 'mean_word_length': 4.975124378109452, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '6685825', 'n_tokens_mistral': 899, 'n_tokens_neox': 826, 'n_words': 130}