<commit_before>/*
 * rndstring.c, part of "stringlib" project.
 *
 *  Created on: 19 мая 2015 г.
 *      Author: <NAME> <<EMAIL>>
 */

#include "stringlib.h"

char * rnd_string( char * string, size_t size )
{
    static const char _letters[] =
            "<KEY>";
    size_t i;

    if( !string )
    {
        string = Malloc( size + 1 );
        if( !string ) return NULL;
    }

    for( i = 0; i < size - 1; i++ )
    {
        string[i] = _letters[rand() % (sizeof(_letters)-1)];
    }
    string[i] = 0;
    return string;
}<commit_msg>excluded: 0, O, Q, 1, l, I<commit_after>/*
 * rndstring.c, part of "stringlib" project.
 *
 *  Created on: 19 мая 2015 г.
 *      Author: <NAME> <<EMAIL>>
 */

#include "stringlib.h"

char * rnd_string( char * string, size_t size )
{
    /*
     * Excluded: 0, O, Q, 1, l, I
     */
    static const char _letters[] =
            "<KEY>";
    size_t i;

    if( !string )
    {
        string = Malloc( size + 1 );
        if( !string ) return NULL;
    }

    for( i = 0; i < size - 1; i++ )
    {
        string[i] = _letters[rand() % (sizeof(_letters)-1)];
    }
    string[i] = 0;
    return string;
}
{'fraction_non_alphanumeric': 0.16986062717770034, 'fraction_numerical': 0.02264808362369338, 'mean_word_length': 1.938618925831202, 'pattern_counts': {'":': 0, '<': 13, '<?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': '4062059', 'n_tokens_mistral': 465, 'n_tokens_neox': 431, 'n_words': 121}