<commit_before>class KnotResolver < Formula
  desc "Minimalistic, caching, DNSSEC-validating DNS resolver"
  homepage "https://www.knot-resolver.cz"
  url "https://secure.nic.cz/files/knot-resolver/knot-resolver-1.2.2.tar.xz"
  sha256 "89ab2ac8058b297c1f73f1c12e0f16d6e160aa86363e99ffa590bee7fe307931"
  head "https://gitlab.labs.nic.cz/knot/resolver.git"

  bottle do
    sha256 "4fdbbc08a80068287ae21359dc5e4b91094782de6e78cfc240739409823b94bb" => :sierra
    sha256 "f258be9374d8df2418459f2343e79e1267d26a10a21d94aaf0c53a9be4bc7ccd" => :el_capitan
    sha256 "e979ebf1fc2056afde0c84d1b23f93f51ffb85d7a7691db0aa88f0a49bfa8ed7" => :yosemite
  end

  depends_on "knot"
  depends_on "luajit"
  depends_on "libuv"
  depends_on "gnutls"
  depends_on "lmdb"

  depends_on "cmocka" => :build
  depends_on "pkg-config" => :build

  option "without-nettle", "Compile without DNS cookies support"
  option "with-hiredis", "Compile with Redis cache storage support"
  option "with-libmemcached", "Compile with memcached cache storage support"
  depends_on "nettle" => :recommended
  depends_on "hiredis" => :optional
  depends_on "libmemcached" => :optional

  def install
    %w[all check lib-install daemon-install modules-install].each do |target|
      system "make", target, "PREFIX=#{prefix}"
    end

    cp "etc/config.personal", "config"
    inreplace "config", /^\s*user\(/, "-- user("<commit_msg>knot-resolver 1.2.3<commit_after>class KnotResolver < Formula
  desc "Minimalistic, caching, DNSSEC-validating DNS resolver"
  homepage "https://www.knot-resolver.cz"
  url "https://secure.nic.cz/files/knot-resolver/knot-resolver-1.2.3.tar.xz"
  sha256 "81a773f182112b4e11935223f900cfbcca8624f2c382b1e39a68d7c3db81c921"
  head "https://gitlab.labs.nic.cz/knot/resolver.git"

  bottle do
    sha256 "4fdbbc08a80068287ae21359dc5e4b91094782de6e78cfc240739409823b94bb" => :sierra
    sha256 "f258be9374d8df2418459f2343e79e1267d26a10a21d94aaf0c53a9be4bc7ccd" => :el_capitan
    sha256 "e979ebf1fc2056afde0c84d1b23f93f51ffb85d7a7691db0aa88f0a49bfa8ed7" => :yosemite
  end

  depends_on "knot"
  depends_on "luajit"
  depends_on "libuv"
  depends_on "gnutls"
  depends_on "lmdb"

  depends_on "cmocka" => :build
  depends_on "pkg-config" => :build

  option "without-nettle", "Compile without DNS cookies support"
  option "with-hiredis", "Compile with Redis cache storage support"
  option "with-libmemcached", "Compile with memcached cache storage support"
  depends_on "nettle" => :recommended
  depends_on "hiredis" => :optional
  depends_on "libmemcached" => :optional

  def install
    %w[all check lib-install daemon-install modules-install].each do |target|
      system "make", target, "PREFIX=#{prefix}"
    end

    cp "etc/config.personal", "config"
    inreplace "config", /^\s*user\(/, "-- user("
{'fraction_non_alphanumeric': 0.11384725196288366, 'fraction_numerical': 0.12348322626695217, 'mean_word_length': 4.951167728237792, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, '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': '6055795', 'n_tokens_mistral': 1311, 'n_tokens_neox': 1141, 'n_words': 196}