<commit_before><commit_msg>libght: new formula; hash tree for storing and accessing multi-dimensional point clouds<commit_after>require "formula"

class Libght < Formula
  homepage "https://github.com/pramsey/libght/"
  url "https://github.com/pramsey/libght/archive/v0.1.0.tar.gz"
  sha1 "19104cdba21fabb8d5fad847af1a8e8bcde40b6a"

  head "https://github.com/pramsey/libght.git", :branch => "master"

  option "with-tests", "Run unit tests after build, prior to install"

  depends_on "cmake" => :build
  depends_on "proj"
  depends_on "liblas"
  depends_on "cunit" if build.with? "tests"

  def install
    ENV.libxml2
    mkdir "build" do
      system "cmake", "..", *std_cmake_args
      system "make"
      puts %x(test/cu_tester) if build.with? "tests"
      system "make", "install"
    end
  end

  test do
    assert_match "version #{version.to_s[0,3]}", %x(#{bin}/"las2ght")
  end
end
{'fraction_non_alphanumeric': 0.1342281879194631, 'fraction_numerical': 0.029082774049217, 'mean_word_length': 3.8118279569892475, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '460750', 'n_tokens_mistral': 347, 'n_tokens_neox': 337, 'n_words': 77}