<commit_before>class IgnitionCommon3 < Formula
  desc "Common libraries for robotics applications"
  homepage "https://bitbucket.org/ignitionrobotics/ign-common"
  url "http://gazebosim.org/distributions/ign-common/releases/ignition-common3-3.0.0~pre4.tar.bz2"
  version "3.0.0~pre4"
  sha256 "5aef6fcf1a3cc6ef85d8ef7a99de4f98df5f201514e6065752e050b2a9f24b79"

  bottle do
    root_url "http://gazebosim.org/distributions/bottles-simulation"
    cellar :any
    sha256 "823028f68b5c819116370e983ead0d9eb4a80816750d856fee6ac6f8ae7e322b" => :mojave
    sha256 "07137d8b989f9945974248280fb8d8faa2abf6d70cdc85d2dd8479a903d09284" => :high_sierra
    sha256 "84efc1a63c426227271dd874a3b1eaa383917b35cb4d6c2a72fdfd869b5a2733" => :sierra
  end

  depends_on "cmake"
  depends_on "ffmpeg"
  depends_on "freeimage"
  depends_on "gts"
  depends_on "ignition-cmake2"
  depends_on "ignition-math6"
  depends_on "ossp-uuid"
  depends_on "pkg-config"
  depends_on "tinyxml2"

  def install
    system "cmake", ".", *std_cmake_args
    system "make", "install"
  end

  test do
    (testpath/"test.cpp").write <<-EOS
      #include <iostream>
      #include <ignition/common.hh>
      int main() {
        igndbg << "debug" << std::endl;
        ignwarn << "warn" << std::endl;<commit_msg>ignition-common3: 3.0.0~pre4~1 update commit (#576)<commit_after>class IgnitionCommon3 < Formula
  desc "Common libraries for robotics applications"
  homepage "https://bitbucket.org/ignitionrobotics/ign-common"
  url "https://bitbucket.org/ignitionrobotics/ign-common/get/a3b13b35ea4fa29436de9a72d028074b98fd4ef6.tar.gz"
  version "3.0.0~pre4~1~a3b13b35"
  sha256 "d00ed2f5363e9cbe25959e259eddb65131c8df9e30efa70e8df81402ceeeaf50"

  bottle do
    root_url "http://gazebosim.org/distributions/bottles-simulation"
    cellar :any
    sha256 "6bfb92b8a35494d8f7a1d9e977eecb4b0723f33831a64176e6952c3c1dc1836a" => :mojave
    sha256 "bfa584002c7602576734707af7a1935f76e2763bcab25bc29bc6cea988c58019" => :high_sierra
    sha256 "c113b40e1953a31e2c5e813b990378ae86c3dd20843041b18eaeee85e1e5e88b" => :sierra
  end

  depends_on "cmake"
  depends_on "ffmpeg"
  depends_on "freeimage"
  depends_on "gts"
  depends_on "ignition-cmake2"
  depends_on "ignition-math6"
  depends_on "ossp-uuid"
  depends_on "pkg-config"
  depends_on "tinyxml2"

  def install
    system "cmake", ".", *std_cmake_args
    system "make", "install"
  end

  test do
    (testpath/"test.cpp").write <<-EOS
      #include <iostream>
      #include <ignition/common.hh>
      int main() {
        igndbg << "debug" << std::endl;
        ignwarn << "warn" << std::endl;
{'fraction_non_alphanumeric': 0.10897927858787414, 'fraction_numerical': 0.15617805065234075, 'mean_word_length': 4.57051282051282, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 13, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': 1}}
{'dir': 'git-commits-cleaned', 'id': '6408276', 'n_tokens_mistral': 1305, 'n_tokens_neox': 1128, 'n_words': 155}