<commit_before>require 'formula'

class Hadoop < Formula
  url 'http://www.carfab.com/apachesoftware/hadoop/core/hadoop-0.20.2/hadoop-0.20.2.tar.gz'
  homepage 'http://hadoop.apache.org/common/'
  md5 '8f40198ed18bef28aeea1401ec536cb9'

  def shim_script target
    <<-EOS.undent
      #!/usr/bin/env bash
      cd #{libexec}/bin
      ./#{target} $*
    EOS
  end

  def install
    rm_f Dir["bin/*.bat"]
    libexec.install %w[bin conf contrib lib webapps *.jar]
    bin.mkpath
    Dir["#{libexec}/bin/*"].each do |b|
      n = Pathname.new(b).basename
      (bin+n).write shim_script(n)<commit_msg>fixed bug in previous commit<commit_after>require 'formula'

class Hadoop < Formula
  url 'http://www.carfab.com/apachesoftware/hadoop/core/hadoop-0.20.2/hadoop-0.20.2.tar.gz'
  homepage 'http://hadoop.apache.org/common/'
  md5 '8f40198ed18bef28aeea1401ec536cb9'

  def shim_script target
    <<-EOS.undent
      #!/usr/bin/env bash
      cd #{libexec}/bin
      ./#{target} $*
    EOS
  end

  def install
    rm_f Dir["bin/*.bat"]
    libexec.install %w[bin conf contrib lib webapps]
    libexec.install Dir['*.jar']
    bin.mkpath
    Dir["#{libexec}/bin/*"].each do |b|
      n = Pathname.new(b).basename
      (bin+n).write shim_script(n)
{'fraction_non_alphanumeric': 0.1567524115755627, 'fraction_numerical': 0.04340836012861737, 'mean_word_length': 2.90282131661442, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5491822', 'n_tokens_mistral': 513, 'n_tokens_neox': 480, 'n_words': 86}