<commit_before>class GolangciLint < Formula
  desc "Fast linters runner for Go"
  homepage "https://golangci-lint.run/"
  url "https://github.com/golangci/golangci-lint.git",
      tag:      "v1.46.0",
      revision: "7c1d8b75bd4aed28783a7b6a4dd852b7be9dc3d5"
  license "GPL-3.0-only"
  head "https://github.com/golangci/golangci-lint.git", branch: "master"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "31c47c0070852bf2c29384d19fc462097790457fa1b114a8a990645f8e2e9cf6"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "27b983e5fe6dd1a179a0ca4aa09c5a2346300f8204e872915063cc38255174c7"
    sha256 cellar: :any_skip_relocation, monterey:       "d215dbd8a3dcb7b4a90b7139633dc43a4c3791f88d613987f58bd7a728c8e37f"
    sha256 cellar: :any_skip_relocation, big_sur:        "0867d4fca9857aa1dbabc3c80bb795c4e26844c5a7ff5f50fa03fef986c70a25"
    sha256 cellar: :any_skip_relocation, catalina:       "bd067c45877db9b34a613a36e785d4a1cf8c5126946d2fa8e6095cb5320d65f5"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "c13480de8f9d40310b2e664f66606e0dc4290b881ad04cbe47a7d2fee285b8c8"
  end

  depends_on "go"

  def install
    ldflags = %W[
      -s -w
      -X main.version=#{version}
      -X main.commit=#{Utils.git_short_head(length: 7)}
      -X main.date=#{time.rfc3339}
    ]

    system "go", "build", *std_go_args(ldflags: ldflags), "./cmd/golangci-lint"

    output = Utils.safe_popen_read("#{bin}/golangci-lint", "completion", "bash")
    (bash_completion/"golangci-lint").write output
<commit_msg>golangci-lint 1.46.1<commit_after>class GolangciLint < Formula
  desc "Fast linters runner for Go"
  homepage "https://golangci-lint.run/"
  url "https://github.com/golangci/golangci-lint.git",
      tag:      "v1.46.1",
      revision: "044f0a170269dc3d108d65cb520b34232bedde4a"
  license "GPL-3.0-only"
  head "https://github.com/golangci/golangci-lint.git", branch: "master"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "31c47c0070852bf2c29384d19fc462097790457fa1b114a8a990645f8e2e9cf6"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "27b983e5fe6dd1a179a0ca4aa09c5a2346300f8204e872915063cc38255174c7"
    sha256 cellar: :any_skip_relocation, monterey:       "d215dbd8a3dcb7b4a90b7139633dc43a4c3791f88d613987f58bd7a728c8e37f"
    sha256 cellar: :any_skip_relocation, big_sur:        "0867d4fca9857aa1dbabc3c80bb795c4e26844c5a7ff5f50fa03fef986c70a25"
    sha256 cellar: :any_skip_relocation, catalina:       "bd067c45877db9b34a613a36e785d4a1cf8c5126946d2fa8e6095cb5320d65f5"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "c13480de8f9d40310b2e664f66606e0dc4290b881ad04cbe47a7d2fee285b8c8"
  end

  depends_on "go"

  def install
    ldflags = %W[
      -s -w
      -X main.version=#{version}
      -X main.commit=#{Utils.git_short_head(length: 7)}
      -X main.date=#{time.rfc3339}
    ]

    system "go", "build", *std_go_args(ldflags: ldflags), "./cmd/golangci-lint"

    output = Utils.safe_popen_read("#{bin}/golangci-lint", "completion", "bash")
    (bash_completion/"golangci-lint").write output

{'fraction_non_alphanumeric': 0.10514396635393077, 'fraction_numerical': 0.20122937560659981, 'mean_word_length': 4.867172675521822, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2452366', 'n_tokens_mistral': 1705, 'n_tokens_neox': 1352, 'n_words': 167}