<commit_before>'use strict';

function decisecond(){
    time = core_round({
      'decimals': 1,
      'number': time - .1,
    });

    core_elements['time'].innerHTML = time;

    if(time <= 0){
        core_interval_pause_all();
        document.getElementById('text').readOnly = true;
    }
}

function enter(){
    if(core_intervals['interval']['paused']){
        start();
    }

    let targetelement = document.getElementById('target');
    let textelement = document.getElementById('text');
    if(textelement.value !== targetelement.innerHTML){
        return;
    }

    audio_start({
      'id': 'boop',
    });

    let element = document.getElementById('score');
    element.innerHTML = Number.parseInt(
      element.innerHTML,
      10
    ) + 1;
    targetelement.innerHTML = core_random_string({
      'characters': letters,
      'length': core_storage_data['length'],
    });
    textelement.value = '';

    set_time_remaining(time_remaining - core_storage_data['time-decrease']);
}

function set_time_remaining(new_time_remaining){
    time_remaining = new_time_remaining;
    time = time_remaining;
    document.getElementById('time').innerHTML = core_round({
      'decimals': 1,
      'number': time_remaining,
    });
}

function start(){
    set_time_remaining(core_storage_data['time-max']);

    document.getElementById('score').innerHTML = 0;
    document.getElementById('target').innerHTML = core_random_string({
      'characters': letters,
      'length': core_storage_data['length'],
    });
    let element = document.getElementById('text');
    element.value = '';
    element.readOnly = false;
    element.focus();

    core_interval_modify({
      'id': 'interval',
      'interval': 100,<commit_msg>switched another getElementById to core_elements<commit_after>'use strict';

function decisecond(){
    time = core_round({
      'decimals': 1,
      'number': time - .1,
    });

    core_elements['time'].innerHTML = time;

    if(time <= 0){
        core_interval_pause_all();
        document.getElementById('text').readOnly = true;
    }
}

function enter(){
    if(core_intervals['interval']['paused']){
        start();
    }

    let targetelement = document.getElementById('target');
    let textelement = document.getElementById('text');
    if(textelement.value !== targetelement.innerHTML){
        return;
    }

    audio_start({
      'id': 'boop',
    });

    let element = document.getElementById('score');
    element.innerHTML = Number.parseInt(
      element.innerHTML,
      10
    ) + 1;
    targetelement.innerHTML = core_random_string({
      'characters': letters,
      'length': core_storage_data['length'],
    });
    textelement.value = '';

    set_time_remaining(time_remaining - core_storage_data['time-decrease']);
}

function set_time_remaining(new_time_remaining){
    time_remaining = new_time_remaining;
    time = time_remaining;
    core_elements['time'].innerHTML = core_round({
      'decimals': 1,
      'number': time_remaining,
    });
}

function start(){
    set_time_remaining(core_storage_data['time-max']);

    document.getElementById('score').innerHTML = 0;
    document.getElementById('target').innerHTML = core_random_string({
      'characters': letters,
      'length': core_storage_data['length'],
    });
    let element = document.getElementById('text');
    element.value = '';
    element.readOnly = false;
    element.focus();

    core_interval_modify({
      'id': 'interval',
      'interval': 100,
{'fraction_non_alphanumeric': 0.1453040251213246, 'fraction_numerical': 0.006280331144733086, 'mean_word_length': 3.325925925925926, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3452688', 'n_tokens_mistral': 1062, 'n_tokens_neox': 1021, 'n_words': 175}