<commit_before>require 'formula'

class Memcached <Formula
  url "http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz"
  homepage 'http://www.danga.com/memcached/'
  sha1 'c7d6517764b82d23ae2de76b56c2494343c53f02'

  depends_on 'libevent'

  def install
    system "./configure", "--prefix=#{prefix}"
    system "make install"

    (prefix+'com.danga.memcached.plist').write startup_plist
  end<commit_msg>enable SASL support with commandline flag<commit_after>require 'formula'

class Memcached <Formula
  url "http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz"
  homepage 'http://www.danga.com/memcached/'
  sha1 'c7d6517764b82d23ae2de76b56c2494343c53f02'

  depends_on 'libevent'

  def options
    [
      ["--enable-sasl", "Enable SASL support -- disables ASCII protocol!"],
    ]
  end

  def install
    args = ["--prefix=#{prefix}"]
    args << "--enable-sasl" if ARGV.include? "--enable-sasl"

    system "./configure", *args
    system "make install"

    (prefix+'com.danga.memcached.plist').write startup_plist
  end
{'fraction_non_alphanumeric': 0.14122137404580154, 'fraction_numerical': 0.061068702290076333, 'mean_word_length': 3.768181818181818, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1525745', 'n_tokens_mistral': 422, 'n_tokens_neox': 378, 'n_words': 69}