<commit_before>require 'formula'

class Zsh <Formula
  @url='http://downloads.sourceforge.net/project/zsh/zsh-dev/4.3.10/zsh-4.3.10.tar.gz'
  @homepage='http://www.zsh.org/'
  @md5='031efc8c8efb9778ffa8afbcd75f0152'

  def install
    system "./configure", "--disable-debug",
                          "--prefix=#{prefix}",
                          "--disable-dependency-tracking",
                          # don't version stuff in Homebrew, we already do that!
                          "--enable-fndir=#{share}/zsh/functions",
                          "--enable-scriptdir=#{share}/zsh/scripts"

    # Again, don't version installation directories
    inreplace ["Makefile", "Src/Makefile"],
      "$(libdir)/$(tzsh)/$(VERSION)", "$(libdir)"

    system "make install"
  end
  
  def skip_clean? path
    true
  end
end<commit_msg>Add optional gdbm dependency to zsh.<commit_after>require 'formula'

class Zsh <Formula
  @url='http://downloads.sourceforge.net/project/zsh/zsh-dev/4.3.10/zsh-4.3.10.tar.gz'
  @homepage='http://www.zsh.org/'
  @md5='031efc8c8efb9778ffa8afbcd75f0152'

  depends_on 'gdbm' => :optional

  def install
    system "./configure", "--disable-debug",
                          "--prefix=#{prefix}",
                          "--disable-dependency-tracking",
                          # don't version stuff in Homebrew, we already do that!
                          "--enable-fndir=#{share}/zsh/functions",
                          "--enable-scriptdir=#{share}/zsh/scripts"

    # Again, don't version installation directories
    inreplace ["Makefile", "Src/Makefile"],
      "$(libdir)/$(tzsh)/$(VERSION)", "$(libdir)"

    system "make install"
  end
  
  def skip_clean? path
    true
  end
end
{'fraction_non_alphanumeric': 0.15402431962941518, 'fraction_numerical': 0.02895193977996526, 'mean_word_length': 2.11913357400722, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4758934', 'n_tokens_mistral': 587, 'n_tokens_neox': 546, 'n_words': 99}