<commit_before>class Newsbeuter < Formula
  desc "RSS/Atom feed reader for text terminals"
  homepage "https://newsbeuter.org/"
  url "https://www.newsbeuter.org/downloads/newsbeuter-2.9.tar.gz"
  sha256 "74a8bf019b09c3b270ba95adc29f2bbe48ea1f55cc0634276b21fcce1f043dc8"

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

  bottle do
    cellar :any
    revision 1
    sha256 "15f454fa5f0c5cb2ee6b3c54fd312de8a1dbb7e38c5c90bbcf27bffd2536afaa" => :el_capitan
    sha256 "fa722fd5772e770f042461d3b68aefdc5d656a0073d1d0a8ed0a4cfa2b1e193e" => :yosemite
    sha256 "32bf15d33725a57bf5851e88f836b59a36b1715a26b2622bb759b19262998e59" => :mavericks
    sha256 "cfaa1d087980a62164a121d012eed12c5135b3d25f770d383215839d61428ba2" => :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
<commit_msg>newsbeuter: update 2.9 bottle.<commit_after>class Newsbeuter < Formula
  desc "RSS/Atom feed reader for text terminals"
  homepage "https://newsbeuter.org/"
  url "https://www.newsbeuter.org/downloads/newsbeuter-2.9.tar.gz"
  sha256 "74a8bf019b09c3b270ba95adc29f2bbe48ea1f55cc0634276b21fcce1f043dc8"

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

  bottle do
    cellar :any
    revision 2
    sha256 "c763ede64fb2bf9106fe720b54facf57efc992b24044c87af386d7e16413adb2" => :el_capitan
    sha256 "24235bf62ef863239ac94027455f75700db201c29929ccc226c973e674d58306" => :yosemite
    sha256 "381558b29bad7187433c935864ff9bb8c912419353239caf37c89833af4af225" => :mavericks
  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.10870421425758173, 'fraction_numerical': 0.15951161874753841, 'mean_word_length': 4.521739130434782, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, 'https://': 8, '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': '4853019', 'n_tokens_mistral': 1280, 'n_tokens_neox': 1065, 'n_words': 160}