<commit_before>require 'formula'

class Flume < Formula
  url 'http://archive.cloudera.com/cdh/3/flume-0.9.4-cdh3u2.tar.gz'
  homepage 'https://github.com/cloudera/flume'
  md5 '6db17876879f419f769ec7bef4a1fad7'
  version "0.9.4-cdh3u2"

  def flume_script
      <<-EOS.undent
      #!/bin/bash
      export FLUME_CONF_DIR=#{libexec}/conf
      exec #{libexec}/bin/flume $@
      EOS
  end<commit_msg>flume: fix shell quoting and ENV variable<commit_after>require 'formula'

class Flume < Formula
  url 'http://archive.cloudera.com/cdh/3/flume-0.9.4-cdh3u2.tar.gz'
  homepage 'https://github.com/cloudera/flume'
  md5 '6db17876879f419f769ec7bef4a1fad7'
  version "0.9.4-cdh3u2"

  def flume_script
      <<-EOS.undent
      #!/bin/bash
      export FLUME_CONF_DIR=${FLUME_CONF_DIR-#{libexec}/conf}
      exec #{libexec}/bin/flume "$@"
      EOS
  end
{'fraction_non_alphanumeric': 0.1423529411764706, 'fraction_numerical': 0.07294117647058823, 'mean_word_length': 3.255, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3343270', 'n_tokens_mistral': 397, 'n_tokens_neox': 376, 'n_words': 51}