<commit_before>class Logrotate < Formula
  desc "Rotates, compresses, and mails system logs"
  homepage "https://github.com/logrotate/logrotate"
  url "https://github.com/logrotate/logrotate/releases/download/3.18.0/logrotate-3.18.0.tar.xz"
  sha256 "841f81bf09d0014e4a2e11af166bb33fcd8429cc0c2d4a7d3d9ceb3858cfccc5"
  license "GPL-2.0"

  bottle do
    sha256 cellar: :any, arm64_big_sur: "4302035ee1c9162e650852b38ad0b384cb3ad2f7e74a97ff72f57e2d50d5848e"
    sha256 cellar: :any, big_sur:       "8074cf8252a19b7be06a4600ab49b38c16b6ac884ca58744c1afc489cc04eac9"
    sha256 cellar: :any, catalina:      "a8a48494c6d57c20ac9ff7b38d0ca2ed41ec16640928f0f4c83bfb18ea744908"
    sha256 cellar: :any, mojave:        "c970d6bce04d119e0ba69d925b5230d61fa71b92d51792744d9590a9cb8ead18"
  end

  depends_on "popt"

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--with-compress-command=/usr/bin/gzip",
                          "--with-uncompress-command=/usr/bin/gunzip",
                          "--with-state-file-path=#{var}/lib/logrotate.status"
    system "make", "install"

    inreplace "examples/logrotate.conf", "/etc/logrotate.d", "#{etc}/logrotate.d"
    etc.install "examples/logrotate.conf" => "logrotate.conf"
    (etc/"logrotate.d").mkpath
  end
<commit_msg>logrotate 3.18.1<commit_after>class Logrotate < Formula
  desc "Rotates, compresses, and mails system logs"
  homepage "https://github.com/logrotate/logrotate"
  url "https://github.com/logrotate/logrotate/releases/download/3.18.1/logrotate-3.18.1.tar.xz"
  sha256 "14a924e4804b3974e85019a9f9352c2a69726702e6656155c48bcdeace68a5dc"
  license "GPL-2.0"

  bottle do
    sha256 cellar: :any, arm64_big_sur: "4302035ee1c9162e650852b38ad0b384cb3ad2f7e74a97ff72f57e2d50d5848e"
    sha256 cellar: :any, big_sur:       "8074cf8252a19b7be06a4600ab49b38c16b6ac884ca58744c1afc489cc04eac9"
    sha256 cellar: :any, catalina:      "a8a48494c6d57c20ac9ff7b38d0ca2ed41ec16640928f0f4c83bfb18ea744908"
    sha256 cellar: :any, mojave:        "c970d6bce04d119e0ba69d925b5230d61fa71b92d51792744d9590a9cb8ead18"
  end

  depends_on "popt"

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--with-compress-command=/usr/bin/gzip",
                          "--with-uncompress-command=/usr/bin/gunzip",
                          "--with-state-file-path=#{var}/lib/logrotate.status"
    system "make", "install"

    inreplace "examples/logrotate.conf", "/etc/logrotate.d", "#{etc}/logrotate.d"
    etc.install "examples/logrotate.conf" => "logrotate.conf"
    (etc/"logrotate.d").mkpath
  end

{'fraction_non_alphanumeric': 0.1205699671172817, 'fraction_numerical': 0.16770186335403728, 'mean_word_length': 3.3186119873817033, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '3906921', 'n_tokens_mistral': 1322, 'n_tokens_neox': 1072, 'n_words': 129}