<commit_before>'use strict';

function update(){
    let timestamp = timestamp_to_date();
    document.getElementById('timestamp-current').value = timestamp['timestamp'];

    document.getElementById('date-display').innerHTML = time_format({
      'date': timestamp,
    });

    let target = document.getElementById('timestamp').value;
    document.getElementById('diff').innerHTML = time_diff({
      'target': target,
    });
    let diff = timestamp['timestamp'] - target;
    let diffs = {
      'days': 86400000,
      'weeks': 604800000,
      'years': 31556908800,
    };
    for(let id in diffs){
        document.getElementById('diff-' + id).innerHTML = core_number_format({
          'number': diff / diffs[id],
        });
    }
}

function update_date_inputs(date){
    for(let portion in date){
        core_html_modify({
          'id': portion,
          'properties': {
            'value': core_digits_min({
              'number': date[portion],
            }),
          },
        });
    }
}

function update_times(timestamp){
    document.getElementById('timestamp').value = timestamp;
    document.getElementById('timestamp-seconds').value = Math.floor(timestamp / 1000);

    update_date_inputs(timestamp_to_date({
      'timestamp': timestamp,
    }));
}<commit_msg>replaced some innerHTML with textContent<commit_after>'use strict';

function update(){
    let timestamp = timestamp_to_date();
    document.getElementById('timestamp-current').value = timestamp['timestamp'];

    document.getElementById('date-display').textContent = time_format({
      'date': timestamp,
    });

    let target = document.getElementById('timestamp').value;
    document.getElementById('diff').textContent = time_diff({
      'target': target,
    });
    let diff = timestamp['timestamp'] - target;
    let diffs = {
      'days': 86400000,
      'weeks': 604800000,
      'years': 31556908800,
    };
    for(let id in diffs){
        document.getElementById('diff-' + id).textContent = core_number_format({
          'number': diff / diffs[id],
        });
    }
}

function update_date_inputs(date){
    for(let portion in date){
        core_html_modify({
          'id': portion,
          'properties': {
            'value': core_digits_min({
              'number': date[portion],
            }),
          },
        });
    }
}

function update_times(timestamp){
    document.getElementById('timestamp').value = timestamp;
    document.getElementById('timestamp-seconds').value = Math.floor(timestamp / 1000);

    update_date_inputs(timestamp_to_date({
      'timestamp': timestamp,
    }));
}
{'fraction_non_alphanumeric': 0.14444019870080244, 'fraction_numerical': 0.02445548337791364, 'mean_word_length': 2.821897810218978, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3649262', 'n_tokens_mistral': 774, 'n_tokens_neox': 713, 'n_words': 136}