<commit_before>class Kestrel < Formula
  desc "Distributed message queue"
  homepage "https://twitter-archive.github.io/kestrel/"
  url "https://twitter-archive.github.io/kestrel/download/kestrel-2.4.1.zip"
  sha256 "5d72a301737cc6cc3908483ce73d4bdb6e96521f3f8c96f93b732d740aaea80c"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "57b8c7f3a898f32a556efc9f79f1944f8739a458f07b671664357239d6a5b7e8"
    sha256 cellar: :any_skip_relocation, big_sur:       "8106b504796e7c73733c4206d00e2d7f7213e998729a9fe6c56a6016b14b822d"
    sha256 cellar: :any_skip_relocation, catalina:      "8106b504796e7c73733c4206d00e2d7f7213e998729a9fe6c56a6016b14b822d"
    sha256 cellar: :any_skip_relocation, mojave:        "8106b504796e7c73733c4206d00e2d7f7213e998729a9fe6c56a6016b14b822d"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "57b8c7f3a898f32a556efc9f79f1944f8739a458f07b671664357239d6a5b7e8"
  end

  def install
    inreplace "scripts/kestrel.sh" do |s|
      s.change_make_var! "APP_HOME", libexec
      # Fix var paths.
      s.gsub! "/var", var
      # Fix path to script in help message.
      s.gsub! "Usage: /etc/init.d/${APP_NAME}.sh", "Usage: kestrel"
      # Don't call ulimit as not root.
      s.gsub! "ulimit -", "# ulimit -"
    end
<commit_msg>kestrel: add license and deprecate<commit_after>class Kestrel < Formula
  desc "Distributed message queue"
  homepage "https://twitter-archive.github.io/kestrel/"
  url "https://twitter-archive.github.io/kestrel/download/kestrel-2.4.1.zip"
  sha256 "5d72a301737cc6cc3908483ce73d4bdb6e96521f3f8c96f93b732d740aaea80c"
  license "Apache-2.0"

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_big_sur: "57b8c7f3a898f32a556efc9f79f1944f8739a458f07b671664357239d6a5b7e8"
    sha256 cellar: :any_skip_relocation, big_sur:       "8106b504796e7c73733c4206d00e2d7f7213e998729a9fe6c56a6016b14b822d"
    sha256 cellar: :any_skip_relocation, catalina:      "8106b504796e7c73733c4206d00e2d7f7213e998729a9fe6c56a6016b14b822d"
    sha256 cellar: :any_skip_relocation, mojave:        "8106b504796e7c73733c4206d00e2d7f7213e998729a9fe6c56a6016b14b822d"
    sha256 cellar: :any_skip_relocation, x86_64_linux:  "57b8c7f3a898f32a556efc9f79f1944f8739a458f07b671664357239d6a5b7e8"
  end

  # See: https://github.com/twitter-archive/kestrel#status
  deprecate! date: "2016-01-22", because: :deprecated_upstream

  def install
    inreplace "scripts/kestrel.sh" do |s|
      s.change_make_var! "APP_HOME", libexec
      # Fix var paths.
      s.gsub! "/var", var
      # Fix path to script in help message.
      s.gsub! "Usage: /etc/init.d/${APP_NAME}.sh", "Usage: kestrel"
      # Don't call ulimit as not root.
      s.gsub! "ulimit -", "# ulimit -"
    end

{'fraction_non_alphanumeric': 0.09254498714652956, 'fraction_numerical': 0.22254865956665443, 'mean_word_length': 4.628099173553719, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6155445', 'n_tokens_mistral': 1513, 'n_tokens_neox': 1216, 'n_words': 169}