<commit_before>class Webalizer < Formula
  desc "Web server log file analysis"
  homepage "http://www.webalizer.org"
  url "ftp://ftp.mrunix.net/pub/webalizer/webalizer-2.23-08-src.tgz"
  mirror "https://mirrors.kernel.org/debian/pool/main/w/webalizer/webalizer_2.23.08.orig.tar.gz"
  sha256 "edaddb5aa41cc4a081a1500e3fa96615d4b41bc12086bcedf9938018ce79ed8d"

  bottle do
    sha256 "b49462177a945b9a9bd3d8fc9004c35b2150d1206a5967a5231a5da3f609d956" => :el_capitan
    sha256 "65ef54216360d45dc10285e8e12f1381ad273093ad4e88c3d659d91f8f4d63eb" => :yosemite
    sha256 "0910ecb43a791249be8eb075ea012868fea97d704f49a0d1ae3ec246ff169f4f" => :mavericks
    sha256 "3677442a19563ad21e7f5e2b3d7e6335cd388a8e9ca0223d4012ee5787c3f503" => :mountain_lion
  end

  depends_on "gd"
  depends_on "berkeley-db"
  depends_on "libpng"

  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}"
    system "make", "install"
  end

  test do
    (testpath/"test.log").write "127.0.0.1 user-identifier homebrew [10/Oct/2000:13:55:36 -0700] \"GET /beer.gif HTTP/1.0\" 200 2326"
    system "#{bin}/webalizer", "-c", etc/"webalizer.conf.sample", testpath/"test.log"<commit_msg>webalizer: update 2.23-08 bottle.<commit_after>class Webalizer < Formula
  desc "Web server log file analysis"
  homepage "http://www.webalizer.org"
  url "ftp://ftp.mrunix.net/pub/webalizer/webalizer-2.23-08-src.tgz"
  mirror "https://mirrors.kernel.org/debian/pool/main/w/webalizer/webalizer_2.23.08.orig.tar.gz"
  sha256 "edaddb5aa41cc4a081a1500e3fa96615d4b41bc12086bcedf9938018ce79ed8d"

  bottle do
    sha256 "dab2f6da9c48ff9b4841ed5e6585db534476a080f032782388cb0db2af471d3d" => :sierra
    sha256 "b49462177a945b9a9bd3d8fc9004c35b2150d1206a5967a5231a5da3f609d956" => :el_capitan
    sha256 "65ef54216360d45dc10285e8e12f1381ad273093ad4e88c3d659d91f8f4d63eb" => :yosemite
    sha256 "0910ecb43a791249be8eb075ea012868fea97d704f49a0d1ae3ec246ff169f4f" => :mavericks
    sha256 "3677442a19563ad21e7f5e2b3d7e6335cd388a8e9ca0223d4012ee5787c3f503" => :mountain_lion
  end

  depends_on "gd"
  depends_on "berkeley-db"
  depends_on "libpng"

  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}"
    system "make", "install"
  end

  test do
    (testpath/"test.log").write "127.0.0.1 user-identifier homebrew [10/Oct/2000:13:55:36 -0700] \"GET /beer.gif HTTP/1.0\" 200 2326"
    system "#{bin}/webalizer", "-c", etc/"webalizer.conf.sample", testpath/"test.log"
{'fraction_non_alphanumeric': 0.12458654906284454, 'fraction_numerical': 0.20984932010290333, 'mean_word_length': 3.733913043478261, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, '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': '726441', 'n_tokens_mistral': 1444, 'n_tokens_neox': 1152, 'n_words': 141}