<commit_before>require 'formula'

class ChibiScheme < Formula
  homepage 'http://code.google.com/p/chibi-scheme/'
  url 'http://abrek.synthcode.com/chibi-scheme-0.7.tgz'
  sha1 'e751a1881138ddba7caf170859e30dcfeba1a177'
  head 'https://code.google.com/p/chibi-scheme/', :using => :hg

  # Remove after upstream fixes this issue
  # https://code.google.com/p/chibi-scheme/issues/detail?id=227
  patch :DATA unless build.head?

  def install
    ENV.deparallelize

    # "make" and "make install" must be done separately
    system "make"
    system "make", "install", "PREFIX=#{prefix}"
  end

  test do
    output = `#{bin}/chibi-scheme -mchibi -e "(for-each write '(0 1 2 3 4 5 6 7 8 9))"`
    assert_equal "0123456789", output
    assert_equal 0, $?.exitstatus
  end
end

__END__
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -102,13 +102,13 @@
 libchibi-sexp$(SO): $(SEXP_OBJS)
	$(CC) $(CLIBFLAGS) $(CLINKFLAGS) -o $@ $^ $(XLDFLAGS)

-libchibi-scheme$(SO).$(SOVERSION): $(SEXP_OBJS) $(EVAL_OBJS)
+libchibi-scheme$(SO_VERSIONED_SUFFIX): $(SEXP_OBJS) $(EVAL_OBJS)
	$(CC) $(CLIBFLAGS) $(CLINKFLAGS) $(LIBCHIBI_FLAGS) -o $@ $^ $(XLDFLAGS)<commit_msg>chibi-scheme: add 0.7 bottle.<commit_after>require 'formula'

class ChibiScheme < Formula
  homepage 'http://code.google.com/p/chibi-scheme/'
  url 'http://abrek.synthcode.com/chibi-scheme-0.7.tgz'
  sha1 'e751a1881138ddba7caf170859e30dcfeba1a177'
  head 'https://code.google.com/p/chibi-scheme/', :using => :hg

  bottle do
    sha1 "e5f0e061820123d56736261e3f04907bf5c63ce8" => :mavericks
    sha1 "fd04e7f93c4b5bcc416ace19d80f7766c41a3afe" => :mountain_lion
    sha1 "7111751abca30c0a77c8130bd87f082cea255bdd" => :lion
  end

  # Remove after upstream fixes this issue
  # https://code.google.com/p/chibi-scheme/issues/detail?id=227
  patch :DATA unless build.head?

  def install
    ENV.deparallelize

    # "make" and "make install" must be done separately
    system "make"
    system "make", "install", "PREFIX=#{prefix}"
  end

  test do
    output = `#{bin}/chibi-scheme -mchibi -e "(for-each write '(0 1 2 3 4 5 6 7 8 9))"`
    assert_equal "0123456789", output
    assert_equal 0, $?.exitstatus
  end
end

__END__
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -102,13 +102,13 @@
 libchibi-sexp$(SO): $(SEXP_OBJS)
	$(CC) $(CLIBFLAGS) $(CLINKFLAGS) -o $@ $^ $(XLDFLAGS)

-libchibi-scheme$(SO).$(SOVERSION): $(SEXP_OBJS) $(EVAL_OBJS)
+libchibi-scheme$(SO_VERSIONED_SUFFIX): $(SEXP_OBJS) $(EVAL_OBJS)
	$(CC) $(CLIBFLAGS) $(CLINKFLAGS) $(LIBCHIBI_FLAGS) -o $@ $^ $(XLDFLAGS)
{'fraction_non_alphanumeric': 0.16459143968871595, 'fraction_numerical': 0.077431906614786, 'mean_word_length': 4.152304609218437, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '7462964', 'n_tokens_mistral': 1204, 'n_tokens_neox': 1036, 'n_words': 210}