<commit_before>class Pow < Formula
  desc "Zero-config Rack server for local apps on macOS"
  homepage "http://pow.cx/"
  url "http://get.pow.cx/versions/0.6.0.tar.gz"
  sha256 "225e52bdc0ace5747197a5ece777785245110e576a5136a3d17136ab88a74364"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "d7b025606aeafec695f040a5e35891ffb5a37f999b70a9960435863509e0746e"
    sha256 cellar: :any_skip_relocation, big_sur:       "148533a078c8f6675c9994a2118fc27e5e4f60882844f9dfed2f756c2a26e926"
    sha256 cellar: :any_skip_relocation, catalina:      "148533a078c8f6675c9994a2118fc27e5e4f60882844f9dfed2f756c2a26e926"
    sha256 cellar: :any_skip_relocation, mojave:        "148533a078c8f6675c9994a2118fc27e5e4f60882844f9dfed2f756c2a26e926"
  end

  # The related GitHub repository (basecamp/pow) was archived sometime between
  # 2018-06-11 and 2019-04-10 (referencing Wayback Machine snapshots)
  deprecate! date: "2021-04-21", because: :repo_archived

  depends_on "node"

  def install
    libexec.install Dir["*"]
    (bin/"pow").write <<~EOS
      #!/bin/sh
      export POW_BIN="#{bin}/pow"
      exec "#{Formula["node"].opt_bin}/node" "#{libexec}/lib/command.js" "$@"
    EOS
  end

  def caveats
    <<~EOS
      Create the required host directories:
        mkdir -p ~/Library/Application\\ Support/Pow/Hosts
        ln -s ~/Library/Application\\ Support/Pow/Hosts ~/.pow

      Setup port 80 forwarding and launchd agents:
        sudo pow --install-system
        pow --install-local

      Load launchd agents:
        sudo launchctl load -w /Library/LaunchDaemons/cx.pow.firewall.plist
        launchctl load -w ~/Library/LaunchAgents/cx.pow.powd.plist
    EOS
  end
end
<commit_msg>pow: update 0.6.0 bottle.<commit_after>class Pow < Formula
  desc "Zero-config Rack server for local apps on macOS"
  homepage "http://pow.cx/"
  url "http://get.pow.cx/versions/0.6.0.tar.gz"
  sha256 "225e52bdc0ace5747197a5ece777785245110e576a5136a3d17136ab88a74364"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "d7b025606aeafec695f040a5e35891ffb5a37f999b70a9960435863509e0746e"
    sha256 cellar: :any_skip_relocation, big_sur:       "148533a078c8f6675c9994a2118fc27e5e4f60882844f9dfed2f756c2a26e926"
    sha256 cellar: :any_skip_relocation, catalina:      "148533a078c8f6675c9994a2118fc27e5e4f60882844f9dfed2f756c2a26e926"
    sha256 cellar: :any_skip_relocation, mojave:        "148533a078c8f6675c9994a2118fc27e5e4f60882844f9dfed2f756c2a26e926"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "8f1172eca858ea568c110ef3dc88bd840c3b36378fa6ca238ba44a072e89fb6e"
  end

  # The related GitHub repository (basecamp/pow) was archived sometime between
  # 2018-06-11 and 2019-04-10 (referencing Wayback Machine snapshots)
  deprecate! date: "2021-04-21", because: :repo_archived

  depends_on "node"

  def install
    libexec.install Dir["*"]
    (bin/"pow").write <<~EOS
      #!/bin/sh
      export POW_BIN="#{bin}/pow"
      exec "#{Formula["node"].opt_bin}/node" "#{libexec}/lib/command.js" "$@"
    EOS
  end

  def caveats
    <<~EOS
      Create the required host directories:
        mkdir -p ~/Library/Application\\ Support/Pow/Hosts
        ln -s ~/Library/Application\\ Support/Pow/Hosts ~/.pow

      Setup port 80 forwarding and launchd agents:
        sudo pow --install-system
        pow --install-local

      Load launchd agents:
        sudo launchctl load -w /Library/LaunchDaemons/cx.pow.firewall.plist
        launchctl load -w ~/Library/LaunchAgents/cx.pow.powd.plist
    EOS
  end
end

{'fraction_non_alphanumeric': 0.09873060648801128, 'fraction_numerical': 0.16643159379407615, 'mean_word_length': 3.7091633466135456, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '7169400', 'n_tokens_mistral': 1723, 'n_tokens_neox': 1384, 'n_words': 252}