<commit_before>require "formula"

class Mesos < Formula
  homepage "http://mesos.apache.org"
  url "http://mirror.cogentco.com/pub/apache/mesos/0.19.1/mesos-0.19.1.tar.gz"
  sha1 "3f219313324f86e11df25688ccb86c2814ab29c5"

  depends_on :java => "1.7"
  depends_on :macos => :mountain_lion

  depends_on "maven" => :build

  def install
    system "./configure", "--disable-debug",
                           "--disable-dependency-tracking",
                           "--disable-silent-rules",
                           "--prefix=#{prefix}"

    system "make"
    system "make", "install"
  end

  test do
    require "timeout"

    master = fork do
      exec "#{sbin}/mesos-master", "--ip=127.0.0.1",
                                   "--registry=in_memory"<commit_msg>mesos: add 0.19.1 bottle.<commit_after>require "formula"

class Mesos < Formula
  homepage "http://mesos.apache.org"
  url "http://mirror.cogentco.com/pub/apache/mesos/0.19.1/mesos-0.19.1.tar.gz"
  sha1 "3f219313324f86e11df25688ccb86c2814ab29c5"

  bottle do
    sha1 "2758230a98122a25764c7fc4358f45b16c013464" => :mavericks
    sha1 "96d0ab4739014e7c51796209a5ce911142f9ac9e" => :mountain_lion
  end

  depends_on :java => "1.7"
  depends_on :macos => :mountain_lion

  depends_on "maven" => :build

  def install
    system "./configure", "--disable-debug",
                           "--disable-dependency-tracking",
                           "--disable-silent-rules",
                           "--prefix=#{prefix}"

    system "make"
    system "make", "install"
  end

  test do
    require "timeout"

    master = fork do
      exec "#{sbin}/mesos-master", "--ip=127.0.0.1",
                                   "--registry=in_memory"
{'fraction_non_alphanumeric': 0.14127262113251604, 'fraction_numerical': 0.09106830122591944, 'mean_word_length': 2.0994575045207955, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4477462', 'n_tokens_mistral': 690, 'n_tokens_neox': 602, 'n_words': 101}