<commit_before>require "formula"

class RRequirement < Requirement
  fatal true

  satisfy { which('r') }

  def message; <<-EOS.undent
    R not found. The R integration module requires R.
    Do one of the following:
    - install R
    -- run brew install homebrew/science/r or brew install Caskroom/cask/r
    - remove the --with-r option
    EOS
  end
end

class Monetdb < Formula
  homepage "https://www.monetdb.org/"
  url "https://dev.monetdb.org/downloads/sources/Oct2014-SP1/MonetDB-11.19.7.zip"
  sha1 "af542dc85a8474eb4bcf32565eccae3ea5d22768"

  bottle do
    sha1 "e5802401b81d035fe81a9a708dd647128a0a4302" => :yosemite
    sha1 "ecefa004cd231e9ad1eef530ae9194f5e3db8c13" => :mavericks
    sha1 "484c94edf77b0acb72aa0e0cb7a8017c149be95c" => :mountain_lion
  end

  head do
    url "http://dev.monetdb.org/hg/MonetDB", :using => :hg

    depends_on "libtool" => :build
    depends_on "gettext" => :build
    depends_on "automake" => :build
    depends_on "autoconf" => :build
  end

  option "with-java", 'Build the JDBC dirver'
  option "with-r", 'Build the R integration module'<commit_msg>monetdb: update 11.19.7 bottle.<commit_after>require "formula"

class RRequirement < Requirement
  fatal true

  satisfy { which('r') }

  def message; <<-EOS.undent
    R not found. The R integration module requires R.
    Do one of the following:
    - install R
    -- run brew install homebrew/science/r or brew install Caskroom/cask/r
    - remove the --with-r option
    EOS
  end
end

class Monetdb < Formula
  homepage "https://www.monetdb.org/"
  url "https://dev.monetdb.org/downloads/sources/Oct2014-SP1/MonetDB-11.19.7.zip"
  sha1 "af542dc85a8474eb4bcf32565eccae3ea5d22768"

  bottle do
    sha1 "edb53b064fffddefe80a0447b00f521e4cac7a40" => :yosemite
    sha1 "d00ba596fa14345d4cf114bab08b42e481ab65ce" => :mavericks
    sha1 "b98435f66be2aa6dc04de3d373b2ce1e2d3d1f0d" => :mountain_lion
  end

  head do
    url "http://dev.monetdb.org/hg/MonetDB", :using => :hg

    depends_on "libtool" => :build
    depends_on "gettext" => :build
    depends_on "automake" => :build
    depends_on "autoconf" => :build
  end

  option "with-java", 'Build the JDBC dirver'
  option "with-r", 'Build the R integration module'
{'fraction_non_alphanumeric': 0.10861759425493717, 'fraction_numerical': 0.09515260323159784, 'mean_word_length': 3.558282208588957, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 19, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, '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': '4073966', 'n_tokens_mistral': 989, 'n_tokens_neox': 881, 'n_words': 194}