<commit_before>require 'formula'

def valgrind?
  ARGV.include? '--with-valgrind'
end

class RBashCompletion < Formula
  # This is the same script that Debian packages use.
  url 'http://rcompletion.googlecode.com/svn-history/r28/trunk/bash_completion/R', :using => :curl
  version 'r28'
  md5 'd5493f7a8422147c2f5c63c6a18ebda4'
end

class R < Formula
  homepage 'http://www.r-project.org'
  url 'http://cran.r-project.org/src/base/R-2/R-2.14.2.tar.gz'
  md5 'f5c8657543a293a80d025be58cf1ef71'

  depends_on 'readline'
  depends_on 'libtiff'
  depends_on 'jpeg'

  depends_on 'valgrind' if valgrind?

  def options
    [
      ['--with-valgrind', 'Compile an unoptimized build with support for the Valgrind debugger.']
    ]
  end

  def install<commit_msg>R: Update to 2.15.0<commit_after>require 'formula'

def valgrind?
  ARGV.include? '--with-valgrind'
end

class RBashCompletion < Formula
  # This is the same script that Debian packages use.
  url 'http://rcompletion.googlecode.com/svn-history/r28/trunk/bash_completion/R', :using => :curl
  version 'r28'
  md5 'd5493f7a8422147c2f5c63c6a18ebda4'
end

class R < Formula
  homepage 'http://www.r-project.org'
  url 'http://cran.r-project.org/src/base/R-2/R-2.15.0.tar.gz'
  md5 '905f638990492618559202cc1e48a867'

  depends_on 'readline'
  depends_on 'libtiff'
  depends_on 'jpeg'

  depends_on 'valgrind' if valgrind?

  def options
    [
      ['--with-valgrind', 'Compile an unoptimized build with support for the Valgrind debugger.']
    ]
  end

  def install
{'fraction_non_alphanumeric': 0.11907894736842105, 'fraction_numerical': 0.075, 'mean_word_length': 3.7236024844720497, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7618013', 'n_tokens_mistral': 679, 'n_tokens_neox': 610, 'n_words': 128}