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

class WisiEmacs < EmacsFormula
  desc "Indentation/navigation in Emacs using LALR parsers"
  homepage "https://elpa.gnu.org/packages/wisi.html"
  url "https://elpa.gnu.org/packages/wisi-1.1.4.tar"
  sha256 "99507170b58aab866d7bbc63547751454227d68b196452f4bf7d5dbdcfc10bd8"

  bottle do
    cellar :any_skip_relocation
    sha256 "a78cea1fd5b1ae63b35b14c29ea97ea694ece20ce87a34f40a965592dd957004" => :sierra
    sha256 "a78cea1fd5b1ae63b35b14c29ea97ea694ece20ce87a34f40a965592dd957004" => :el_capitan
    sha256 "a78cea1fd5b1ae63b35b14c29ea97ea694ece20ce87a34f40a965592dd957004" => :yosemite
  end

  depends_on :emacs => "24.2"
  depends_on "dunn/emacs/cl-lib" if Emacs.version < Version.create("24.3")

  def install
    byte_compile Dir["*.el"]
    elisp.install Dir["*.el"], Dir["*.elc"]
  end

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

class WisiEmacs < EmacsFormula
  desc "Indentation/navigation in Emacs using a LALR parser"
  homepage "http://www.nongnu.org/ada-mode/wisi/wisi.html"
  url "https://elpa.gnu.org/packages/wisi-1.1.5.tar"
  sha256 "448dee9cff401b9ddb471d37afe40118531ef3e534b05dca0070bf04a75f0de0"

  bottle :disable

  depends_on :emacs => "24.2"
  depends_on "dunn/emacs/cl-lib" if Emacs.version < Version.create("24.3")

  def install
    byte_compile (Dir["*.el"] - ["wisi-pkg.el"])
    elisp.install (Dir["*.el"] - ["wisi-pkg.el"]), Dir["*.elc"]
  end

  test do
    (testpath/"test.el").write <<-EOS.undent
      (add-to-list 'load-path "#{elisp}")
      (load "wisi")
      (print (minibuffer-prompt-width))
    EOS
    assert_equal "0", shell_output("emacs -Q --batch -l #{testpath}/test.el").strip
  end
end
{'fraction_non_alphanumeric': 0.14948705422569614, 'fraction_numerical': 0.11284807034684904, 'mean_word_length': 4.007334963325183, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 8, 'https://': 3, 'lorem ipsum': 0, 'www.': 1, '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': '1163422', 'n_tokens_mistral': 977, 'n_tokens_neox': 855, 'n_words': 131}