<commit_before>class Lorem < Formula
  desc "Lorem Ipsum generator"
  homepage "https://code.google.com/p/lorem/"
  url "https://lorem.googlecode.com/svn-history/r4/trunk/lorem", :using => :curl
  version "0.6.1"
  sha256 "fa2db7c3db356d76ed6dd5244a76d9b6e0d261d89d5efa646c8fe2924be5abcf"

  bottle :unneeded

  def install
    inreplace "lorem", "!/usr/bin/python", "!/usr/bin/env python"
    bin.install "lorem"
  end

  test do
    assert_equal "lorem ipsum", shell_output("#{bin}/lorem -n 2").strip
  end
end<commit_msg>lorem 0.7.4<commit_after>class Lorem < Formula
  desc "Lorem Ipsum generator"
  homepage "https://github.com/per9000/lorem"
  url "https://github.com/per9000/lorem/archive/6da0a5ac4dcce0e2463a0d820baafde72210fbff.tar.gz"
  version "0.7.4"
  sha256 "bb103552d6532e4e0276a936b9cec02ceffd5dce56325f2bf53fed8203a26ae1"
  head "https://github.com/per9000/lorem.git"

  stable do
    # Patch to fix broken -q option in latest numbered release
    patch do
      url "https://github.com/per9000/lorem/commit/1e3167d15b1337665a236a1e65a582ad2e3dd994.diff"
      sha256 "b0675f2d6d939ab2adf0334a2ec20684b66b415e7b231e13cdbfc2608501283f"
    end
  end

  bottle :unneeded

  def install
    inreplace "lorem", "!/usr/bin/python", "!/usr/bin/env python"
    bin.install "lorem"
  end

  test do
    assert_equal "lorem ipsum", shell_output("#{bin}/lorem -n 2").strip.downcase
  end
end
{'fraction_non_alphanumeric': 0.11731044349070101, 'fraction_numerical': 0.13876967095851217, 'mean_word_length': 4.087272727272727, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, 'https://': 6, 'lorem ipsum': 2, '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': '5361097', 'n_tokens_mistral': 690, 'n_tokens_neox': 591, 'n_words': 98}