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

class Swiper < EmacsFormula
  desc "Emacs isearch with an overview"
  homepage "https://github.com/abo-abo/swiper"
  url "https://github.com/abo-abo/swiper/archive/0.7.0.tar.gz"
  sha256 "8e25761d466edff701c09f5c245903597493bac72dedfef84a1ba6eaf0cbd3ef"
  head "https://github.com/abo-abo/swiper.git"

  option "with-helm", "Use helm as the backend instead of ivy"

  depends_on :emacs => "24.1"
  depends_on "homebrew/emacs/helm" if build.with? "helm"

  resource "swiper-helm" do
    url "https://github.com/abo-abo/swiper-helm/archive/0.1.0.tar.gz"
    sha256 "8db4b0d7835cd71f17ae7fcc2642208270b332c38cc06f44fca5f7b3e674d8ab"
  end

  def install<commit_msg>swiper 0.8.0<commit_after>require File.expand_path("../../Homebrew/emacs_formula", __FILE__)

class Swiper < EmacsFormula
  desc "Emacs isearch with an overview"
  homepage "https://github.com/abo-abo/swiper"
  url "https://github.com/abo-abo/swiper/archive/0.8.0.tar.gz"
  sha256 "582414b7e257019696e2b93bbdf6556383751e85ee6ecbf56fe1e85800e5d8a2"
  head "https://github.com/abo-abo/swiper.git"

  option "with-helm", "Use helm as the backend instead of ivy"

  depends_on :emacs => "24.1"
  depends_on "homebrew/emacs/helm" if build.with? "helm"

  resource "swiper-helm" do
    url "https://github.com/abo-abo/swiper-helm/archive/0.1.0.tar.gz"
    sha256 "8db4b0d7835cd71f17ae7fcc2642208270b332c38cc06f44fca5f7b3e674d8ab"
  end

  def install
{'fraction_non_alphanumeric': 0.1302887844190732, 'fraction_numerical': 0.12558764271323036, 'mean_word_length': 4.398550724637682, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, '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': '2436685', 'n_tokens_mistral': 732, 'n_tokens_neox': 625, 'n_words': 96}