<commit_before>require 'formula'

class Ncdc < Formula
  homepage 'http://dev.yorhel.nl/ncdc'
  url 'http://dev.yorhel.nl/download/ncdc-1.18.1.tar.gz'
  sha1 '184dce59b5b51563f869a43d81971a1537cdc438'

  depends_on 'glib'
  depends_on 'sqlite'
  depends_on 'gnutls'
  depends_on 'pkg-config' => :build

  def install
    system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
    system "make install"
  end

  test do
    system "#{bin}/ncdc", "-v"
  end
end
<commit_msg>ncdc 1.19<commit_after>require 'formula'

class Ncdc < Formula
  homepage 'http://dev.yorhel.nl/ncdc'
  url 'http://dev.yorhel.nl/download/ncdc-1.19.tar.gz'
  sha1 '7f478b7daf09202586b40899cc6beabeb0d23178'

  option 'with-geoip', "Build with geoip support"

  depends_on 'glib'
  depends_on 'sqlite'
  depends_on 'gnutls' => 'with-p11-kit'
  depends_on 'pkg-config' => :build
  depends_on 'geoip' => :optional

  def install
    args = [
      "--disable-dependency-tracking",
      "--prefix=#{prefix}",
    ]
    args << '--with-geoip' if build.with? 'geoip'

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

  test do
    system "#{bin}/ncdc", "-v"
  end
end

{'fraction_non_alphanumeric': 0.15443686006825938, 'fraction_numerical': 0.05716723549488054, 'mean_word_length': 3.3444444444444446, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '4375316', 'n_tokens_mistral': 514, 'n_tokens_neox': 471, 'n_words': 92}