<commit_before>class ThorsSerializer < Formula
  desc "Declarative serialization library (JSON/YAML) for C++"
  homepage "https://github.com/Loki-Astari/ThorsSerializer"
  url "https://github.com/Loki-Astari/ThorsSerializer.git",
      :tag      => "1.13.5",
      :revision => "9a276568714ad6482ce9c3dccc50ad88cfa55246"

  bottle do
    cellar :any
    sha256 "9191bbecaed9cafc9fa2ba125aefd8ce505d1a9ab569ff53379f29be76f2f2e8" => :mojave
    sha256 "d811d9908126d3abed8ed61a15b33a8c96c7cbae94da1da077599ec3fd0b7e0f" => :high_sierra
    sha256 "9f6910ed5a6634a2f5e5c6faaaaca77ac677d2a03352cd0580d812de3b12e33f" => :sierra
  end

  depends_on "libyaml"

  def install
    ENV["COV"] = "gcov"

    system "./configure", "--disable-binary",
                          "--disable-vera",
                          "--prefix=#{prefix}"
    system "make"
    system "make", "install"
  end

  test do
    (testpath/"test.cpp").write <<~EOS
      #include "ThorSerialize/JsonThor.h"
      #include "ThorSerialize/SerUtil.h"
      #include <sstream>
      #include <iostream>
      #include <string>

      struct Block
      {
          std::string             key;
          int                     code;
      };
      ThorsAnvil_MakeTrait(Block, key, code);

      int main()
      {<commit_msg>thors-serializer: update 1.13.5 bottle.<commit_after>class ThorsSerializer < Formula
  desc "Declarative serialization library (JSON/YAML) for C++"
  homepage "https://github.com/Loki-Astari/ThorsSerializer"
  url "https://github.com/Loki-Astari/ThorsSerializer.git",
      :tag      => "1.13.5",
      :revision => "9a276568714ad6482ce9c3dccc50ad88cfa55246"

  bottle do
    cellar :any
    sha256 "2467f04a88cd83134da7b857a50a5309c5d5576b911ce698f7583496879049e1" => :mojave
    sha256 "52f052ad21a72f28b4eeb071f53131aa53899e4964ba90b311ce4193954b4e20" => :high_sierra
    sha256 "4529431f870a848cf22bedd03d2752819f1c9dd6618bea8eb5e29152738754fc" => :sierra
  end

  depends_on "libyaml"

  def install
    ENV["COV"] = "gcov"

    system "./configure", "--disable-binary",
                          "--disable-vera",
                          "--prefix=#{prefix}"
    system "make"
    system "make", "install"
  end

  test do
    (testpath/"test.cpp").write <<~EOS
      #include "ThorSerialize/JsonThor.h"
      #include "ThorSerialize/SerUtil.h"
      #include <sstream>
      #include <iostream>
      #include <string>

      struct Block
      {
          std::string             key;
          int                     code;
      };
      ThorsAnvil_MakeTrait(Block, key, code);

      int main()
      {
{'fraction_non_alphanumeric': 0.11328725038402458, 'fraction_numerical': 0.12211981566820276, 'mean_word_length': 2.5394021739130435, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 19, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '3278946', 'n_tokens_mistral': 1137, 'n_tokens_neox': 966, 'n_words': 151}