<commit_before>require 'formula'

class YamlCpp < Formula
  homepage 'http://code.google.com/p/yaml-cpp/'
  url 'https://yaml-cpp.googlecode.com/files/yaml-cpp-0.5.1.tar.gz'
  sha1 '9c5414b4090491e96d1b808fe8628b31e625fdaa'

  bottle do
    cellar :any
    sha1 "84e9938ac85d1830acb4c15b6eb3b4a33ec33a33" => :yosemite
    sha1 "c085fa37570254c346b16e7c62f962775f992389" => :mavericks
    sha1 "bcd0894e3abc4db1ddc9d1df0a3c24117f189f74" => :mountain_lion
  end

  option :cxx11
  option :universal
  option "with-static-lib", "Build a static library"

  depends_on 'cmake' => :build

  if build.cxx11?
    depends_on 'boost' => 'c++11'
  else
    depends_on 'boost'
  end

  def install
    ENV.cxx11 if build.cxx11?
    ENV.universal_binary if build.universal?
    args = std_cmake_args
    if build.with? "static-lib"
      args << "-DBUILD_SHARED_LIBS=OFF"
    else
      args << "-DBUILD_SHARED_LIBS=ON"
    end

    system "cmake", ".", *args
    system "make install"<commit_msg>yaml-cpp: fix https, sha256, remove require, fix system make install<commit_after>class YamlCpp < Formula
  homepage "https://code.google.com/p/yaml-cpp/"
  url "https://yaml-cpp.googlecode.com/files/yaml-cpp-0.5.1.tar.gz"
  sha256 "3e7c9052b43d987d41819a203d97fc45de4eed3ec67e0fdb14265c3d11046f06"

  bottle do
    cellar :any
    sha1 "84e9938ac85d1830acb4c15b6eb3b4a33ec33a33" => :yosemite
    sha1 "c085fa37570254c346b16e7c62f962775f992389" => :mavericks
    sha1 "bcd0894e3abc4db1ddc9d1df0a3c24117f189f74" => :mountain_lion
  end

  option :cxx11
  option :universal
  option "with-static-lib", "Build a static library"

  depends_on "cmake" => :build

  if build.cxx11?
    depends_on "boost" => "c++11"
  else
    depends_on "boost"
  end

  def install
    ENV.cxx11 if build.cxx11?
    ENV.universal_binary if build.universal?
    args = std_cmake_args
    if build.with? "static-lib"
      args << "-DBUILD_SHARED_LIBS=OFF"
    else
      args << "-DBUILD_SHARED_LIBS=ON"
    end

    system "cmake", ".", *args
    system "make", "install"
{'fraction_non_alphanumeric': 0.11209439528023599, 'fraction_numerical': 0.12733529990167158, 'mean_word_length': 3.646118721461187, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 3, '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': '7527954', 'n_tokens_mistral': 988, 'n_tokens_neox': 856, 'n_words': 150}