<commit_before>$ = sel => document.getElementById(sel);
function getNumbers() {
  return [].slice
    .call(document.querySelectorAll('[name="numbers[]"]:valid'))
    .map(op => op.value)
    .filter(op => !!op);
}
function serialize(token) {
  let obj = {
    numbers: getNumbers(),
    gametype: document.querySelector('[name="gametype"]:checked').id,
    recaptcha: token
  };
  console.log(obj);
  return obj;
}
function hideModal() {
  $("modal").className = "";
  $("modal").parentNode.style.display = "none";
}
function showModal(className) {
  if (className) {
    $("modal").className = className;
  }
  $("modal").parentNode.style.display = "block";
}
function updateModal(html, type) {
  $("modal").innerHTML = html;
  showModal(type);
}
function submit(token) {
  const form = serialize(token);
  let data = [];
  for (var key in form) {
    data.push(key + "=" + encodeURIComponent(form[key]));
  }
  const formdata = data.join("&");
<commit_msg>De-console form obj.<commit_after>$ = sel => document.getElementById(sel);
function getNumbers() {
  return [].slice
    .call(document.querySelectorAll('[name="numbers[]"]:valid'))
    .map(op => op.value)
    .filter(op => !!op);
}
function serialize(token) {
  let obj = {
    numbers: getNumbers(),
    gametype: document.querySelector('[name="gametype"]:checked').id,
    recaptcha: token
  };
  // console.log(obj);
  return obj;
}
function hideModal() {
  $("modal").className = "";
  $("modal").parentNode.style.display = "none";
}
function showModal(className) {
  if (className) {
    $("modal").className = className;
  }
  $("modal").parentNode.style.display = "block";
}
function updateModal(html, type) {
  $("modal").innerHTML = html;
  showModal(type);
}
function submit(token) {
  const form = serialize(token);
  let data = [];
  for (var key in form) {
    data.push(key + "=" + encodeURIComponent(form[key]));
  }
  const formdata = data.join("&");

{'fraction_non_alphanumeric': 0.1950207468879668, 'fraction_numerical': 0.0, 'mean_word_length': 4.157754010695188, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5651365', 'n_tokens_mistral': 642, 'n_tokens_neox': 643, 'n_words': 124}