<commit_before>#define CATCH_CONFIG_MAIN
#include "../../vendor/catch/catch.hpp"

#include <boost/optional/optional_io.hpp>
#include <ostream>

#include "spdlog_utility.hpp"

TEST_CASE("get_timestamp_number") {
  {
    auto actual = spdlog_utility::get_sort_key("[2016-09-22 20:18:37.649] [grabber] [info] version 0.90.36");
    REQUIRE(actual != boost::none);
    REQUIRE(*actual == 20160922201837649);
  }
  {
    auto actual = spdlog_utility::get_sort_key("[]");
    REQUIRE(actual == boost::none);
  }
  {
    auto actual = spdlog_utility::get_sort_key("[yyyy-mm-dd hh:mm:ss.mmm]");
    REQUIRE(actual == boost::none);
  }
}<commit_msg>update test<commit_after>#define CATCH_CONFIG_MAIN
#include "../../vendor/catch/catch.hpp"

#include <boost/optional/optional_io.hpp>
#include <ostream>

#include "spdlog_utility.hpp"

TEST_CASE("get_timestamp_number") {
  {
    auto actual = spdlog_utility::get_sort_key("[2016-10-15 00:09:47.283] [info] [grabber] version 0.90.50");
    REQUIRE(actual != boost::none);
    REQUIRE(*actual == 20161015000947283);
  }
  {
    auto actual = spdlog_utility::get_sort_key("[]");
    REQUIRE(actual == boost::none);
  }
  {
    auto actual = spdlog_utility::get_sort_key("[yyyy-mm-dd hh:mm:ss.mmm]");
    REQUIRE(actual == boost::none);
  }
}
{'fraction_non_alphanumeric': 0.1784037558685446, 'fraction_numerical': 0.06103286384976526, 'mean_word_length': 4.65929203539823, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '4492616', 'n_tokens_mistral': 558, 'n_tokens_neox': 500, 'n_words': 69}