<commit_before>require 'formula'

class GnuTar < Formula
  url 'http://ftpmirror.gnu.org/tar/tar-1.26.tar.gz'
  mirror 'http://ftp.gnu.org/gnu/tar/tar-1.26.tar.gz'
  homepage 'http://www.gnu.org/software/tar/'
  md5 '00d1e769c6af702c542cca54b728920d'

  def options
    [['--default-names', "Do NOT prepend 'g' to the binary; will override system tar."]]
  end

  def install
    args = [ "--prefix=#{prefix}" , "--mandir=#{man}" ]
    args << "--program-prefix=g" unless ARGV.include? '--default-names'

    system "./configure", *args
    system "make install"
  end
end
<commit_msg>gnu-tar: use options DSL<commit_after>require 'formula'

class GnuTar < Formula
  homepage 'http://www.gnu.org/software/tar/'
  url 'http://ftpmirror.gnu.org/tar/tar-1.26.tar.gz'
  mirror 'http://ftp.gnu.org/gnu/tar/tar-1.26.tar.gz'
  sha1 'ba89cba98c1a6aea3c80cda5ddcd5eceb5adbb9b'

  option 'default-names', "Do not prepend 'g' to the binary"

  def install
    args = ["--prefix=#{prefix}", "--mandir=#{man}"]
    args << "--program-prefix=g" unless build.include? 'default-names'

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

{'fraction_non_alphanumeric': 0.1757469244288225, 'fraction_numerical': 0.0421792618629174, 'mean_word_length': 3.3976833976833976, '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': '6406611', 'n_tokens_mistral': 466, 'n_tokens_neox': 434, 'n_words': 89}