<commit_before>require 'formula'

class XmlSecurityC < Formula
  homepage 'http://santuario.apache.org/'
  url 'http://www.apache.org/dyn/closer.cgi?path=/santuario/c-library/xml-security-c-1.7.2.tar.gz'
  sha1 'fee59d5347ff0666802c8e5aa729e0304ee492bc'

  bottle do
    cellar :any
    sha1 "2d08293634c4b7ff1e5794dcdee9845f35ca13c9" => :yosemite
    sha1 "82e9096d90dbdcc4edb2043af3c0361787b65a57" => :mavericks
    sha1 "2ca2c2af28a4d7e45bb54110054323a7e220c47b" => :mountain_lion
  end

  depends_on 'pkg-config' => :build
  depends_on 'xerces-c'

  def install
    system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
    system "make install"
  end
end
<commit_msg>xml-security-c: fix system openssl linkage<commit_after>class XmlSecurityC < Formula
  homepage "https://santuario.apache.org/"
  url "https://www.apache.org/dyn/closer.cgi?path=/santuario/c-library/xml-security-c-1.7.2.tar.gz"
  sha256 "d576b07bb843eaebfde3be01301db40504ea8e8e477c0ad5f739b07022445452"
  revision 1

  bottle do
    cellar :any
    sha1 "2d08293634c4b7ff1e5794dcdee9845f35ca13c9" => :yosemite
    sha1 "82e9096d90dbdcc4edb2043af3c0361787b65a57" => :mavericks
    sha1 "2ca2c2af28a4d7e45bb54110054323a7e220c47b" => :mountain_lion
  end

  depends_on "pkg-config" => :build
  depends_on "xerces-c"
  depends_on "openssl"

  def install
    system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking",
                          "--with-openssl=#{Formula["openssl"].opt_prefix}"
    system "make", "install"
  end

  test do
    assert_match /All tests passed/, pipe_output("#{bin}/xtest 2>&1")
  end
end

{'fraction_non_alphanumeric': 0.12864077669902912, 'fraction_numerical': 0.14320388349514562, 'mean_word_length': 4.185534591194968, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 3}, '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': '1041607', 'n_tokens_mistral': 798, 'n_tokens_neox': 679, 'n_words': 99}