<commit_before>class Voldemort < Formula
  desc "Distributed key-value storage system"
  homepage "https://www.project-voldemort.com/"
  url "https://github.com/voldemort/voldemort/archive/release-1.10.26-cutoff.tar.gz"
  sha256 "8bd41b53c3b903615d281e7277d5a9225075c3d00ea56c6e44d73f6327c73d55"
  license "Apache-2.0"
  revision 2

  livecheck do
    url :stable
    regex(/(?:release-)?v?(\d+(?:\.\d+)+)(?:-cutoff)?/i)
  end

  bottle do
    sha256 cellar: :any_skip_relocation, monterey: "e50c8b4278d1c10e0374fd08c569e6dfc121b33ca778f6db241f92f220c746fc"
    sha256 cellar: :any_skip_relocation, big_sur:  "dfd48d6516ae04989d577dc18fe490a678c2fccc562d62f9832e2dcc0449a191"
    sha256 cellar: :any_skip_relocation, catalina: "f0b69b617d5a983452c62ad06b316a3faf7ae088528afc492a660d370c120e2f"
    sha256 cellar: :any_skip_relocation, mojave:   "c9b88175b71d839d1afe3d4a3407f982f14f31194065f87bbaff8dbc33198e0b"
  end

  # https://github.com/voldemort/voldemort/issues/500#issuecomment-931424229
  deprecate! date: "2022-09-17", because: :unmaintained

  depends_on "gradle" => :build
  depends_on arch: :x86_64 # openjdk@8 is not supported on ARM
  depends_on "openjdk@8"

  def install
    system "./gradlew", "build", "-x", "test"
    libexec.install %w[lib dist contrib]
    bin.install Dir["bin/*{.sh,.py}"]
    libexec.install "bin"
    pkgshare.install "config" => "config-examples"
    (etc/"voldemort").mkpath

    env = Language::Java.overridable_java_home_env("1.8")
    env["PATH"] = "$JAVA_HOME/bin:$PATH"
    env["VOLDEMORT_HOME"] = libexec
    env["VOLDEMORT_CONFIG_DIR"] = etc/"voldemort"
    bin.env_script_all_files(libexec/"bin", env)
  end

  test do
    system bin/"vadmin.sh"
  end
end<commit_msg>voldemort: update 1.10.26_2 bottle.<commit_after>class Voldemort < Formula
  desc "Distributed key-value storage system"
  homepage "https://www.project-voldemort.com/"
  url "https://github.com/voldemort/voldemort/archive/release-1.10.26-cutoff.tar.gz"
  sha256 "8bd41b53c3b903615d281e7277d5a9225075c3d00ea56c6e44d73f6327c73d55"
  license "Apache-2.0"
  revision 2

  livecheck do
    url :stable
    regex(/(?:release-)?v?(\d+(?:\.\d+)+)(?:-cutoff)?/i)
  end

  bottle do
    sha256 cellar: :any_skip_relocation, monterey:     "e50c8b4278d1c10e0374fd08c569e6dfc121b33ca778f6db241f92f220c746fc"
    sha256 cellar: :any_skip_relocation, big_sur:      "dfd48d6516ae04989d577dc18fe490a678c2fccc562d62f9832e2dcc0449a191"
    sha256 cellar: :any_skip_relocation, catalina:     "f0b69b617d5a983452c62ad06b316a3faf7ae088528afc492a660d370c120e2f"
    sha256 cellar: :any_skip_relocation, mojave:       "c9b88175b71d839d1afe3d4a3407f982f14f31194065f87bbaff8dbc33198e0b"
    sha256 cellar: :any_skip_relocation, x86_64_linux: "45f6e53d98fd499d0b2053c2b339ff23bb308e52bc2ba1430786ee37944a5fad"
  end

  # https://github.com/voldemort/voldemort/issues/500#issuecomment-931424229
  deprecate! date: "2022-09-17", because: :unmaintained

  depends_on "gradle" => :build
  depends_on arch: :x86_64 # openjdk@8 is not supported on ARM
  depends_on "openjdk@8"

  def install
    system "./gradlew", "build", "-x", "test"
    libexec.install %w[lib dist contrib]
    bin.install Dir["bin/*{.sh,.py}"]
    libexec.install "bin"
    pkgshare.install "config" => "config-examples"
    (etc/"voldemort").mkpath

    env = Language::Java.overridable_java_home_env("1.8")
    env["PATH"] = "$JAVA_HOME/bin:$PATH"
    env["VOLDEMORT_HOME"] = libexec
    env["VOLDEMORT_CONFIG_DIR"] = etc/"voldemort"
    bin.env_script_all_files(libexec/"bin", env)
  end

  test do
    system bin/"vadmin.sh"
  end
end
{'fraction_non_alphanumeric': 0.12284602556976097, 'fraction_numerical': 0.1575875486381323, 'mean_word_length': 4.842532467532467, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '1028699', 'n_tokens_mistral': 1848, 'n_tokens_neox': 1535, 'n_words': 213}