<commit_before>class Telegraf < Formula
  desc "Server-level metric gathering agent for InfluxDB"
  homepage "https://www.influxdata.com/"
  url "https://github.com/influxdata/telegraf/archive/v1.23.3.tar.gz"
  sha256 "984612d5d74b014e82e03069c2430b7868cc9c4c40b2215f43dc5533b105fe3d"
  license "MIT"
  head "https://github.com/influxdata/telegraf.git", branch: "master"

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

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "a41890b558fc99569d282d6c6b6bf1e358160549d5fb6c5c22226d1dea8a86e4"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "f567027014b56da4032fefefd8ee4a9f0feea4080571462550fe5aa62bb7d76c"
    sha256 cellar: :any_skip_relocation, monterey:       "32b04f646455ddcd58bdc9ae4beff6727a958c7d4e036376f4b267f54ee1792d"
    sha256 cellar: :any_skip_relocation, big_sur:        "a14956a67c8f42d469b259c6674a3cd242ab1d50b132551abac52ad7ca2753c7"
    sha256 cellar: :any_skip_relocation, catalina:       "481113229c6df9284632dd4c4b10bdf4f4c030b4545d13bd0880fe168edaaaeb"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "b7e9d6315e8cf62919de7aba4fd5f5999ef17380cf8ab49adbb3bf7191107a77"
  end

  depends_on "go" => :build

  def install
    system "go", "build", *std_go_args, "-ldflags", "-X main.version=#{version}", "./cmd/telegraf"
    etc.install "etc/telegraf.conf" => "telegraf.conf"
  end

  def post_install
    # Create directory for additional user configurations<commit_msg>telegraf 1.23.4<commit_after>class Telegraf < Formula
  desc "Server-level metric gathering agent for InfluxDB"
  homepage "https://www.influxdata.com/"
  url "https://github.com/influxdata/telegraf/archive/v1.23.4.tar.gz"
  sha256 "05188b5f0c0dfa204dc6bd8429ebc5366b73e42c7bdd4f1a50fffa2a1e75616f"
  license "MIT"
  head "https://github.com/influxdata/telegraf.git", branch: "master"

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

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "a41890b558fc99569d282d6c6b6bf1e358160549d5fb6c5c22226d1dea8a86e4"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "f567027014b56da4032fefefd8ee4a9f0feea4080571462550fe5aa62bb7d76c"
    sha256 cellar: :any_skip_relocation, monterey:       "32b04f646455ddcd58bdc9ae4beff6727a958c7d4e036376f4b267f54ee1792d"
    sha256 cellar: :any_skip_relocation, big_sur:        "a14956a67c8f42d469b259c6674a3cd242ab1d50b132551abac52ad7ca2753c7"
    sha256 cellar: :any_skip_relocation, catalina:       "481113229c6df9284632dd4c4b10bdf4f4c030b4545d13bd0880fe168edaaaeb"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "b7e9d6315e8cf62919de7aba4fd5f5999ef17380cf8ab49adbb3bf7191107a77"
  end

  depends_on "go" => :build

  def install
    system "go", "build", *std_go_args, "-ldflags", "-X main.version=#{version}", "./cmd/telegraf"
    etc.install "etc/telegraf.conf" => "telegraf.conf"
  end

  def post_install
    # Create directory for additional user configurations
{'fraction_non_alphanumeric': 0.09733333333333333, 'fraction_numerical': 0.20766666666666667, 'mean_word_length': 5.5524017467248905, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7443557', 'n_tokens_mistral': 1620, 'n_tokens_neox': 1304, 'n_words': 172}