<commit_before>require 'formula'

class Points2grid < Formula
  homepage 'https://github.com/CRREL/points2grid'
  url 'https://github.com/CRREL/points2grid/archive/1.2.1.tar.gz'
  sha1 'afd1b8ac0086b7ac220a3615e0ec1512161a4628'

  depends_on 'cmake' => :build
  depends_on 'boost'

  def install
    libexec.install "example.las"
    system "cmake", ".", *std_cmake_args
    system "make install"
  end

  test do
    mktemp do
      system bin/"points2grid",
             "-i", libexec/"example.las",
             "-o", "example",
             "--max", "--output_format", "grid"
      assert_equal 5, %x(grep -c '423.820000' < example.max.grid).strip.to_i
    end
  end
end
<commit_msg>points2grid 1.3.0<commit_after>require 'formula'

class Points2grid < Formula
  homepage 'https://github.com/CRREL/points2grid'
  url 'https://github.com/CRREL/points2grid/archive/1.3.0.tar.gz'
  sha1 'a12a54a70559d9920753256966bd2ce7eade752c'

  depends_on 'cmake' => :build
  depends_on 'boost'
  depends_on 'gdal'

  def install
    args = std_cmake_args + ["-DWITH_GDAL=ON"]
    libexec.install "example.las"
    system "cmake", ".", *args
    system "make install"
  end

  test do
    mktemp do
      system bin/"points2grid",
             "-i", libexec/"example.las",
             "-o", "example",
             "--max", "--output_format", "grid"
      assert_equal 5, %x(grep -c '423.820000' < example.max.grid).strip.to_i
    end
  end
end

{'fraction_non_alphanumeric': 0.1421602787456446, 'fraction_numerical': 0.06480836236933799, 'mean_word_length': 2.798941798941799, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '7423109', 'n_tokens_mistral': 582, 'n_tokens_neox': 535, 'n_words': 104}