<commit_before>require "formula"

class Restund < Formula
  homepage "http://www.creytiv.com"
  url "http://www.creytiv.com/pub/restund-0.4.11.tar.gz"
  sha1 "7fb98e6d8dd5e48b62f5ad23d3dc5ee6546f8c15"

  depends_on "libre"

  # this patch is needed for restund to work on OSX, because it is
  # using select() for polling with max 1024 file descriptors.
  patch :p0 do
    url "http://www.creytiv.com/tmp/restund-homebrew.patch"
    sha1 "a7ddaf0da0396e50ffe40552eeab5436b3141180"
  end

  def install
    libre = Formula["libre"]
    system "make", "install", "PREFIX=#{prefix}",
                              "LIBRE_MK=#{libre.opt_share}/re/re.mk",
                              "LIBRE_INC=#{libre.opt_include}/re",
                              "LIBRE_SO=#{libre.opt_lib}"
    system "make", "config", "DESTDIR=#{prefix}",
                              "PREFIX=#{prefix}",
                              "LIBRE_MK=#{libre.opt_share}/re/re.mk",
                              "LIBRE_INC=#{libre.opt_include}/re",
                              "LIBRE_SO=#{libre.opt_lib}"
  end

  test do
    system "#{sbin}/restund", "-tdnf", "#{etc}/restund.conf"
  end
end<commit_msg>restund: add 0.4.11 bottle.<commit_after>require "formula"

class Restund < Formula
  homepage "http://www.creytiv.com"
  url "http://www.creytiv.com/pub/restund-0.4.11.tar.gz"
  sha1 "7fb98e6d8dd5e48b62f5ad23d3dc5ee6546f8c15"

  bottle do
    cellar :any
    sha1 "ca362fc05e313ac4c2fc5fc761b3c502ff6c7ab9" => :yosemite
    sha1 "249056f251265110831e938cbb82cedbf294ec65" => :mavericks
    sha1 "ba868c60ec50840299ae1ae92e98e270ae9956e5" => :mountain_lion
  end

  depends_on "libre"

  # this patch is needed for restund to work on OSX, because it is
  # using select() for polling with max 1024 file descriptors.
  patch :p0 do
    url "http://www.creytiv.com/tmp/restund-homebrew.patch"
    sha1 "a7ddaf0da0396e50ffe40552eeab5436b3141180"
  end

  def install
    libre = Formula["libre"]
    system "make", "install", "PREFIX=#{prefix}",
                              "LIBRE_MK=#{libre.opt_share}/re/re.mk",
                              "LIBRE_INC=#{libre.opt_include}/re",
                              "LIBRE_SO=#{libre.opt_lib}"
    system "make", "config", "DESTDIR=#{prefix}",
                              "PREFIX=#{prefix}",
                              "LIBRE_MK=#{libre.opt_share}/re/re.mk",
                              "LIBRE_INC=#{libre.opt_include}/re",
                              "LIBRE_SO=#{libre.opt_lib}"
  end

  test do
    system "#{sbin}/restund", "-tdnf", "#{etc}/restund.conf"
  end
end
{'fraction_non_alphanumeric': 0.13204633204633204, 'fraction_numerical': 0.07567567567567568, 'mean_word_length': 2.2266500622665006, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '4089898', 'n_tokens_mistral': 1053, 'n_tokens_neox': 947, 'n_words': 158}