<commit_before>class Frpc < Formula
  desc "Client app of fast reverse proxy to expose a local server to the internet"
  homepage "https://github.com/fatedier/frp"
  url "https://github.com/fatedier/frp.git",
      :tag      => "v0.33.0",
      :revision => "2406ecdfea62567a576bdb71e38adbafa3b4814a"

  bottle do
    cellar :any_skip_relocation
    sha256 "d4e9d35b54e69b7aebba2e4096d698fef26458b59346d8b54741ff3e6d7dd9ac" => :catalina
    sha256 "81b80f20cffec9875b8fb599043c4b9f83c8959a0be1114f37d6359b0c670acc" => :mojave
    sha256 "20f0519116b35d87808e81bbb20dbc664d474125c5f02f3e1ae508be94d4e154" => :high_sierra
  end

  depends_on "go" => :build

  def install
    ENV["GOPATH"] = buildpath
    contents = Dir["{*,.git,.gitignore}"]
    (buildpath/"src/github.com/fatedier/frp").install contents

    (buildpath/"bin").mkpath
    (etc/"frp").mkpath

    cd "src/github.com/fatedier/frp" do
      system "make", "frpc"
      bin.install "bin/frpc"
      etc.install "conf/frpc.ini" => "frp/frpc.ini"
      etc.install "conf/frpc_full.ini" => "frp/frpc_full.ini"
      prefix.install_metafiles
    end
  end

  plist_options :manual => "frpc -c #{HOMEBREW_PREFIX}/etc/frp/frpc.ini"

  def plist
    <<~EOS
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
        <dict><commit_msg>frpc: update 0.33.0 bottle.<commit_after>class Frpc < Formula
  desc "Client app of fast reverse proxy to expose a local server to the internet"
  homepage "https://github.com/fatedier/frp"
  url "https://github.com/fatedier/frp.git",
      :tag      => "v0.33.0",
      :revision => "2406ecdfea62567a576bdb71e38adbafa3b4814a"

  bottle do
    cellar :any_skip_relocation
    sha256 "6dc14a808db03ad0c653c8fa196d16f15da72489398a13ffa3dcc90d5527b381" => :catalina
    sha256 "0694702e27397753f1984272fda97b2441a6a24ef793a0da69f2783d765f33ab" => :mojave
    sha256 "2bad5d3e1aa66ea53751d84402d2d5e41f0b50bdc8c430cf616b48f48b91191a" => :high_sierra
  end

  depends_on "go" => :build

  def install
    ENV["GOPATH"] = buildpath
    contents = Dir["{*,.git,.gitignore}"]
    (buildpath/"src/github.com/fatedier/frp").install contents

    (buildpath/"bin").mkpath
    (etc/"frp").mkpath

    cd "src/github.com/fatedier/frp" do
      system "make", "frpc"
      bin.install "bin/frpc"
      etc.install "conf/frpc.ini" => "frp/frpc.ini"
      etc.install "conf/frpc_full.ini" => "frp/frpc_full.ini"
      prefix.install_metafiles
    end
  end

  plist_options :manual => "frpc -c #{HOMEBREW_PREFIX}/etc/frp/frpc.ini"

  def plist
    <<~EOS
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
        <dict>
{'fraction_non_alphanumeric': 0.13865546218487396, 'fraction_numerical': 0.117296918767507, 'mean_word_length': 3.4570982839313573, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 2, '>': 29, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '6764477', 'n_tokens_mistral': 1373, 'n_tokens_neox': 1167, 'n_words': 184}