<commit_before>class Newsbeuter < Formula
  homepage "http://newsbeuter.org/"
  url "http://www.newsbeuter.org/downloads/newsbeuter-2.9.tar.gz"
  sha1 "e0d61cda874ea9b77ed27f2edfea50a6ea471894"

  head "https://github.com/akrennmair/newsbeuter.git"

  bottle do
    cellar :any
    sha1 "c0ba075c6d235a851361bc6315ad81ba8a93593f" => :yosemite
    sha1 "ba32930fd5e0213b160d39a3bce1138b3661b4f6" => :mavericks
    sha1 "4c8e48932bacd4c7cc0d2ff7ec2c583d99692855" => :mountain_lion
  end

  depends_on "pkg-config" => :build
  depends_on "gettext"
  depends_on "json-c"
  depends_on "libstfl"
  depends_on "sqlite"

  needs :cxx11

  def install
    ENV.cxx11
    system "make"
    system "make", "install", "prefix=#{prefix}"
  end

  test do
    urlfile = "urls.txt"
    (testpath/urlfile).write "https://github.com/blog/subscribe\n"
    assert_match /newsbeuter - Exported Feeds/m, shell_output("#{bin}/newsbeuter -e -u #{urlfile}")
  end
end
<commit_msg>newsbeuter: install example scripts<commit_after>class Newsbeuter < Formula
  homepage "http://newsbeuter.org/"
  url "http://www.newsbeuter.org/downloads/newsbeuter-2.9.tar.gz"
  sha1 "e0d61cda874ea9b77ed27f2edfea50a6ea471894"

  head "https://github.com/akrennmair/newsbeuter.git"

  bottle do
    cellar :any
    sha1 "c0ba075c6d235a851361bc6315ad81ba8a93593f" => :yosemite
    sha1 "ba32930fd5e0213b160d39a3bce1138b3661b4f6" => :mavericks
    sha1 "4c8e48932bacd4c7cc0d2ff7ec2c583d99692855" => :mountain_lion
  end

  depends_on "pkg-config" => :build
  depends_on "gettext"
  depends_on "json-c"
  depends_on "libstfl"
  depends_on "sqlite"

  needs :cxx11

  def install
    ENV.cxx11
    system "make"
    system "make", "install", "prefix=#{prefix}"

    share.install "contrib"
    (doc/"examples").install "doc/example-bookmark-plugin.sh"
  end

  test do
    urlfile = "urls.txt"
    (testpath/urlfile).write "https://github.com/blog/subscribe\n"
    assert_match /newsbeuter - Exported Feeds/m, shell_output("#{bin}/newsbeuter -e -u #{urlfile}")
  end
end

{'fraction_non_alphanumeric': 0.12259021255561048, 'fraction_numerical': 0.10578348986653485, 'mean_word_length': 4.085427135678392, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '195492', 'n_tokens_mistral': 951, 'n_tokens_neox': 860, 'n_words': 135}