<commit_before>/**
 * Copyright (c) 2015, <NAME> <<EMAIL>>
 */

#include <assert.h>
#include <string.h>
#include "map.h"
#include "strings.h"

void
case_map_set()
{
    struct map *m = map();
    char *key = "key", *val = "val";
    assert(map_set(m, key, val) == MAP_OK);
    assert(map_len(m) == 1);
    assert(map_get(m, key) == val);
    /* set multiple times */
    int i;
    for (i = 0; i < 1024; i++) {
        char key[11];
        char val[21];
        strings_rand(key, 10);<commit_msg>Minor fix<commit_after>/**
 * Copyright (c) 2015, <NAME> <<EMAIL>>
 */

#include <assert.h>
#include <string.h>
#include "map.h"
#include "strings.h"

void
case_map_set()
{
    struct map *m = map();
    char *key = "key", *val = "val";
    assert(map_set(m, key, val) == MAP_OK);
    assert(map_len(m) == 1);
    assert(map_get(m, key) == val);
    /* set multiple times */
    int i;
    for (i = 0; i < 10000; i++) {
        char key[11];
        char val[21];
        strings_rand(key, 10);
{'fraction_non_alphanumeric': 0.20181634712411706, 'fraction_numerical': 0.033299697275479316, 'mean_word_length': 2.7293233082706765, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, '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': '4770965', 'n_tokens_mistral': 420, 'n_tokens_neox': 388, 'n_words': 102}