<commit_before>class CfrDecompiler < Formula
  desc "Yet Another Java Decompiler."
  homepage "http://www.benf.org/other/cfr/"
  url "http://www.benf.org/other/cfr/cfr_0_110.jar"
  sha256 "f2f23e3eced4e96e0536fd014cd7d51eecb536a94439a2818160024b2288306d"

  bottle :unneeded

  depends_on :java => "1.6+"

  def install
    jar_version = version.to_s.tr(".", "_")
    libexec.install "cfr_#{jar_version}.jar"
    bin.write_jar_script libexec/"cfr_#{jar_version}.jar", "cfr-decompiler"
  end

  test do
    fixture = <<-EOS.undent
    import java.io.PrintStream;

    class T {
        T() {
        }
<commit_msg>cfr-decompiler 0.111<commit_after>class CfrDecompiler < Formula
  desc "Yet Another Java Decompiler."
  homepage "http://www.benf.org/other/cfr/"
  url "http://www.benf.org/other/cfr/cfr_0_111.jar"
  sha256 "503666882bb3f3413ab285fd3234d69a70c1baba62400ea1f590f241798728fb"

  bottle :unneeded

  depends_on :java => "1.6+"

  def install
    jar_version = version.to_s.tr(".", "_")
    libexec.install "cfr_#{jar_version}.jar"
    bin.write_jar_script libexec/"cfr_#{jar_version}.jar", "cfr-decompiler"
  end

  test do
    fixture = <<-EOS.undent
    import java.io.PrintStream;

    class T {
        T() {
        }

{'fraction_non_alphanumeric': 0.1330089213300892, 'fraction_numerical': 0.08759124087591241, 'mean_word_length': 3.375886524822695, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '798172', 'n_tokens_mistral': 559, 'n_tokens_neox': 501, 'n_words': 77}