<commit_before>class Bats < Formula
  desc "TAP-compliant test framework for Bash scripts"
  homepage "https://github.com/sstephenson/bats"
  url "https://github.com/sstephenson/bats/archive/v0.4.0.tar.gz"
  sha256 "480d8d64f1681eee78d1002527f3f06e1ac01e173b761bc73d0cf33f4dc1d8d7"
  head "https://github.com/sstephenson/bats.git"

  def install
    system "./install.sh", prefix
  end

  test do
    (testpath/"testing.sh").write <<-EOS.undent
    #!/usr/bin/env bats
      @test "addition using bc" {
        result="$(echo 2+2 | bc)"
        [ "$result" -eq 4 ]
      }
    EOS

    chmod 0755, testpath/"testing.sh"
    assert_match "addition", shell_output("./testing.sh")
  end
end
<commit_msg>bats: bottle unneeded<commit_after>class Bats < Formula
  desc "TAP-compliant test framework for Bash scripts"
  homepage "https://github.com/sstephenson/bats"
  url "https://github.com/sstephenson/bats/archive/v0.4.0.tar.gz"
  sha256 "480d8d64f1681eee78d1002527f3f06e1ac01e173b761bc73d0cf33f4dc1d8d7"
  head "https://github.com/sstephenson/bats.git"

  bottle :unneeded

  def install
    system "./install.sh", prefix
  end

  test do
    (testpath/"testing.sh").write <<-EOS.undent
    #!/usr/bin/env bats
      @test "addition using bc" {
        result="$(echo 2+2 | bc)"
        [ "$result" -eq 4 ]
      }
    EOS

    chmod 0755, testpath/"testing.sh"
    assert_match "addition", shell_output("./testing.sh")
  end
end

{'fraction_non_alphanumeric': 0.13585434173669467, 'fraction_numerical': 0.0742296918767507, 'mean_word_length': 3.1540697674418605, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '2304820', 'n_tokens_mistral': 617, 'n_tokens_neox': 549, 'n_words': 102}