<commit_before>class Questdb < Formula
  desc "Time Series Database"
  homepage "https://questdb.io"
  url "https://github.com/questdb/questdb/releases/download/6.4/questdb-6.4-no-jre-bin.tar.gz"
  sha256 "a011d9f54dff6dd92377c15d85f4f0d33bbc63eefa15b56828ebabbcf474fe58"
  license "Apache-2.0"

  bottle do
    sha256 cellar: :any_skip_relocation, all: "d489fb141edac43931fc5b4426d56405c384091809719a6cc8977b6edaf5c129"
  end

  depends_on "openjdk@11"

  def install
    rm_rf "questdb.exe"
    libexec.install Dir["*"]
    (bin/"questdb").write_env_script libexec/"questdb.sh", Language::Java.overridable_java_home_env("11")
    inreplace libexec/"questdb.sh", "/usr/local/var/questdb", var/"questdb"
  end

  service do
    run [opt_bin/"questdb", "start", "-d", var/"questdb", "-n", "-f"]
    keep_alive successful_exit: false
    error_log_path var/"log/questdb.log"<commit_msg>questdb 6.4.1<commit_after>class Questdb < Formula
  desc "Time Series Database"
  homepage "https://questdb.io"
  url "https://github.com/questdb/questdb/releases/download/6.4.1/questdb-6.4.1-no-jre-bin.tar.gz"
  sha256 "dd99c50a0465642b9a9d2bc2955b8d0c75d915d0628b8779f380bbe209c593ec"
  license "Apache-2.0"

  bottle do
    sha256 cellar: :any_skip_relocation, all: "d489fb141edac43931fc5b4426d56405c384091809719a6cc8977b6edaf5c129"
  end

  depends_on "openjdk@11"

  def install
    rm_rf "questdb.exe"
    libexec.install Dir["*"]
    (bin/"questdb").write_env_script libexec/"questdb.sh", Language::Java.overridable_java_home_env("11")
    inreplace libexec/"questdb.sh", "/usr/local/var/questdb", var/"questdb"
  end

  service do
    run [opt_bin/"questdb", "start", "-d", var/"questdb", "-n", "-f"]
    keep_alive successful_exit: false
    error_log_path var/"log/questdb.log"
{'fraction_non_alphanumeric': 0.136568848758465, 'fraction_numerical': 0.11230248306997742, 'mean_word_length': 4.610759493670886, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '4467076', 'n_tokens_mistral': 829, 'n_tokens_neox': 721, 'n_words': 106}