<commit_before>#include <cppunit/config.h>

#if CPPUNIT_USE_TYPEINFO

#include <string>
#include <cppunit/extensions/TypeInfoHelper.h>


namespace CppUnit {

std::string 
TypeInfoHelper::getClassName( const std::type_info &info )
{
    static std::string classPrefix( "class " );
    std::string name( info.name() );

    bool has_class_prefix = 0 ==
#if FUNC_STRING_COMPARE_STRING_FIRST
	name.compare( classPrefix, 0, classPrefix.length() );
#else
        name.compare( 0, classPrefix.length(), classPrefix );
#endif

    return has_class_prefix ? name.substr( classPrefix.length() ) : name;
}


} //  namespace CppUnit

#endif // CPPUNIT_USE_TYPEINFO<commit_msg>use new macro name CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST replaced #include of <config.h> with <cppunit/Portability.h><commit_after>#include <cppunit/Portability.h>

#if CPPUNIT_USE_TYPEINFO

#include <string>
#include <cppunit/extensions/TypeInfoHelper.h>


namespace CppUnit {

std::string 
TypeInfoHelper::getClassName( const std::type_info &info )
{
    static std::string classPrefix( "class " );
    std::string name( info.name() );

    bool has_class_prefix = 0 ==
#if CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST
	name.compare( classPrefix, 0, classPrefix.length() );
#else
        name.compare( 0, classPrefix.length(), classPrefix );
#endif

    return has_class_prefix ? name.substr( classPrefix.length() ) : name;
}


} //  namespace CppUnit

#endif // CPPUNIT_USE_TYPEINFO
{'fraction_non_alphanumeric': 0.12154696132596685, 'fraction_numerical': 0.004143646408839779, 'mean_word_length': 4.938524590163935, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '6694797', 'n_tokens_mistral': 491, 'n_tokens_neox': 477, 'n_words': 101}