<commit_before>require 'formula'

class Solr < Formula
  homepage 'http://lucene.apache.org/solr/'
  url 'http://www.apache.org/dyn/closer.cgi?path=lucene/solr/3.6.1/apache-solr-3.6.1.tgz'
  sha1 'd9f8a4086fb66e716e526d1a047578efdbdd0ede'

  def script; <<-EOS.undent
    #!/bin/sh
    if [ -z "$1" ]; then<commit_msg>solr devel 4.0.0-BETA<commit_after>require 'formula'

class Solr < Formula
  homepage 'http://lucene.apache.org/solr/'
  url 'http://www.apache.org/dyn/closer.cgi?path=lucene/solr/3.6.1/apache-solr-3.6.1.tgz'
  sha1 'd9f8a4086fb66e716e526d1a047578efdbdd0ede'

  devel do
    url  'http://www.apache.org/dyn/closer.cgi?path=lucene/solr/4.0.0-BETA/apache-solr-4.0.0-BETA.tgz'
    sha1 'b41061400f3c5e0433ae8e01c4a62814be37b712'
    version "4.0.0-BETA"
  end

  def script; <<-EOS.undent
    #!/bin/sh
    if [ -z "$1" ]; then
{'fraction_non_alphanumeric': 0.171021377672209, 'fraction_numerical': 0.11995249406175772, 'mean_word_length': 3.4603174603174605, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, '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': '3674469', 'n_tokens_mistral': 453, 'n_tokens_neox': 403, 'n_words': 48}