<commit_before>/*
 * Copyright (C) 2015 <NAME> <<EMAIL>>
 *
 * 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       timer test application
 *
 * @author      <NAME> <<EMAIL>>
 *
 * @}
 */

#include <stdio.h>
#include "xtimer.h"
#include "periph_conf.h"

#define ITERATIONS 128
#define MAXSHIFT   8

unsigned min[MAXSHIFT];
unsigned max[MAXSHIFT];
unsigned avg[MAXSHIFT];
unsigned total[MAXSHIFT];

int main(void)
{
    puts("xtimer_shift_on_compare test application.\n");

    printf("trying %u iterations\n", ITERATIONS);

    uint32_t a, b;
    unsigned i = 0;

    for (int shift = 0; shift < MAXSHIFT; shift++) {
        min[shift] = (unsigned)0xffffffff;
        max[shift] = 0;
        total[shift] = 0;
        avg[shift] = 0;

        for (int j=0; j < ITERATIONS; j++) {
            i = 0;
            do {
                i++;<commit_msg>tests/xtimer_shift_on_compare: Add static to compilation-unit local variables<commit_after>/*
 * Copyright (C) 2015 <NAME> <<EMAIL>>
 *
 * 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       timer test application
 *
 * @author      <NAME> <<EMAIL>>
 *
 * @}
 */

#include <stdio.h>
#include "xtimer.h"
#include "periph_conf.h"

#define ITERATIONS 128
#define MAXSHIFT   8

static unsigned min[MAXSHIFT];
static unsigned max[MAXSHIFT];
static unsigned avg[MAXSHIFT];
static unsigned total[MAXSHIFT];

int main(void)
{
    puts("xtimer_shift_on_compare test application.\n");

    printf("trying %u iterations\n", ITERATIONS);

    uint32_t a, b;
    unsigned i = 0;

    for (int shift = 0; shift < MAXSHIFT; shift++) {
        min[shift] = (unsigned)0xffffffff;
        max[shift] = 0;
        total[shift] = 0;
        avg[shift] = 0;

        for (int j=0; j < ITERATIONS; j++) {
            i = 0;
            do {
                i++;
{'fraction_non_alphanumeric': 0.13268156424581007, 'fraction_numerical': 0.0186219739292365, 'mean_word_length': 2.611764705882353, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '1993185', 'n_tokens_mistral': 755, 'n_tokens_neox': 702, 'n_words': 219}