<commit_before>class Dnscontrol < Formula
  desc "It is system for maintaining DNS zones"
  homepage "https://github.com/StackExchange/dnscontrol"
  url "https://github.com/StackExchange/dnscontrol/archive/v3.15.0.tar.gz"
  sha256 "6766667e85ffd128f6f486f44ceb01e8c18442252a181d54b9c754637162d685"
  license "MIT"
  version_scheme 1

  livecheck do
    url :stable
    regex(/^v?(\d+(?:\.\d+)+)$/i)
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "3c32fdb2995aba8c6d9fc1f7d5f11063f530768203907a706da3c52cd407b625"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "755c1dfecb770a586c749cde55a8965ca2a8868f4d65cce81e4444e65c4c5203"
    sha256 cellar: :any_skip_relocation, monterey:       "1a3d68c80c44e77dc942dfd728a0dd789c69314427a845362671f659c82219ad"
    sha256 cellar: :any_skip_relocation, big_sur:        "7f1e727e118b8ba9f1df76e92476965fb3cded82de3c3e535722bb1d5bd5f5de"
    sha256 cellar: :any_skip_relocation, catalina:       "d69fe0ed0a43a192e87749f8ce44272a025769de444462b20dce50a41e9e82d1"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "73ece0c1a74196fb0a7779bbf319e420f77a6120f91bb1c713b48520b243285a"
  end

  depends_on "go" => :build

  def install
    system "go", "build", *std_go_args(ldflags: "-s -w")
  end

  test do
    (testpath/"dnsconfig.js").write <<~EOS
      var namecom = NewRegistrar("name.com", "NAMEDOTCOM");
      var r53 = NewDnsProvider("r53", "ROUTE53")

      D("example.com", namecom, DnsProvider(r53),
        A("@", "172.16.17.32"),
        CNAME("www","@"),
        MX("@",5,"mail.myserver.com."),
        A("test", "172.16.58.3")
      )
    EOS

    output = shell_output("#{bin}/dnscontrol check #{testpath}/dnsconfig.js 2>&1").strip
    assert_equal "No errors.", output
  end
end<commit_msg>dnscontrol: update 3.15.0 bottle.<commit_after>class Dnscontrol < Formula
  desc "It is system for maintaining DNS zones"
  homepage "https://github.com/StackExchange/dnscontrol"
  url "https://github.com/StackExchange/dnscontrol/archive/v3.15.0.tar.gz"
  sha256 "6766667e85ffd128f6f486f44ceb01e8c18442252a181d54b9c754637162d685"
  license "MIT"
  version_scheme 1

  livecheck do
    url :stable
    regex(/^v?(\d+(?:\.\d+)+)$/i)
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "0f7c8e704605cb6eb5460dc57a0ac6a10cc43a4d3930fd21f1faa7898d3a618a"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "28621a7e3ae0d50c76c21849e620b20019f1dfd26b1fba08697badcddd249e7c"
    sha256 cellar: :any_skip_relocation, monterey:       "d118147d5bcc4c82b974d54f20a2bd2cd6d0598552b75031a5b9f4102caf7609"
    sha256 cellar: :any_skip_relocation, big_sur:        "2c68ffa859b486e9c1b26f1add16ca85f03f2b3330a0a1c1b69caa2b112cd4c2"
    sha256 cellar: :any_skip_relocation, catalina:       "13965869abdf3d006fbb7f9da105c8f47935d96c5ee5ed3e05fd7cab7a2ef299"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "b45397693e8f912a9ad35732b5cf6f7fc2dfde92cb8e9b9592fdb6377e347388"
  end

  depends_on "go" => :build

  def install
    system "go", "build", *std_go_args(ldflags: "-s -w")
  end

  test do
    (testpath/"dnsconfig.js").write <<~EOS
      var namecom = NewRegistrar("name.com", "NAMEDOTCOM");
      var r53 = NewDnsProvider("r53", "ROUTE53")

      D("example.com", namecom, DnsProvider(r53),
        A("@", "172.16.17.32"),
        CNAME("www","@"),
        MX("@",5,"mail.myserver.com."),
        A("test", "172.16.58.3")
      )
    EOS

    output = shell_output("#{bin}/dnscontrol check #{testpath}/dnsconfig.js 2>&1").strip
    assert_equal "No errors.", output
  end
end
{'fraction_non_alphanumeric': 0.11866295264623955, 'fraction_numerical': 0.19498607242339833, 'mean_word_length': 4.550231839258115, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 4, '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': '2931808', 'n_tokens_mistral': 1917, 'n_tokens_neox': 1554, 'n_words': 212}