<commit_before>require 'formula'

class Ec2ApiTools <Formula
  @homepage='http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351'
  @url='http://ec2-downloads.s3.amazonaws.com/ec2-api-tools-1.3-46266.zip'
  @md5='075b511e07575927c39ca6478b283597'
  
  def patches
    # (From http://gist.github.com/200283) Gets rid of the
    # “[Deprecated] Xalan: org.apache.xml.res.XMLErrorResources_en_US”
    # messages that the tools spew on 1.3-41620 under Snow Leopard
    DATA
  end
  
  def install
    # Nothing to be done but copying things into place
    FileUtils.rm Dir['bin/*\.cmd']
    
    (prefix+bin).install Dir['bin/ec2-*']
    prefix.install 'lib'
  end
  
  def caveats
    return <<-EOS
Before you can utilize the EC2 API tools, you must export several environment<commit_msg>Remove non-ASCII characters.<commit_after>require 'formula'

class Ec2ApiTools <Formula
  @homepage='http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351'
  @url='http://ec2-downloads.s3.amazonaws.com/ec2-api-tools-1.3-46266.zip'
  @md5='075b511e07575927c39ca6478b283597'
  
  def patches
    # (From http://gist.github.com/200283) Gets rid of the
    # "[Deprecated] Xalan: org.apache.xml.res.XMLErrorResources_en_US"
    # messages that the tools spew on 1.3-41620 under Snow Leopard
    DATA
  end
  
  def install
    # Nothing to be done but copying things into place
    FileUtils.rm Dir['bin/*\.cmd']
    
    (prefix+bin).install Dir['bin/ec2-*']
    prefix.install 'lib'
  end
  
  def caveats
    return <<-EOS
Before you can utilize the EC2 API tools, you must export several environment
{'fraction_non_alphanumeric': 0.1147439851943245, 'fraction_numerical': 0.06909315237507711, 'mean_word_length': 3.5434173669467786, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7368661', 'n_tokens_mistral': 635, 'n_tokens_neox': 563, 'n_words': 133}