<commit_before>require 'formula'

class UniversalPython < Requirement
  satisfy(:build_env => false) { archs_for_command("python").universal? }

  def message; <<-EOS.undent
    A universal build was requested, but Python is not a universal build

    Boost compiles against the Python it finds in the path; if this Python
    is not a universal build then linking will likely fail.
    EOS
  end
end

class Boost < Formula
  homepage 'http://www.boost.org'
  url 'https://downloads.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.bz2'
  sha1 'cef9a0cc7084b1d639e06cd3bc34e4251524c840'

  head 'http://svn.boost.org/svn/boost/trunk'

  bottle do
    cellar :any
    revision 2
    sha1 "e18905c7fc76c1f1a8422071ae887eca92c0e8df" => :mavericks
    sha1 "a6dc7ba2be38e08b3648bfd79ec1b635c606654c" => :mountain_lion
    sha1 "edbad0334143511e40a044191fa5711be9ce6838" => :lion
  end

  env :userpaths

  option :universal
  option 'with-icu', 'Build regexp engine with icu support'<commit_msg>boost: bump revision for important patches.<commit_after>require 'formula'

class UniversalPython < Requirement
  satisfy(:build_env => false) { archs_for_command("python").universal? }

  def message; <<-EOS.undent
    A universal build was requested, but Python is not a universal build

    Boost compiles against the Python it finds in the path; if this Python
    is not a universal build then linking will likely fail.
    EOS
  end
end

class Boost < Formula
  homepage 'http://www.boost.org'
  url 'https://downloads.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.bz2'
  sha1 'cef9a0cc7084b1d639e06cd3bc34e4251524c840'
  revision 1

  head 'http://svn.boost.org/svn/boost/trunk'

  bottle do
    cellar :any
    revision 2
    sha1 "e18905c7fc76c1f1a8422071ae887eca92c0e8df" => :mavericks
    sha1 "a6dc7ba2be38e08b3648bfd79ec1b635c606654c" => :mountain_lion
    sha1 "edbad0334143511e40a044191fa5711be9ce6838" => :lion
  end

  env :userpaths

  option :universal
  option 'with-icu', 'Build regexp engine with icu support'
{'fraction_non_alphanumeric': 0.08597948216902784, 'fraction_numerical': 0.11089399120664387, 'mean_word_length': 4.184810126582279, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '5685278', 'n_tokens_mistral': 878, 'n_tokens_neox': 751, 'n_words': 182}