<commit_before>class Telegraf < Formula
  desc "Server-level metric gathering agent for InfluxDB"
  homepage "https://influxdata.com"
  url "https://github.com/influxdata/telegraf/archive/1.4.5.tar.gz"
  sha256 "12ac626e4adb8667b5383d744f7ffe00ca56ede4a50562fdad28d4e01f9d5b69"
  head "https://github.com/influxdata/telegraf.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "dd1be7a7a1be1ced701d968679712fad95bfc94d7576390d322a5bece127c753" => :high_sierra
    sha256 "d615d8b3dc076a6b0458884cb84a65e42a411f77269d36d9424563fc26afb95e" => :sierra
    sha256 "b3559483ae1acf1e34550c42128bddfd4e2d5df4267a9191d06a9d77c8763415" => :el_capitan
  end

  depends_on "gdm" => :build
  depends_on "go" => :build

  def install
    ENV["GOPATH"] = buildpath
    dir = buildpath/"src/github.com/influxdata/telegraf"
    dir.install buildpath.children
    cd dir do
      system "gdm", "restore"
      system "go", "install", "-ldflags", "-X main.version=#{version}", "./..."
      prefix.install_metafiles
    end
    bin.install "bin/telegraf"
    etc.install dir/"etc/telegraf.conf" => "telegraf.conf"
  end

  def post_install
    # Create directory for additional user configurations
    (etc/"telegraf.d").mkpath
  end

  plist_options :manual => "telegraf -config #{HOMEBREW_PREFIX}/etc/telegraf.conf"
<commit_msg>telegraf: update 1.4.5 bottle for Linuxbrew.<commit_after>class Telegraf < Formula
  desc "Server-level metric gathering agent for InfluxDB"
  homepage "https://influxdata.com"
  url "https://github.com/influxdata/telegraf/archive/1.4.5.tar.gz"
  sha256 "12ac626e4adb8667b5383d744f7ffe00ca56ede4a50562fdad28d4e01f9d5b69"
  head "https://github.com/influxdata/telegraf.git"

  bottle do
    cellar :any_skip_relocation
    sha256 "dd1be7a7a1be1ced701d968679712fad95bfc94d7576390d322a5bece127c753" => :high_sierra
    sha256 "d615d8b3dc076a6b0458884cb84a65e42a411f77269d36d9424563fc26afb95e" => :sierra
    sha256 "b3559483ae1acf1e34550c42128bddfd4e2d5df4267a9191d06a9d77c8763415" => :el_capitan
    sha256 "9c58fa2149e14e270c02ca045b5ca5ba57f722f5adfc34546dd550127e72f06f" => :x86_64_linux
  end

  depends_on "gdm" => :build
  depends_on "go" => :build

  def install
    ENV["GOPATH"] = buildpath
    dir = buildpath/"src/github.com/influxdata/telegraf"
    dir.install buildpath.children
    cd dir do
      system "gdm", "restore"
      system "go", "install", "-ldflags", "-X main.version=#{version}", "./..."
      prefix.install_metafiles
    end
    bin.install "bin/telegraf"
    etc.install dir/"etc/telegraf.conf" => "telegraf.conf"
  end

  def post_install
    # Create directory for additional user configurations
    (etc/"telegraf.d").mkpath
  end

  plist_options :manual => "telegraf -config #{HOMEBREW_PREFIX}/etc/telegraf.conf"

{'fraction_non_alphanumeric': 0.108742774566474, 'fraction_numerical': 0.14450867052023122, 'mean_word_length': 4.418786692759295, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '3580735', 'n_tokens_mistral': 1320, 'n_tokens_neox': 1108, 'n_words': 170}