<commit_before>(function(g) {
  'use strict'

  var d = g.document;
  var query = d.querySelector('#query');
  var html = d.querySelector('#submit');
  var raw = d.querySelector('#submit_raw');

  function encodeQuery(s) {
    if (s.indexOf('%') !== -1) {
      s = s.replace(/%/g, '%25');
    }
    s = g.encodeURIComponent(s);
    return s
  }

  function queryHTML() {
    var s = encodeQuery(query.value);
    g.location.href += s + "?htmltable";
  }
  function queryLTSV() {
    var s = encodeQuery(query.value);
    g.location.href += s;
  }

  html.addEventListener('click', function(ev) {
    ev.preventDefault();
    queryHTML();
  });
  raw.addEventListener('click', function(ev) {
    ev.preventDefault();<commit_msg>db: percent (%) is encoded twice<commit_after>(function(g) {
  'use strict'

  var d = g.document;
  var query = d.querySelector('#query');
  var html = d.querySelector('#submit');
  var raw = d.querySelector('#submit_raw');

  function encodeQuery(s) {
    s = g.encodeURIComponent(s);
    return s
  }

  function queryHTML() {
    var s = encodeQuery(query.value);
    g.location.href += s + "?htmltable";
  }
  function queryLTSV() {
    var s = encodeQuery(query.value);
    g.location.href += s;
  }

  html.addEventListener('click', function(ev) {
    ev.preventDefault();
    queryHTML();
  });
  raw.addEventListener('click', function(ev) {
    ev.preventDefault();
{'fraction_non_alphanumeric': 0.17403708987161198, 'fraction_numerical': 0.0021398002853067048, 'mean_word_length': 3.316923076923077, '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': '6858500', 'n_tokens_mistral': 466, 'n_tokens_neox': 469, 'n_words': 95}