<commit_before>require 'formula'

class Groovyserv < Formula
  homepage 'http://kobo.github.com/groovyserv/'
  url 'https://github.com/downloads/kobo/groovyserv/groovyserv-0.9-src.zip'
  sha1 '54464608f90a381b44cf7959136e1b1f31a3919c'
  head 'https://github.com/kobo/groovyserv.git', :using => :git

  depends_on 'gradle' => :build
  depends_on 'groovy'

  def install
    system 'gradle clean executables'

    # Install executables in libexec to avoid conflicts
    Dir::chdir Dir['build/executables/'].first do
      libexec.install %w{bin lib}
    end
    prefix.install %w{LICENSE.txt README.txt NOTICE.txt}

    # Remove windows files
    rm_f Dir["#{libexec}/bin/*.bat"]

    # Symlink binaries
    bin.mkpath
    Dir["#{libexec}/bin/*"].each do |f|
      ln_s f, bin + File.basename(f)
    end
  end
end<commit_msg>groovyserv: use install_symlink<commit_after>require 'formula'

class Groovyserv < Formula
  homepage 'http://kobo.github.com/groovyserv/'
  url 'https://github.com/downloads/kobo/groovyserv/groovyserv-0.9-src.zip'
  sha1 '54464608f90a381b44cf7959136e1b1f31a3919c'
  head 'https://github.com/kobo/groovyserv.git', :using => :git

  depends_on 'gradle' => :build
  depends_on 'groovy'

  def install
    system 'gradle clean executables'

    prefix.install %w{LICENSE.txt README.txt NOTICE.txt}

    # Install executables in libexec to avoid conflicts
    libexec.install Dir["build/executables/{bin,lib}"]

    # Remove windows files
    rm_f Dir["#{libexec}/bin/*.bat"]

    # Symlink binaries
    bin.install_symlink Dir["#{libexec}/bin/*"]
  end
end
{'fraction_non_alphanumeric': 0.12944162436548223, 'fraction_numerical': 0.04187817258883249, 'mean_word_length': 3.7215568862275448, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '334457', 'n_tokens_mistral': 627, 'n_tokens_neox': 576, 'n_words': 113}