<commit_before>class Caddy < Formula
  desc "Alternative general-purpose HTTP/2 web server"
  homepage "https://caddyserver.com/"
  url "https://github.com/mholt/caddy/archive/v0.10.13.tar.gz"
  sha256 "34e25c1e91c5916803d3004407b27a30f0a32fb58511323c8dccd3cace8246f6"
  head "https://github.com/mholt/caddy.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "89a2be8d6029f38cac152347697b38d13ad68151ceef692b3143268dab89b424" => :high_sierra
    sha256 "1ba88738ac4e56ce21d11c7d446724235d9fe7409916155ff0380ffcaa4e8816" => :sierra
    sha256 "c2be69441b83defcc2ef8c21cd2ef906f2b791a3ef7440e1fef08462ce069896" => :el_capitan
  end

  depends_on "go" => :build

  def install
    ENV["GOPATH"] = buildpath
    ENV["GOOS"] = OS::NAME
    ENV["GOARCH"] = MacOS.prefer_64_bit? ? "amd64" : "386"

    (buildpath/"src/github.com/mholt").mkpath
    ln_s buildpath, "src/github.com/mholt/caddy"

    system "go", "build", "-ldflags",
           "-X github.com/mholt/caddy/caddy/caddymain.gitTag=#{version}",
           "-o", bin/"caddy", "github.com/mholt/caddy/caddy"
  end

  test do
    begin
      io = IO.popen("#{bin}/caddy")
      sleep 2
    ensure
      Process.kill("SIGINT", io.pid)
      Process.wait(io.pid)
    end

    io.read =~ /0\.0\.0\.0:2015/
  end
end
<commit_msg>caddy: update 0.10.13 bottle for Linuxbrew.<commit_after>class Caddy < Formula
  desc "Alternative general-purpose HTTP/2 web server"
  homepage "https://caddyserver.com/"
  url "https://github.com/mholt/caddy/archive/v0.10.13.tar.gz"
  sha256 "34e25c1e91c5916803d3004407b27a30f0a32fb58511323c8dccd3cace8246f6"
  head "https://github.com/mholt/caddy.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "89a2be8d6029f38cac152347697b38d13ad68151ceef692b3143268dab89b424" => :high_sierra
    sha256 "1ba88738ac4e56ce21d11c7d446724235d9fe7409916155ff0380ffcaa4e8816" => :sierra
    sha256 "c2be69441b83defcc2ef8c21cd2ef906f2b791a3ef7440e1fef08462ce069896" => :el_capitan
    sha256 "718e4c729b914cdebc484d0083e40c78c26841c96fb8af28e009968f73f233d5" => :x86_64_linux
  end

  depends_on "go" => :build

  def install
    ENV["GOPATH"] = buildpath
    ENV["GOOS"] = OS::NAME
    ENV["GOARCH"] = MacOS.prefer_64_bit? ? "amd64" : "386"

    (buildpath/"src/github.com/mholt").mkpath
    ln_s buildpath, "src/github.com/mholt/caddy"

    system "go", "build", "-ldflags",
           "-X github.com/mholt/caddy/caddy/caddymain.gitTag=#{version}",
           "-o", bin/"caddy", "github.com/mholt/caddy/caddy"
  end

  test do
    begin
      io = IO.popen("#{bin}/caddy")
      sleep 2
    ensure
      Process.kill("SIGINT", io.pid)
      Process.wait(io.pid)
    end

    io.read =~ /0\.0\.0\.0:2015/
  end
end

{'fraction_non_alphanumeric': 0.13162773451983686, 'fraction_numerical': 0.16870596959584724, 'mean_word_length': 3.6597582037996546, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, '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': '6134500', 'n_tokens_mistral': 1424, 'n_tokens_neox': 1154, 'n_words': 156}