<commit_before>require File.expand_path("../../Homebrew/emacs_formula", __FILE__)

class GnugoEmacs < EmacsFormula
  desc "Emacs interface to GNU Go"
  homepage "http://www.gnuvola.org/software/gnugo/"
  url "https://elpa.gnu.org/packages/gnugo-3.0.2.tar"
  sha256 "732c5b6195b4e3f1b4af113717590c3fa2d77a862bfa002f9ac26aae8049b58b"

  bottle :disable

  depends_on :emacs
  depends_on "gnu-go"
  depends_on "dunn/emacs/ascii-art-to-unicode"
  depends_on "dunn/emacs/xpm-emacs"
  depends_on "dunn/emacs/cl-lib" if Emacs.version < Version.create("24.3")

  def install
    byte_compile "gnugo.el", "gnugo-frolic.el", "gnugo-imgen.el"
    elisp.install "gnugo.el", "gnugo.elc",
                  "gnugo-frolic.el", "gnugo-frolic.elc",
                  "gnugo-imgen.el", "gnugo-imgen.elc"
  end

  test do
    (testpath/"test.el").write <<-EOS.undent
      (add-to-list 'load-path "#{elisp}")
      (load "gnugo")
      (print gnugo-version)
    EOS
    assert_equal "\"#{version}\"", shell_output("emacs -Q --batch -l #{testpath}/test.el").strip
  end
end
<commit_msg>gnugo-emacs 3.1.0<commit_after>require File.expand_path("../../Homebrew/emacs_formula", __FILE__)

class GnugoEmacs < EmacsFormula
  desc "Emacs interface to GNU Go"
  homepage "http://www.gnuvola.org/software/gnugo/"
  url "https://elpa.gnu.org/packages/gnugo-3.1.0.tar"
  sha256 "c13dd1bbdf8ea0e3b20e403739ef03fa05c3280c4bb7ab380ee73d5084def276"

  bottle :disable

  depends_on :emacs
  depends_on "gnu-go"
  depends_on "dunn/emacs/ascii-art-to-unicode"
  depends_on "dunn/emacs/xpm-emacs"
  depends_on "dunn/emacs/cl-lib" if Emacs.version < Version.create("24.3")

  def install
    byte_compile "gnugo.el", "gnugo-frolic.el", "gnugo-imgen.el"
    elisp.install "gnugo.el", "gnugo.elc",
                  "gnugo-frolic.el", "gnugo-frolic.elc",
                  "gnugo-imgen.el", "gnugo-imgen.elc"
  end

  test do
    (testpath/"test.el").write <<-EOS.undent
      (add-to-list 'load-path "#{elisp}")
      (load "gnugo")
      (print gnugo-version)
    EOS
    assert_equal "\"#{version}\"", shell_output("emacs -Q --batch -l #{testpath}/test.el").strip
  end
end

{'fraction_non_alphanumeric': 0.15870786516853932, 'fraction_numerical': 0.04541198501872659, 'mean_word_length': 3.214990138067061, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4785484', 'n_tokens_mistral': 966, 'n_tokens_neox': 912, 'n_words': 137}