<commit_before>require "formula"

class Yarp < Formula
  homepage "http://yarp.it"
  head "https://github.com/robotology/yarp.git"
  url "https://github.com/robotology/yarp/archive/v2.3.62.tar.gz"
  sha1 "148fc9d77cc4b68119c31066b452e9607de0f066"

  option "without-shared", "Build only static version of YARP libraries"

  depends_on "pkg-config" => :build
  depends_on "cmake" => :build
  depends_on "ace"
  depends_on "gsl"
  depends_on "gtk+"
  depends_on "gtkmm"
  depends_on "libglademm"
  depends_on "sqlite"
  depends_on "readline"
  depends_on "jpeg"
  depends_on :x11

  def install
    args = std_cmake_args + %W[
      -DCREATE_LIB_MATH=TRUE
      -DCREATE_GUIS=TRUE
      -DCREATE_YMANAGER=TRUE
      -DYARP_USE_SYSTEM_SQLITE=TRUE
      -DCREATE_OPTIONAL_CARRIERS=TRUE
      -DENABLE_yarpcar_mjpeg_carrier=TRUE
      -DENABLE_yarpcar_rossrv_carrier=TRUE
      -DENABLE_yarpcar_tcpros_carrier=TRUE
      -DENABLE_yarpcar_xmlrpc_carrier=TRUE
      -DENABLE_yarpcar_bayer_carrier=TRUE
      -DUSE_LIBDC1394=FALSE
      -DENABLE_yarpcar_priority_carrier=TRUE
      -DCREATE_IDLS=TRUE
      -DENABLE_yarpidl_thrift=TRUE
      -DCREATE_YARPVIEW=TRUE
      -DCREATE_YARPSCOPE=TRUE
      -DCREATE_GYARPMANAGER=TRUE
      ]

      if build.without? "shared"
        args << "-DCREATE_SHARED_LIBRARY:BOOL=FALSE"
      else
        args << "-DCREATE_SHARED_LIBRARY:BOOL=TRUE"
      end
      args << "."

    system "cmake", *args
    system "make", "install"
  end

  test do
    system "#{bin}/yarp", "check"
  end
end
<commit_msg>yarp 2.3.63<commit_after>require "formula"

class Yarp < Formula
  homepage "http://yarp.it"
  head "https://github.com/robotology/yarp.git"
  url "https://github.com/robotology/yarp/archive/v2.3.63.tar.gz"
  sha1 "bef87cf5e53c1dc5b9fe4de90022cb8285405fa2"

  option "without-shared", "Build only static version of YARP libraries"

  depends_on "pkg-config" => :build
  depends_on "cmake" => :build
  depends_on "ace"
  depends_on "gsl"
  depends_on "gtk+"
  depends_on "gtkmm"
  depends_on "libglademm"
  depends_on "sqlite"
  depends_on "readline"
  depends_on "jpeg"
  depends_on :x11

  def install
    args = std_cmake_args + %W[
      -DCREATE_LIB_MATH=TRUE
      -DCREATE_GUIS=TRUE
      -DCREATE_YMANAGER=TRUE
      -DYARP_USE_SYSTEM_SQLITE=TRUE
      -DCREATE_OPTIONAL_CARRIERS=TRUE
      -DENABLE_yarpcar_mjpeg_carrier=TRUE
      -DENABLE_yarpcar_rossrv_carrier=TRUE
      -DENABLE_yarpcar_tcpros_carrier=TRUE
      -DENABLE_yarpcar_xmlrpc_carrier=TRUE
      -DENABLE_yarpcar_bayer_carrier=TRUE
      -DUSE_LIBDC1394=FALSE
      -DENABLE_yarpcar_priority_carrier=TRUE
      -DCREATE_IDLS=TRUE
      -DENABLE_yarpidl_thrift=TRUE
      -DCREATE_YARPVIEW=TRUE
      -DCREATE_YARPSCOPE=TRUE
      -DCREATE_GYARPMANAGER=TRUE
      ]

      if build.without? "shared"
        args << "-DCREATE_SHARED_LIBRARY:BOOL=FALSE"
      else
        args << "-DCREATE_SHARED_LIBRARY:BOOL=TRUE"
      end
      args << "."

    system "cmake", *args
    system "make", "install"
  end

  test do
    system "#{bin}/yarp", "check"
  end
end

{'fraction_non_alphanumeric': 0.09973924380704041, 'fraction_numerical': 0.024771838331160364, 'mean_word_length': 3.2743732590529246, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 7, 'https://': 4, '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': 0}}
{'dir': 'git-commits-cleaned', 'id': '885043', 'n_tokens_mistral': 1287, 'n_tokens_neox': 1220, 'n_words': 185}