<commit_before>require 'formula'

class Newlisp < Formula
  url 'http://www.newlisp.org/downloads/newlisp-10.3.2.tgz'
  homepage 'http://www.newlisp.org/'
  md5 '91aede51dc31fc1997d6c52adac3568a'

  depends_on 'readline'

  def install
    # Required to use our configuration
    ENV.append_to_cflags "-DNEWCONFIG -c"

    system "./configure-alt", "--prefix=#{prefix}", "--mandir=#{man}"
    system "make"

    # Many .lsp files assume the interpreter will be installed in /usr/bin
    Dir.glob("**/*.lsp") do |f|
      inreplace f do |s|
        s.gsub! "!#/usr/bin/newlisp", "!#/usr/bin/env newlisp"
        s.gsub! "/usr/bin/newlisp", "#{bin}/newlisp"
      end
    end

    system "make check"
    system "make install"
  end

  # Use the IDE to test a complete installation
  def test
    system "newlisp-edit"
  end
end
<commit_msg>newLisp: Upgrade to 10.3.3<commit_after>require 'formula'

class Newlisp < Formula
  url 'http://www.newlisp.org/downloads/newlisp-10.3.3.tgz'
  homepage 'http://www.newlisp.org/'
  md5 '9f997690d09b96dca9c3843784b13702'

  depends_on 'readline'

  def install
    # Required to use our configuration
    ENV.append_to_cflags "-DNEWCONFIG -c"

    system "./configure-alt", "--prefix=#{prefix}", "--mandir=#{man}"
    system "make"

    # Many .lsp files assume the interpreter will be installed in /usr/bin
    Dir.glob("**/*.lsp") do |f|
      inreplace f do |s|
        s.gsub! "!#/usr/bin/newlisp", "!#/usr/bin/env newlisp"
        s.gsub! "/usr/bin/newlisp", "#{bin}/newlisp"
      end
    end

    system "make check"
    system "make install"
  end

  # Use the IDE to test a complete installation
  def test
    system "newlisp-edit"
  end
end

{'fraction_non_alphanumeric': 0.14251921939680662, 'fraction_numerical': 0.03252513305736251, 'mean_word_length': 2.828054298642534, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4113696', 'n_tokens_mistral': 673, 'n_tokens_neox': 626, 'n_words': 157}