<commit_before>class Nyancat < Formula
  desc "Nyancat in your terminal, rendered through ANSI escape sequences."
  homepage "https://github.com/klange/nyancat"
  url "https://github.com/klange/nyancat/archive/1.5.1.tar.gz"
  sha256 "c948c769d230b4e41385173540ae8ab1f36176de689b6e2d6ed3500e9179b50a"

  bottle do
    cellar :any
    sha256 "31fe5465d62a4f922bd29ffdc6ef555517435ba3f76f1e671d8d6adbcfc2acf2" => :yosemite
    sha256 "70811e60480b682b3f6ad8f02dc52bd0bde2df97437df1aa3744f098619f4d2b" => :mavericks
    sha256 "37afa1b385b8a8b07dc762f212e40a42105c23cd9c0ea079cc7c1ec4103a46de" => :mountain_lion
  end

  # Makefile: Add install directory option
  patch do
    url "https://github.com/klange/nyancat/pull/34.patch"
    sha256 "407e01bae1d97e5153fb467a8cf0b4bc68320bea687294d56bcbacc944220d2c"
  end

  def install
    system "make"
    system "make", "install", "instdir=#{prefix}"
  end

  test do<commit_msg>nyancat: update 1.5.1 bottle.<commit_after>class Nyancat < Formula
  desc "Nyancat in your terminal, rendered through ANSI escape sequences."
  homepage "https://github.com/klange/nyancat"
  url "https://github.com/klange/nyancat/archive/1.5.1.tar.gz"
  sha256 "c948c769d230b4e41385173540ae8ab1f36176de689b6e2d6ed3500e9179b50a"

  bottle do
    cellar :any_skip_relocation
    sha256 "7edb311fcaaf95c46bcd4c50846ea00423bb91ca11f50c07555a371ff0e05318" => :el_capitan
    sha256 "d9c2f795fb32f1201ddd421911d6d36e7f5318f410fb543fb4bda39d731454c8" => :yosemite
    sha256 "4e6af8e2d8c954b4008a53bc25707ce0c7ff0c913b4ecfe8e7ee9526b6aa581b" => :mavericks
  end

  # Makefile: Add install directory option
  patch do
    url "https://github.com/klange/nyancat/pull/34.patch"
    sha256 "407e01bae1d97e5153fb467a8cf0b4bc68320bea687294d56bcbacc944220d2c"
  end

  def install
    system "make"
    system "make", "install", "instdir=#{prefix}"
  end

  test do
{'fraction_non_alphanumeric': 0.08435664709022958, 'fraction_numerical': 0.23278163374265884, 'mean_word_length': 5.30976430976431, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 6, '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': '2942413', 'n_tokens_mistral': 1045, 'n_tokens_neox': 836, 'n_words': 114}