<commit_before>const CODE_RED = '#E46';
const CODE_YELLOW = '#EE6';
const CODE_GREEN = '#8E2';
const CODE_BLUE = '#6AE';
const CODE_PURPLE = '#A6E';
const CODE_GRAY = '#999';

function highlightJSCode(match) {
  var replaced = ['<span style="color:', '', ';">', match, '</span>'];

  if (!isNaN(parseInt(match))) {
    replaced[1] = CODE_PURPLE;
  }
  else if (/\/\//.test(match)) {
    replaced[1] = CODE_GRAY;
  }
  else if (/('.+'|".+")/.test(match)) {
    replaced[1] = CODE_YELLOW;
  }
  else if (/[!<>\&|+\-*/=]|if|new|else|case|break|switch|default|return/.test(match)) {
    replaced[1] = CODE_RED;
  }
  else {<commit_msg>Brighten colors for code highlighter script<commit_after>const CODE_RED = '#E58';
const CODE_YELLOW = '#EE8';
const CODE_GREEN = '#AE4';
const CODE_BLUE = '#6CE';
const CODE_PURPLE = '#C6E';
const CODE_GRAY = '#999';

function highlightJSCode(match) {
  var replaced = ['<span style="color:', '', ';">', match, '</span>'];

  if (!isNaN(parseInt(match))) {
    replaced[1] = CODE_PURPLE;
  }
  else if (/\/\//.test(match)) {
    replaced[1] = CODE_GRAY;
  }
  else if (/('.+'|".+")/.test(match)) {
    replaced[1] = CODE_YELLOW;
  }
  else if (/[!<>\&|+\-*/=]|if|new|else|case|break|switch|default|return/.test(match)) {
    replaced[1] = CODE_RED;
  }
  else {
{'fraction_non_alphanumeric': 0.23529411764705882, 'fraction_numerical': 0.02089783281733746, 'mean_word_length': 4.011627906976744, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3800329', 'n_tokens_mistral': 555, 'n_tokens_neox': 526, 'n_words': 97}