<commit_before>require 'formula'

class Node <Formula
  url 'http://nodejs.org/dist/node-v0.1.103.tar.gz'
  head 'git://github.com/ry/node.git'
  homepage 'http://nodejs.org/'
  md5 '378307512e380e279969b0936e5ec5cc'

  # Stripping breaks dynamic loading
  skip_clean :all

  def install
    fails_with_llvm

    inreplace 'wscript' do |s|
      s.gsub! '/usr/local', HOMEBREW_PREFIX
      s.gsub! '/opt/local/lib', '/usr/lib'
    end

    system "./configure", "--prefix=#{prefix}"
    system "make install"
  end
end
<commit_msg>Adding a --debug flag to the Node formula.<commit_after>require 'formula'

class Node <Formula
  url 'http://nodejs.org/dist/node-v0.1.103.tar.gz'
  head 'git://github.com/ry/node.git'
  homepage 'http://nodejs.org/'
  md5 '378307512e380e279969b0936e5ec5cc'

  # Stripping breaks dynamic loading
  skip_clean :all

  def options
    [["--debug", "Build with debugger hooks."]]
  end

  def install
    fails_with_llvm

    inreplace 'wscript' do |s|
      s.gsub! '/usr/local', HOMEBREW_PREFIX
      s.gsub! '/opt/local/lib', '/usr/lib'
    end

    args = ["--prefix=#{prefix}"]
    args << "--debug" if ARGV.include? '--debug'

    system "./configure", *args
    system "make install"
  end
end

{'fraction_non_alphanumeric': 0.15052888527257932, 'fraction_numerical': 0.04882017900732303, 'mean_word_length': 2.967741935483871, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3270993', 'n_tokens_mistral': 502, 'n_tokens_neox': 455, 'n_words': 104}