<commit_before>require 'formula'

class Virtuoso < Formula
  homepage 'http://virtuoso.openlinksw.com/wiki/main/'
  url 'http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.6/virtuoso-opensource-6.1.6.tar.gz'
  sha1 '03bc14b1627d16d76687f8b8659801966aab3fb4'

  head 'https://github.com/openlink/virtuoso-opensource.git', :branch => 'develop/6'

  # If gawk isn't found, make fails deep into the process.
  depends_on 'gawk' => :build

  if build.head?
    depends_on :autoconf
    depends_on :automake
    depends_on :libtool
  end

  skip_clean :la

  def install<commit_msg>Virtuoso 6.1.7<commit_after>require 'formula'

class Virtuoso < Formula
  homepage 'http://virtuoso.openlinksw.com/wiki/main/'
  url 'http://downloads.sourceforge.net/project/virtuoso/virtuoso/6.1.7/virtuoso-opensource-6.1.7.tar.gz'
  sha256 'c82c1ee90810db5ccd725f7d0d68b42aa6db9a1c8bf6fe2a4dd0ca91a271aa7f'

  head 'https://github.com/openlink/virtuoso-opensource.git', :branch => 'develop/6'

  # If gawk isn't found, make fails deep into the process.
  depends_on 'gawk' => :build

  if build.head?
    depends_on :autoconf
    depends_on :automake
    depends_on :libtool
  end

  skip_clean :la

  def patches
    # hotfix for https://github.com/openlink/virtuoso-opensource/issues/68
    # should be applied only to 6.1.7 — remove when building newer versions
    "https://github.com/openlink/virtuoso-opensource/commit/fd538a973b773443323939544b018a40ce4c8fee.patch"
  end if build.stable?

  def install
{'fraction_non_alphanumeric': 0.11333333333333333, 'fraction_numerical': 0.076, 'mean_word_length': 4.070945945945946, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '3190916', 'n_tokens_mistral': 638, 'n_tokens_neox': 583, 'n_words': 103}