<commit_before>require 'formula'
require 'hardware'

class Sbcl <Formula
  if snow_leopard_64?
    url 'http://downloads.sourceforge.net/project/sbcl/sbcl/1.0.29/sbcl-1.0.29-x86_64-darwin-binary-r2.tar.bz2'
    md5 '47c99c60ec44e57070807c0890ba1c90'
  else
    url 'http://downloads.sourceforge.net/project/sbcl/sbcl/1.0.29/sbcl-1.0.29-x86-darwin-binary-r2.tar.bz2'
    md5 '6e6b027a5fd05ef0c8faee30d89ffe54'
  end
  version '1.0.29'
  homepage 'http://www.sbcl.org/'

  skip_clean 'bin'
  skip_clean 'lib'

  def install
    ENV['INSTALL_ROOT'] = prefix
    system "sh install.sh"
  end
end<commit_msg>Bootstrap SBCL 1.0.44 from the binaries on their download site.<commit_after>require 'formula'
require 'hardware'

class SbclBootstrapBinaries <Formula
  url 'http://downloads.sourceforge.net/project/sbcl/sbcl/1.0.29/sbcl-1.0.29-x86-darwin-binary-r2.tar.bz2'
  md5 '6e6b027a5fd05ef0c8faee30d89ffe54'
  version "1.0.29"
end


class Sbcl <Formula
  homepage 'http://www.sbcl.org/'
  head 'git://sbcl.boinkor.net/sbcl.git'

  url 'http://downloads.sourceforge.net/project/sbcl/sbcl/1.0.44/sbcl-1.0.44-source.tar.bz2'
  md5 'f34a3995db6e12439996096fd437f878'
  version '1.0.44'

  skip_clean 'bin'
  skip_clean 'lib'

  def install
    build_directory = Dir.pwd
    SbclBootstrapBinaries.new.brew {
      # We only need the binaries for bootstrapping, so don't install
      # anything:

      command = Dir.pwd + "/src/runtime/sbcl"
      core = Dir.pwd + "/output/sbcl.core"
      xc_cmdline = "#{command} --core #{core} --disable-debugger --no-userinit --no-sysinit"

      Dir.chdir(build_directory)
      system "./make.sh --prefix='#{prefix}' --xc-host='#{xc_cmdline}'"
    }
    ENV['INSTALL_ROOT'] = prefix
    system "sh install.sh"
  end
end
{'fraction_non_alphanumeric': 0.14342857142857143, 'fraction_numerical': 0.08457142857142858, 'mean_word_length': 3.355721393034826, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1168372', 'n_tokens_mistral': 806, 'n_tokens_neox': 722, 'n_words': 116}