<commit_before>require 'formula'

class MitScheme < Formula
  homepage 'http://www.gnu.org/software/mit-scheme/'
  url 'http://ftpmirror.gnu.org/mit-scheme/stable.pkg/9.1.1/mit-scheme-c-9.1.1.tar.gz'
  mirror 'http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.1.1/mit-scheme-c-9.1.1.tar.gz'
  sha1 '8f175a40061bdfc0248535e198cc7f5b5a0dce32'

  conflicts_with 'tinyscheme', :because => 'both install a `scheme` binary'

  depends_on :x11 => :optional

  def install
    # The build breaks __HORRIBLY__ with parallel make -- one target will erase something
    # before another target gets it, so it's easier to change the environment than to
    # change_make_var, because there are Makefiles littered everywhere
    ENV.j1

    # Fix hard-coded locations of MACOSX_SYSROOT.
    ['src/lib/include/configure', 'src/configure'].each do |configure|
      inreplace configure, 'MACOSX_SYSROOT=/Developer/SDKs/${SDK}.sdk',
                           "MACOSX_SYSROOT=/#{MacOS.sdk_path}"
    end

    # Liarc builds must launch within the src dir, not using the top-level Makefile
    cd "src"

    # Take care of some hard-coded paths<commit_msg>mit-scheme: non-optional X11 dep<commit_after>require 'formula'

class MitScheme < Formula
  homepage 'http://www.gnu.org/software/mit-scheme/'
  url 'http://ftpmirror.gnu.org/mit-scheme/stable.pkg/9.1.1/mit-scheme-c-9.1.1.tar.gz'
  mirror 'http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.1.1/mit-scheme-c-9.1.1.tar.gz'
  sha1 '8f175a40061bdfc0248535e198cc7f5b5a0dce32'

  conflicts_with 'tinyscheme', :because => 'both install a `scheme` binary'

  depends_on :x11

  def install
    # The build breaks __HORRIBLY__ with parallel make -- one target will erase something
    # before another target gets it, so it's easier to change the environment than to
    # change_make_var, because there are Makefiles littered everywhere
    ENV.j1

    # Fix hard-coded locations of MACOSX_SYSROOT.
    ['src/lib/include/configure', 'src/configure'].each do |configure|
      inreplace configure, 'MACOSX_SYSROOT=/Developer/SDKs/${SDK}.sdk',
                           "MACOSX_SYSROOT=/#{MacOS.sdk_path}"
    end

    # Liarc builds must launch within the src dir, not using the top-level Makefile
    cd "src"

    # Take care of some hard-coded paths
{'fraction_non_alphanumeric': 0.11501316944688324, 'fraction_numerical': 0.03687445127304653, 'mean_word_length': 3.3, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, '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': '1854460', 'n_tokens_mistral': 836, 'n_tokens_neox': 776, 'n_words': 191}