<commit_before>#include "Test.h"

#include <string>

using namespace std;
using namespace std::literals;

extern "C" size_t test_strspn(const char *, const char *);

class StrspnTest : public evil::Test {};

TEST_F(StrspnTest, null_s1) {
    evil::UBChecker checker{1};
    ASSERT_EQ(0, test_strspn(NULL, ""));
}

TEST_F(StrspnTest, null_s2) {
    evil::UBChecker checker{1};
    ASSERT_EQ(0, test_strspn("", NULL));
}

TEST_F(StrspnTest, empty_s1) {
    ASSERT_EQ(0, test_strspn("", "a"));
}

TEST_F(StrspnTest, empty_s2) {
    ASSERT_EQ(0, test_strspn("a", ""));
}

TEST_F(StrspnTest, single_char_in_s2) {
    ASSERT_EQ(2, test_strspn("aaba", "a"));
    ASSERT_EQ(0, test_strspn("aaba", "c"));
}

TEST_F(StrspnTest, multiple_chars_in_s2) {
    ASSERT_EQ(5, test_strspn("aababc", "ab"));
}<commit_msg>Fix warning in strspn test<commit_after>#include "Test.h"

#include <string>

using namespace std;
using namespace std::literals;

extern "C" size_t test_strspn(const char *, const char *);

class StrspnTest : public evil::Test {};

TEST_F(StrspnTest, null_s1) {
    evil::UBChecker checker{1};
    ASSERT_EQ(0u, test_strspn(NULL, ""));
}

TEST_F(StrspnTest, null_s2) {
    evil::UBChecker checker{1};
    ASSERT_EQ(0u, test_strspn("", NULL));
}

TEST_F(StrspnTest, empty_s1) {
    ASSERT_EQ(0u, test_strspn("", "a"));
}

TEST_F(StrspnTest, empty_s2) {
    ASSERT_EQ(0u, test_strspn("a", ""));
}

TEST_F(StrspnTest, single_char_in_s2) {
    ASSERT_EQ(2u, test_strspn("aaba", "a"));
    ASSERT_EQ(0u, test_strspn("aaba", "c"));
}

TEST_F(StrspnTest, multiple_chars_in_s2) {
    ASSERT_EQ(5u, test_strspn("aababc", "ab"));
}
{'fraction_non_alphanumeric': 0.17364532019704434, 'fraction_numerical': 0.01847290640394089, 'mean_word_length': 5.63265306122449, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1840889', 'n_tokens_mistral': 710, 'n_tokens_neox': 712, 'n_words': 116}