<commit_before>class Inlets < Formula
  desc "Expose your local endpoints to the Internet"
  homepage "https://github.com/inlets/inlets"
  url "https://github.com/inlets/inlets.git",
      :tag      => "2.6.4",
      :revision => "969ffae856b36c8b92e22afd11c71d8ef9d8c173"

  bottle do
    cellar :any_skip_relocation
    sha256 "5c9c02581bcad55309a8b159b50363b9aa936def8088a9f8ae62af797a17fea8" => :catalina
    sha256 "8d695dc812c9f41550001eb33c5c90296f405d4c2b5e4779ca9b5a4f5f2f71fe" => :mojave
    sha256 "af0e13fb751ac48b9b709f51ceadf0cd19c284ee341c15e221a876ac4687165e" => :high_sierra
  end

  depends_on "go" => :build

  uses_from_macos "ruby" => :test

  def install
    ENV["GOPATH"] = buildpath
    (buildpath/"src/github.com/inlets/inlets").install buildpath.children
    cd "src/github.com/inlets/inlets" do
      commit = Utils.popen_read("git", "rev-parse", "HEAD").chomp
      system "go", "build", "-ldflags",
             "-s -w -X main.GitCommit=#{commit} -X main.Version=#{version}",
             "-a",
             "-installsuffix", "cgo", "-o", bin/"inlets"
      prefix.install_metafiles
    end<commit_msg>inlets 2.7.0<commit_after>class Inlets < Formula
  desc "Expose your local endpoints to the Internet"
  homepage "https://github.com/inlets/inlets"
  url "https://github.com/inlets/inlets.git",
      :tag      => "2.7.0",
      :revision => "ced556795aecc6e2ac514032e78f3096d17bfa25"

  bottle do
    cellar :any_skip_relocation
    sha256 "5c9c02581bcad55309a8b159b50363b9aa936def8088a9f8ae62af797a17fea8" => :catalina
    sha256 "8d695dc812c9f41550001eb33c5c90296f405d4c2b5e4779ca9b5a4f5f2f71fe" => :mojave
    sha256 "af0e13fb751ac48b9b709f51ceadf0cd19c284ee341c15e221a876ac4687165e" => :high_sierra
  end

  depends_on "go" => :build

  uses_from_macos "ruby" => :test

  def install
    ENV["GOPATH"] = buildpath
    (buildpath/"src/github.com/inlets/inlets").install buildpath.children
    cd "src/github.com/inlets/inlets" do
      commit = Utils.popen_read("git", "rev-parse", "HEAD").chomp
      system "go", "build", "-ldflags",
             "-s -w -X main.GitCommit=#{commit} -X main.Version=#{version}",
             "-a",
             "-installsuffix", "cgo", "-o", bin/"inlets"
      prefix.install_metafiles
    end
{'fraction_non_alphanumeric': 0.12914639540026537, 'fraction_numerical': 0.13710747456877487, 'mean_word_length': 3.6163265306122447, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 4, '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': '573875', 'n_tokens_mistral': 1072, 'n_tokens_neox': 910, 'n_words': 138}