<commit_before>class Gostatic < Formula
  desc "Fast static site generator"
  homepage "https://github.com/piranha/gostatic"
  url "https://github.com/piranha/gostatic/archive/2.33.tar.gz"
  sha256 "c15d94432ad7d0dfa434bcab22c0cd69d5aefe9964a495fea4607fb76ff422a4"
  license "ISC"
  head "https://github.com/piranha/gostatic.git", branch: "master"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "b9aad98ab7d7c5886f7cddebe62ca2ae9d2b4cf8c03af5224f562fb2883fbd0c"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "b28048be6882dd7cfbe190c3183be073f008a4ac54463319282bffd789237e0c"
    sha256 cellar: :any_skip_relocation, monterey:       "611af2795147728139cb7f9a4a1d784cc43b05e26d46a1e65ad80f07e577f03b"
    sha256 cellar: :any_skip_relocation, big_sur:        "ebfca024745bdf8c11c37fc95a5a8aa21afa43cb6c4f98c5a86f38a552eca441"
    sha256 cellar: :any_skip_relocation, catalina:       "bf67351bb1dfc59407dd8e51ced98d6c8982c04d2fa6118391690743e721f1ae"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "c2f8b38145cd9361420e36e7c02586fc261de6a37c534ff06e871413715032ca"
  end

  depends_on "go" => :build

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

  test do
    (testpath/"config").write <<~EOS
      TEMPLATES = site.tmpl
      SOURCE = src
      OUTPUT = out
      TITLE = Hello from Homebrew

      index.md:
      \tconfig
      \text .html
      \tmarkdown
      \ttemplate site
    EOS

    (testpath/"site.tmpl").write <<~EOS
      {{ define "site" }}
      <html><head><title>{{ .Title }}</title></head><body>{{ .Content }}</body></html>
      {{ end }}
    EOS

    (testpath/"src/index.md").write "Hello world!"<commit_msg>gostatic: update 2.33 bottle.<commit_after>class Gostatic < Formula
  desc "Fast static site generator"
  homepage "https://github.com/piranha/gostatic"
  url "https://github.com/piranha/gostatic/archive/2.33.tar.gz"
  sha256 "c15d94432ad7d0dfa434bcab22c0cd69d5aefe9964a495fea4607fb76ff422a4"
  license "ISC"
  head "https://github.com/piranha/gostatic.git", branch: "master"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "f44df8fbf9a4a937087fa255aea21c78f086cb2343aae067a73a6383f818495c"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "07506614b233d6e61e02326c934d758a9eb456f037edc9f307248e916d2dcd94"
    sha256 cellar: :any_skip_relocation, monterey:       "e217668f8086ac3185f1c23d594317d680ad7bca9fb97af75531ffbe8d299853"
    sha256 cellar: :any_skip_relocation, big_sur:        "845e306d8fc02a1cc8c5328789560f57d0d0df313c65a275037e0e84e9491c99"
    sha256 cellar: :any_skip_relocation, catalina:       "03de028c202e88cc7b5f4661b54403c205fe75259f0f34fe3764f4416dc98a82"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "283240692aa393ce727bbdfb5d9cf7ce7dfea49da0cd70333a802066378e85ce"
  end

  depends_on "go" => :build

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

  test do
    (testpath/"config").write <<~EOS
      TEMPLATES = site.tmpl
      SOURCE = src
      OUTPUT = out
      TITLE = Hello from Homebrew

      index.md:
      \tconfig
      \text .html
      \tmarkdown
      \ttemplate site
    EOS

    (testpath/"site.tmpl").write <<~EOS
      {{ define "site" }}
      <html><head><title>{{ .Title }}</title></head><body>{{ .Content }}</body></html>
      {{ end }}
    EOS

    (testpath/"src/index.md").write "Hello world!"
{'fraction_non_alphanumeric': 0.10660046728971963, 'fraction_numerical': 0.18311915887850466, 'mean_word_length': 4.173716012084592, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 21, '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': '5173468', 'n_tokens_mistral': 1785, 'n_tokens_neox': 1421, 'n_words': 204}