<commit_before>require 'formula'

class Boost < Formula
  homepage 'http://www.boost.org'
  url 'http://downloads.sourceforge.net/project/boost/boost/1.48.0/boost_1_48_0.tar.bz2'
  md5 'd1e9a7a7f532bb031a3c175d86688d95'
  head 'http://svn.boost.org/svn/boost/trunk', :using => :svn

  # Bottle built on 10.7.2 using XCode 4.2
  bottle 'https://downloads.sourceforge.net/project/machomebrew/Bottles/boost-1.48.0-bottle.tar.gz'
  bottle_sha1 'c7871ddd020a24e3b0cfd3c9a352a1210b68b372'

  def patches
    # https://svn.boost.org/trac/boost/ticket/6131
    #
    # #define foreach BOOST_FOREACH causes weird compile error in certain
    # circumstances with boost 1.48
    #
    # #define foreach BOOST_FOREACH causes compile error "'boost::BOOST_FOREACH'
    # has not been declared" on its line if it appears after #include
    # <boost/foreach.hpp> and before certain other boost headers.
    DATA
  end<commit_msg>boost: don't apply patch to HEAD<commit_after>require 'formula'

class Boost < Formula
  homepage 'http://www.boost.org'
  url 'http://downloads.sourceforge.net/project/boost/boost/1.48.0/boost_1_48_0.tar.bz2'
  md5 'd1e9a7a7f532bb031a3c175d86688d95'
  head 'http://svn.boost.org/svn/boost/trunk', :using => :svn

  # Bottle built on 10.7.2 using XCode 4.2
  bottle 'https://downloads.sourceforge.net/project/machomebrew/Bottles/boost-1.48.0-bottle.tar.gz'
  bottle_sha1 'c7871ddd020a24e3b0cfd3c9a352a1210b68b372'

  def patches
    # https://svn.boost.org/trac/boost/ticket/6131
    #
    # #define foreach BOOST_FOREACH causes weird compile error in certain
    # circumstances with boost 1.48
    #
    # #define foreach BOOST_FOREACH causes compile error "'boost::BOOST_FOREACH'
    # has not been declared" on its line if it appears after #include
    # <boost/foreach.hpp> and before certain other boost headers.
    DATA unless ARGV.build_head?
  end
{'fraction_non_alphanumeric': 0.11010154997327633, 'fraction_numerical': 0.07910208444681988, 'mean_word_length': 3.8123393316195373, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6055820', 'n_tokens_mistral': 775, 'n_tokens_neox': 691, 'n_words': 146}