<commit_before>class Glm < Formula
  desc "C++ mathematics library for graphics software"
  homepage "https://glm.g-truc.net/"
  url "https://github.com/g-truc/glm/releases/download/0.9.9.1/glm-0.9.9.1.zip"
  sha256 "10f1471d69ec09992f400705bedc9f5121e17a2c8fd6f9591244bb5ee1104a10"
  revision 1
  head "https://github.com/g-truc/glm.git"

  bottle do
    cellar :any_skip_relocation
    rebuild 1
    sha256 "bfff1210011db0784e9ca382b22c73c303095ec427e42c3ae7948681d8ddc00e" => :mojave
    sha256 "a08b7177f060604dfeca9ba56be35d28ed7fd85652589f0da7a37b9caaa845b0" => :high_sierra
    sha256 "e6800f01c463ec8250acb7bdfe24c8db8d30324df0d2934ccf91c0b0f3d947e6" => :sierra
    sha256 "7214934e63d1c5b6f0e791e48edfe710e6472a157fccc5f038618bd373ea0801" => :el_capitan
  end

  depends_on "cmake" => :build
  depends_on "doxygen" => :build

  def install
    mkdir "build" do
      system "cmake", "..", *std_cmake_args
      system "make", "install"
    end

    cd "doc" do
      system "doxygen", "man.doxy"
      man.install "html"
    end
    doc.install Dir["doc/*"]
  end

  test do
    (testpath/"test.cpp").write <<~EOS
      #include <glm/vec2.hpp>// glm::vec2
      int main()
      {
        std::size_t const VertexCount = 4;
        std::size_t const PositionSizeF32 = VertexCount * sizeof(glm::vec2);
        glm::vec2 const PositionDataF32[VertexCount] =
        {
          glm::vec2(-1.0f,-1.0f),
          glm::vec2( 1.0f,-1.0f),
          glm::vec2( 1.0f, 1.0f),
          glm::vec2(-1.0f, 1.0f)
        };
        return 0;
      }
    EOS
    system ENV.cxx, "-I#{include}", testpath/"test.cpp", "-o", "test"
    system "./test"
  end
end
<commit_msg>glm: update 0.9.9.1_1 bottle for Linuxbrew.<commit_after>class Glm < Formula
  desc "C++ mathematics library for graphics software"
  homepage "https://glm.g-truc.net/"
  url "https://github.com/g-truc/glm/releases/download/0.9.9.1/glm-0.9.9.1.zip"
  sha256 "10f1471d69ec09992f400705bedc9f5121e17a2c8fd6f9591244bb5ee1104a10"
  revision 1
  head "https://github.com/g-truc/glm.git"

  bottle do
    cellar :any_skip_relocation
    rebuild 1
    sha256 "bfff1210011db0784e9ca382b22c73c303095ec427e42c3ae7948681d8ddc00e" => :mojave
    sha256 "a08b7177f060604dfeca9ba56be35d28ed7fd85652589f0da7a37b9caaa845b0" => :high_sierra
    sha256 "e6800f01c463ec8250acb7bdfe24c8db8d30324df0d2934ccf91c0b0f3d947e6" => :sierra
    sha256 "7214934e63d1c5b6f0e791e48edfe710e6472a157fccc5f038618bd373ea0801" => :el_capitan
    sha256 "bda1d46b1d8cf4e4f3482e3adef8e5fbf0c39b933b0c4d8a8f9ea9e2f8639937" => :x86_64_linux
  end

  depends_on "cmake" => :build
  depends_on "doxygen" => :build

  def install
    mkdir "build" do
      system "cmake", "..", *std_cmake_args
      system "make", "install"
    end

    cd "doc" do
      system "doxygen", "man.doxy"
      man.install "html"
    end
    doc.install Dir["doc/*"]
  end

  test do
    (testpath/"test.cpp").write <<~EOS
      #include <glm/vec2.hpp>// glm::vec2
      int main()
      {
        std::size_t const VertexCount = 4;
        std::size_t const PositionSizeF32 = VertexCount * sizeof(glm::vec2);
        glm::vec2 const PositionDataF32[VertexCount] =
        {
          glm::vec2(-1.0f,-1.0f),
          glm::vec2( 1.0f,-1.0f),
          glm::vec2( 1.0f, 1.0f),
          glm::vec2(-1.0f, 1.0f)
        };
        return 0;
      }
    EOS
    system ENV.cxx, "-I#{include}", testpath/"test.cpp", "-o", "test"
    system "./test"
  end
end

{'fraction_non_alphanumeric': 0.12951720150332466, 'fraction_numerical': 0.16074009829430472, 'mean_word_length': 3.042056074766355, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 18, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 5, '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': '5153324', 'n_tokens_mistral': 1770, 'n_tokens_neox': 1521, 'n_words': 230}