<commit_before>/*
 * Copyright (C) 2013 INRIA
 * Copyright (C) 2014 <NAME>
 *
 * This file is subject to the terms and conditions of the GNU Lesser
 * General Public License v2.1. See the file LICENSE in the top level
 * directory for more details.
 */

/**
 * @ingroup tests
 * @{
 *
 * @file
 * @brief Thread test application
 *
 * @author      <NAME> <<EMAIL>>
 * @author      <NAME> <<EMAIL>>
 * @author      <NAME> <<EMAIL>>
 *
 * @}
 */

#include <stdio.h>
#include <time.h>
#include <inttypes.h>

#include "vtimer.h"
#include "thread.h"
#include "msg.h"

#define MAXCOUNT 100
#define MAXDIFF 10000

#define MSG_QUEUE_SIZE 16

char timer_stack[THREAD_STACKSIZE_MAIN*4];

struct timer_msg {
    vtimer_t timer;
    timex_t interval;
    char *msg;
    timex_t start;
    int count;
};

timex_t now;

struct timer_msg timer_msgs[] = { { .interval = { .seconds = 0, .microseconds = 100000}, .msg = "T1", .start={0}, .count=0 },
                                  { .interval = { .seconds = 0, .microseconds = 200000}, .msg = "T2", .start={0}, .count=0 },
                                  { .interval = { .seconds = 0, .microseconds = 300000}, .msg = "T3", .start={0}, .count=0 },
                                  { .interval = { .seconds = 0, .microseconds = 500000}, .msg = "T4", .start={0}, .count=0 },
                                  { .interval = { .seconds = 0, .microseconds = 700000}, .msg = "T5", .start={0}, .count=0 },
                                  { .interval = { .seconds = 1, .microseconds = 100000}, .msg = "T6", .start={0}, .count=0 },
};

void *timer_thread(void *arg)
{
    (void) arg;
    printf("This is thread %" PRIkernel_pid "\n", thread_getpid());

    msg_t msgq[MSG_QUEUE_SIZE];
    msg_init_queue(msgq, MSG_QUEUE_SIZE);
<commit_msg>tests: fix clang missing field error<commit_after>/*
 * Copyright (C) 2013 INRIA
 * Copyright (C) 2014 <NAME>
 *
 * This file is subject to the terms and conditions of the GNU Lesser
 * General Public License v2.1. See the file LICENSE in the top level
 * directory for more details.
 */

/**
 * @ingroup tests
 * @{
 *
 * @file
 * @brief Thread test application
 *
 * @author      <NAME> <oliver.hahm@inria.fr>
 * @author      <NAME> <<EMAIL>.fu-berlin.de>
 * @author      <NAME> <<EMAIL>>
 *
 * @}
 */

#include <stdio.h>
#include <time.h>
#include <inttypes.h>

#include "vtimer.h"
#include "thread.h"
#include "msg.h"

#define MAXCOUNT 100
#define MAXDIFF 10000

#define MSG_QUEUE_SIZE 16

char timer_stack[THREAD_STACKSIZE_MAIN*4];

struct timer_msg {
    vtimer_t timer;
    timex_t interval;
    char *msg;
    timex_t start;
    int count;
};

timex_t now;

struct timer_msg timer_msgs[] = { { .interval = { .seconds = 0, .microseconds = 100000}, .msg = "T1", .start={0, 0}, .count=0 },
                                  { .interval = { .seconds = 0, .microseconds = 200000}, .msg = "T2", .start={0, 0}, .count=0 },
                                  { .interval = { .seconds = 0, .microseconds = 300000}, .msg = "T3", .start={0, 0}, .count=0 },
                                  { .interval = { .seconds = 0, .microseconds = 500000}, .msg = "T4", .start={0, 0}, .count=0 },
                                  { .interval = { .seconds = 0, .microseconds = 700000}, .msg = "T5", .start={0, 0}, .count=0 },
                                  { .interval = { .seconds = 1, .microseconds = 100000}, .msg = "T6", .start={0, 0}, .count=0 },
};

void *timer_thread(void *arg)
{
    (void) arg;
    printf("This is thread %" PRIkernel_pid "\n", thread_getpid());

    msg_t msgq[MSG_QUEUE_SIZE];
    msg_init_queue(msgq, MSG_QUEUE_SIZE);

{'fraction_non_alphanumeric': 0.16402997502081598, 'fraction_numerical': 0.0466278101582015, 'mean_word_length': 2.315547378104876, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 28, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3489869', 'n_tokens_mistral': 1384, 'n_tokens_neox': 1239, 'n_words': 337}