<commit_before>require 'formula'

class Gnupg < Formula
  homepage 'http://www.gnupg.org/'
  url 'ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.17.tar.bz2'
  mirror 'http://mirror.switch.ch/ftp/mirror/gnupg/gnupg/gnupg-1.4.17.tar.bz2'
  sha1 '830c7f749ad92d6577c521addea5e5d920128d42'

  bottle do
    sha1 "4b841286cbcd16c0ae1a039a959dd1d29751072b" => :mavericks
    sha1 "e6cdc19b54a9d2b95fd38e76ea2d88cc52fe3dd5" => :mountain_lion
    sha1 "fe3780d0694e1cb01b17bcaadf95b7f3c02b0060" => :lion
  end

  option '8192', 'Build with support for private keys of up to 8192 bits'

  def install
    inreplace 'g10/keygen.c', 'max=4096', 'max=8192' if build.include? '8192'

    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--disable-asm"
    system "make"
    system "make check"

    # we need to create these directories because the install target has the
    # dependency order wrong
    [bin, libexec/'gnupg'].each(&:mkpath)
    system "make install"
  end
end<commit_msg>gnupg 1.4.18<commit_after>require "formula"

class Gnupg < Formula
  homepage "http://www.gnupg.org/"
  url "ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.18.tar.bz2"
  mirror "http://mirror.switch.ch/ftp/mirror/gnupg/gnupg/gnupg-1.4.18.tar.bz2"
  sha1 "41462d1a97f91abc16a0031b5deadc3095ce88ae"

  bottle do
    sha1 "4b841286cbcd16c0ae1a039a959dd1d29751072b" => :mavericks
    sha1 "e6cdc19b54a9d2b95fd38e76ea2d88cc52fe3dd5" => :mountain_lion
    sha1 "fe3780d0694e1cb01b17bcaadf95b7f3c02b0060" => :lion
  end

  option "8192", "Build with support for private keys of up to 8192 bits"

  def install
    inreplace "g10/keygen.c", "max=4096", "max=8192" if build.include? "8192"

    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--disable-asm"
    system "make"
    system "make check"

    # we need to create these directories because the install target has the
    # dependency order wrong
    [bin, libexec/"gnupg"].each(&:mkpath)
    system "make install"
  end
end
{'fraction_non_alphanumeric': 0.12339819648789749, 'fraction_numerical': 0.12482202183198861, 'mean_word_length': 3.16600790513834, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '3065988', 'n_tokens_mistral': 974, 'n_tokens_neox': 831, 'n_words': 158}