<commit_before>require "formula"

class Antlr < Formula
  homepage "http://www.antlr.org/"
  url "http://www.antlr.org/download/antlr-4.2.2-complete.jar"
  sha1 "97b3117463b6beda300ee7a297a31b71db9aea2b"

  def install
    prefix.install "antlr-#{version}-complete.jar"
    bin.write_jar_script prefix/"antlr-#{version}-complete.jar", "antlr4"
    (bin+"grun").write <<-EOS.undent
      #!/bin/bash
      java -classpath #{prefix}/antlr-#{version}-complete.jar:. org.antlr.v4.runtime.misc.TestRig "$@"
    EOS
  end
end<commit_msg>antlr 4.3<commit_after>require "formula"

class Antlr < Formula
  homepage "http://www.antlr.org/"
  url "http://www.antlr.org/download/antlr-4.3-complete.jar"
  sha1 "173cf3165fdc54dcb9d2c6bc30c9d2c178f348bc"

  def install
    prefix.install "antlr-#{version}-complete.jar"
    bin.write_jar_script prefix/"antlr-#{version}-complete.jar", "antlr4"
    (bin+"grun").write <<-EOS.undent
      #!/bin/bash
      java -classpath #{prefix}/antlr-#{version}-complete.jar:. org.antlr.v4.runtime.misc.TestRig "$@"
    EOS
  end
end
{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.054924242424242424, 'mean_word_length': 3.7612612612612613, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4086122', 'n_tokens_mistral': 446, 'n_tokens_neox': 418, 'n_words': 56}