<commit_before>/*
 * strprbrk.c, part of "stringlib" project.
 *
 *  Created on: 05.06.2015, 17:27
 *      Author: <NAME> <<EMAIL>>
 */

#include "stringlib.h"

char * strbrbrk( const char * s, const char * accept )
{
    char * end = s + strlen( s );
    while( end >= s )
    {
        const char *a = accept;
        while( *a != '\0' )
            if( *a++ == *end ) return (char *)end;
        end--;
    }
    return NULL;
}
<commit_msg>strbrbrk() const char * => char * in return<commit_after>/*
 * strprbrk.c, part of "stringlib" project.
 *
 *  Created on: 05.06.2015, 17:27
 *      Author: <NAME> <<EMAIL>>
 */

#include "stringlib.h"

char * strbrbrk( const char * s, const char * accept )
{
    const char * end = s + strlen( s );
    while( end >= s )
    {
        const char *a = accept;
        while( *a )
            if( *a++ == *end ) return (char *)end;
        end--;
    }
    return NULL;
}

{'fraction_non_alphanumeric': 0.1739606126914661, 'fraction_numerical': 0.02735229759299781, 'mean_word_length': 1.980456026058632, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 12, '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': '701105', 'n_tokens_mistral': 354, 'n_tokens_neox': 335, 'n_words': 99}