<commit_before>require 'formula'

class Opensc < Formula
  homepage 'https://github.com/OpenSC/OpenSC/wiki'
  url 'https://downloads.sourceforge.net/project/opensc/OpenSC/opensc-0.14.0/opensc-0.14.0.tar.gz'
  sha1 '4a898e351b0a6d2a5d81576daa7ebed45baf9138'

  bottle do
    sha1 "58e3ad4248bc4a10258560a6dd186ec1c86467a4" => :mavericks
    sha1 "d7b65a4e3c7997340dc102ff3196b594731b2977" => :mountain_lion
    sha1 "cf7e11fe49ca6910d9374211f6421980f7e0f94f" => :lion
  end

  head do
    url 'https://github.com/OpenSC/OpenSC.git'

    depends_on :autoconf
    depends_on :automake
    depends_on :libtool
  end

  option 'with-man-pages', 'Build manual pages'

  depends_on 'docbook-xsl' if build.with? "man-pages"

  def install
    args = []

    if build.with? "man-pages"
      args << "--with-xsl-stylesheetsdir=#{Formula["docbook-xsl"].opt_prefix}/docbook-xsl"
    end

    system "./bootstrap" if build.head?
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--enable-sm",
                          "--enable-openssl",
                          "--enable-pcsc",
                          *args

    system "make install"
  end
end<commit_msg>opensc: added openssl deep<commit_after>require "formula"

class Opensc < Formula
  homepage "https://github.com/OpenSC/OpenSC/wiki"
  url "https://downloads.sourceforge.net/project/opensc/OpenSC/opensc-0.14.0/opensc-0.14.0.tar.gz"
  sha1 "4a898e351b0a6d2a5d81576daa7ebed45baf9138"
  revision 1

  bottle do
    sha1 "58e3ad4248bc4a10258560a6dd186ec1c86467a4" => :mavericks
    sha1 "d7b65a4e3c7997340dc102ff3196b594731b2977" => :mountain_lion
    sha1 "cf7e11fe49ca6910d9374211f6421980f7e0f94f" => :lion
  end

  head do
    url "https://github.com/OpenSC/OpenSC.git"

    depends_on :autoconf
    depends_on :automake
    depends_on :libtool
  end

  option "with-man-pages", "Build manual pages"

  depends_on "docbook-xsl" if build.with? "man-pages"
  depends_on "openssl"

  def install
    args = []

    if build.with? "man-pages"
      args << "--with-xsl-stylesheetsdir=#{Formula["docbook-xsl"].opt_prefix}/docbook-xsl"
    end

    system "./bootstrap" if build.head?
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--enable-sm",
                          "--enable-openssl",
                          "--enable-pcsc",
                          *args

    system "make", "install"
  end

  test do
    system "#{bin}/opensc-tool", "-i"
  end
end
{'fraction_non_alphanumeric': 0.12699029126213593, 'fraction_numerical': 0.09203883495145632, 'mean_word_length': 2.4346666666666668, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, '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': '7187939', 'n_tokens_mistral': 1074, 'n_tokens_neox': 942, 'n_words': 152}