<commit_before>class ColladaDom < Formula
  desc "C++ library for loading and saving COLLADA data"
  homepage "http://www.collada.org/mediawiki/index.php/Portal:COLLADA_DOM"
  url "https://downloads.sourceforge.net/project/collada-dom/Collada%20DOM/Collada%20DOM%202.4/collada-dom-2.4.0.tgz"
  sha256 "5ca2d12f744bdceff0066ed3067b3b23d6859581fb0d657f98ba4487d8fa3896"

  depends_on "cmake" => :build
  depends_on "pcre"
  depends_on "boost"

  # Fix build of minizip: quoting arguments to cmake's add_definitions doesn't work the way they thought it did.
  patch :DATA

  def install
    system "cmake", ".", *std_cmake_args<commit_msg>collada-dom: new website, add devel and head<commit_after>class ColladaDom < Formula
  desc "C++ library for loading and saving COLLADA data"
  homepage "https://www.khronos.org/collada/wiki/Portal:COLLADA_DOM"
  url "https://downloads.sourceforge.net/project/collada-dom/Collada%20DOM/Collada%20DOM%202.4/collada-dom-2.4.0.tgz"
  sha256 "5ca2d12f744bdceff0066ed3067b3b23d6859581fb0d657f98ba4487d8fa3896"
  head "https://github.com/rdiankov/collada-dom.git"

  depends_on "cmake" => :build
  depends_on "pcre"
  depends_on "boost"

  stable do
    # Fix build of minizip: quoting arguments to cmake's add_definitions doesn't work the way they thought it did.
    # Fixed in 2.4.2; remove this when version gets bumped
    # https://github.com/rdiankov/collada-dom/issues/3
    patch :DATA
  end

  devel do
    url "https://github.com/rdiankov/collada-dom/archive/v2.4.4.tar.gz"
    sha256 "0dfa494827faa971310c871535b319cadbd0c2d6958ee11b303c61a55a5a437a"
  end

  def install
    system "cmake", ".", *std_cmake_args
{'fraction_non_alphanumeric': 0.10701330108827085, 'fraction_numerical': 0.09613059250302297, 'mean_word_length': 4.498338870431894, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '5286919', 'n_tokens_mistral': 733, 'n_tokens_neox': 641, 'n_words': 125}