<commit_before>require 'formula'

class Nailgun <Formula
  url 'http://downloads.sourceforge.net/project/nailgun/nailgun/0.7.1/nailgun-src-0.7.1.zip'
  homepage 'http://martiansoftware.com/nailgun/index.html'
  md5 '79365e339275d774b7c5c8b17b7ece40'

  def install
    system "make"
    bin.install 'ng'
    prefix.install 'nailgun-0.7.1.jar'
  end
end<commit_msg>Add script to launch a `nailgun` server.<commit_after>require 'formula'

class Nailgun <Formula
  url 'http://downloads.sourceforge.net/project/nailgun/nailgun/0.7.1/nailgun-src-0.7.1.zip'
  homepage 'http://martiansoftware.com/nailgun/index.html'
  md5 '79365e339275d774b7c5c8b17b7ece40'

  def script
    <<-EOS
#!/bin/bash
exec java -server -jar "#{prefix}/nailgun-0.7.1.jar"
    EOS
  end

  def install
    system "make"
    (bin+'ng-server').write script
    bin.install 'ng'
    prefix.install 'nailgun-0.7.1.jar'
  end
end
{'fraction_non_alphanumeric': 0.13982102908277405, 'fraction_numerical': 0.07494407158836688, 'mean_word_length': 3.61340206185567, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3680396', 'n_tokens_mistral': 395, 'n_tokens_neox': 362, 'n_words': 60}