<commit_before>class Nsd < Formula
  homepage "http://www.nlnetlabs.nl/projects/nsd/"
  url "http://www.nlnetlabs.nl/downloads/nsd/nsd-4.1.2.tar.gz"
  sha256 "8514b75bb8884526a637e1666911f429e0f52c5a3b0186104bb111371993644d"

  bottle do
    sha1 "e0b29e8c010ea0e20949e3a7bdf2206136d68e2a" => :yosemite
    sha1 "2648d981e7a399b76a06fa93d7d75d865ca8d816" => :mavericks
    sha1 "a0ec3d813f678d8f83f11011693fcdbed0ebe4f5" => :mountain_lion
  end

  option "with-root-server", "Allow NSD to run as a root name server"
  option "with-bind8-stats", "Enable BIND8-like NSTATS & XSTATS"
  option "with-ratelimit", "Enable rate limiting"
  option "with-zone-stats", "Enable per-zone statistics"

  depends_on "libevent"

  def install
    args = %W[
      --prefix=#{prefix}
      --with-libevent=#{Formula["libevent"].opt_prefix}
    ]

    args << "--enable-root-server" if build.with? "root-server"
    args << "--enable-bind8-stats" if build.with? "bind8-stats"
    args << "--enable-ratelimit" if build.with? "ratelimit"
    args << "--enable-zone-stats" if build.with? "zone-stats"

    system "./configure", *args
    system "make", "install"
  end

  test do
    system "#{sbin}/nsd", "-v"
  end
end
<commit_msg>nsd: update 4.1.2 bottle.<commit_after>class Nsd < Formula
  homepage "http://www.nlnetlabs.nl/projects/nsd/"
  url "http://www.nlnetlabs.nl/downloads/nsd/nsd-4.1.2.tar.gz"
  sha256 "8514b75bb8884526a637e1666911f429e0f52c5a3b0186104bb111371993644d"

  bottle do
    sha256 "5a701fff58af6bc2792766dd25e9ce339fcf17602613d312987adb08e409bc4a" => :yosemite
    sha256 "b4575e298187f6d5367b97084c6ece2b49e9b64a3d23799625bc5b939d17d288" => :mavericks
    sha256 "dfa3813fa3193e85d854f9f6d63a606d4c568c709ef499041d57f63e37551b56" => :mountain_lion
  end

  option "with-root-server", "Allow NSD to run as a root name server"
  option "with-bind8-stats", "Enable BIND8-like NSTATS & XSTATS"
  option "with-ratelimit", "Enable rate limiting"
  option "with-zone-stats", "Enable per-zone statistics"

  depends_on "libevent"

  def install
    args = %W[
      --prefix=#{prefix}
      --with-libevent=#{Formula["libevent"].opt_prefix}
    ]

    args << "--enable-root-server" if build.with? "root-server"
    args << "--enable-bind8-stats" if build.with? "bind8-stats"
    args << "--enable-ratelimit" if build.with? "ratelimit"
    args << "--enable-zone-stats" if build.with? "zone-stats"

    system "./configure", *args
    system "make", "install"
  end

  test do
    system "#{sbin}/nsd", "-v"
  end
end

{'fraction_non_alphanumeric': 0.13751987281399047, 'fraction_numerical': 0.1343402225755167, 'mean_word_length': 3.8497109826589595, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '5124008', 'n_tokens_mistral': 1202, 'n_tokens_neox': 1024, 'n_words': 183}