<commit_before>class Libical < Formula
  desc "Implementation of iCalendar protocols and data formats"
  homepage "https://libical.github.io/libical/"
  url "https://github.com/libical/libical/releases/download/v2.0.0/libical-2.0.0.tar.gz"
  sha256 "654c11f759c19237be39f6ad401d917e5a05f36f1736385ed958e60cf21456da"

  bottle do
    sha256 "4b8b3165661fca6ae137559f3b9d0436bee37284ce84c75e9e81677512bacd43" => :sierra
    sha256 "80cd45eebc20492169a98e26c2ac384d9e7d42c60c97dfb31cf15fa3c978ea27" => :el_capitan
    sha256 "f4cbcfb04208a01f1589f119e785c656b74713d033949e8a6a367a759ea142eb" => :yosemite
  end

  depends_on "cmake" => :build

  def install
    # Fix libical-glib build failure due to undefined symbol
    # Upstream issue https://github.com/libical/libical/issues/225
    inreplace "src/libical/icallangbind.h", "*callangbind_quote_as_ical_r(",
                                            "*icallangbind_quote_as_ical_r("

    mkdir "build" do<commit_msg>libical: update 2.0.0 bottle for Linuxbrew.<commit_after>class Libical < Formula
  desc "Implementation of iCalendar protocols and data formats"
  homepage "https://libical.github.io/libical/"
  url "https://github.com/libical/libical/releases/download/v2.0.0/libical-2.0.0.tar.gz"
  sha256 "654c11f759c19237be39f6ad401d917e5a05f36f1736385ed958e60cf21456da"

  bottle do
    sha256 "4b8b3165661fca6ae137559f3b9d0436bee37284ce84c75e9e81677512bacd43" => :sierra
    sha256 "80cd45eebc20492169a98e26c2ac384d9e7d42c60c97dfb31cf15fa3c978ea27" => :el_capitan
    sha256 "f4cbcfb04208a01f1589f119e785c656b74713d033949e8a6a367a759ea142eb" => :yosemite
    sha256 "b7f5bf0c25bc3674ddb84004feb326b6c17a7a1e35ae857d4200758bed0aea07" => :x86_64_linux
  end

  depends_on "cmake" => :build

  def install
    # Fix libical-glib build failure due to undefined symbol
    # Upstream issue https://github.com/libical/libical/issues/225
    inreplace "src/libical/icallangbind.h", "*callangbind_quote_as_ical_r(",
                                            "*icallangbind_quote_as_ical_r("

    mkdir "build" do
{'fraction_non_alphanumeric': 0.08571428571428572, 'fraction_numerical': 0.20484261501210654, 'mean_word_length': 4.394255874673629, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1410939', 'n_tokens_mistral': 1062, 'n_tokens_neox': 839, 'n_words': 111}