<commit_before>class LogstashAT56 < Formula
  desc "Tool for managing events and logs"
  homepage "https://www.elastic.co/products/logstash"
  url "https://artifacts.elastic.co/downloads/logstash/logstash-5.6.4.tar.gz"
  sha256 "62067531ae5ea4878f84b68625cefcbe427c88d4975702d61cb3eecd80687b09"
  head "https://github.com/elastic/logstash.git"

  bottle :unneeded

  keg_only :versioned_formula

  depends_on :java => "1.8"

  def install
    if build.head?
      # Build the package from source
      system "rake", "artifact:tar"
      # Extract the package to the current directory
      mkdir "tar"
      system "tar", "--strip-components=1", "-xf", Dir["build/logstash-*.tar.gz"].first, "-C", "tar"
      cd "tar"
    end
<commit_msg>logstash@5.6 5.6.5 (#21402)<commit_after>class LogstashAT56 < Formula
  desc "Tool for managing events and logs"
  homepage "https://www.elastic.co/products/logstash"
  url "https://artifacts.elastic.co/downloads/logstash/logstash-5.6.5.tar.gz"
  sha256 "d307e8227d5a8eb21575f2c541d0b6e0f641fccde073629aba82f5fb3d5c62a2"
  head "https://github.com/elastic/logstash.git"

  bottle :unneeded

  keg_only :versioned_formula

  depends_on :java => "1.8"

  def install
    if build.head?
      # Build the package from source
      system "rake", "artifact:tar"
      # Extract the package to the current directory
      mkdir "tar"
      system "tar", "--strip-components=1", "-xf", Dir["build/logstash-*.tar.gz"].first, "-C", "tar"
      cd "tar"
    end

{'fraction_non_alphanumeric': 0.1306970509383378, 'fraction_numerical': 0.07506702412868632, 'mean_word_length': 3.5242424242424244, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '80795', 'n_tokens_mistral': 620, 'n_tokens_neox': 552, 'n_words': 114}