<commit_before>window.mapSortMode = null;
window.countdown_id = null;
window.attempts = 0;

$(document).ready(function ()
{
  $.getJSON('data.json', function (data)
  {
    window.data = data;
    
    $.getJSON('maps.json', function (data)
    {
      window.maps = data;
      filter();
      document.location.hash = document.location.hash;
    });
  });
  
  $('#sort').selectmenu({ width: '200px', change: update });
  $('#events').change(update);
  $('#tips').change(tips);
  $('#old').change(update);
  $('#filterApply').button().click(filter);
  $('#filterClear').button().click(function ()
  {
    $('#filter').val('');
    filter();
  });
  
  $('#sort').val($.url().param('sort') ? $.url().param('sort') : 'rate-desc').selectmenu('refresh', true);
  $('#events').prop('checked', $.url().param('events') != undefined);
  $('#tips').prop('checked', $.url().param('tips') != undefined);
  $('#old').prop('checked', $.url().param('old') != undefined);
  $('#filter').val($.url().param('filter') ? $.url().param('filter') : '');

  $('#filter').addClass('ui-widget ui-corner-all');
  $('#filter').tooltip({
    position: { my: "left+10 bottom-10", at: "left top" },
    content: '<p>Open your Steam profile and copy the last part of the URL.</p><p>steamcommunity.com/id/<span style="font-weight: bold;">dubistkomisch</span></p><p>steamcommunity.com/profiles/<span style="font-weight: bold;">76561198030777165</span></p>'
  });
});

function filter()
{
  // reset retry
  if (window.countdown_id != null)
  {
    clearInterval(window.countdown_id);
    window.countdown_id = null;
  }
  window.attempts = 3;

  $('#filter').val($('#filter').val().trim());

  if ($('#filter').val() == '')
  {
    filter_status('success', '');<commit_msg>Added warning that private profiles won't work<commit_after>window.mapSortMode = null;
window.countdown_id = null;
window.attempts = 0;

$(document).ready(function ()
{
  $.getJSON('data.json', function (data)
  {
    window.data = data;
    
    $.getJSON('maps.json', function (data)
    {
      window.maps = data;
      filter();
      document.location.hash = document.location.hash;
    });
  });
  
  $('#sort').selectmenu({ width: '200px', change: update });
  $('#events').change(update);
  $('#tips').change(tips);
  $('#old').change(update);
  $('#filterApply').button().click(filter);
  $('#filterClear').button().click(function ()
  {
    $('#filter').val('');
    filter();
  });
  
  $('#sort').val($.url().param('sort') ? $.url().param('sort') : 'rate-desc').selectmenu('refresh', true);
  $('#events').prop('checked', $.url().param('events') != undefined);
  $('#tips').prop('checked', $.url().param('tips') != undefined);
  $('#old').prop('checked', $.url().param('old') != undefined);
  $('#filter').val($.url().param('filter') ? $.url().param('filter') : '');

  $('#filter').addClass('ui-widget ui-corner-all');
  $('#filter').tooltip({
    position: { my: "left+10 bottom-10", at: "left top" },
    content: '<p>Open your Steam profile and copy the last part of the URL.</p><p>steamcommunity.com/id/<span style="font-weight: bold;">dubistkomisch</span></p><p>steamcommunity.com/profiles/<span style="font-weight: bold;">76561198030777165</span></p><p style="color:red;font-style:italic;">Your profile must be public.</p>'
  });
});

function filter()
{
  // reset retry
  if (window.countdown_id != null)
  {
    clearInterval(window.countdown_id);
    window.countdown_id = null;
  }
  window.attempts = 3;

  $('#filter').val($('#filter').val().trim());

  if ($('#filter').val() == '')
  {
    filter_status('success', '');
{'fraction_non_alphanumeric': 0.25703146755778333, 'fraction_numerical': 0.014480646059593427, 'mean_word_length': 4.259150805270864, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '6087282', 'n_tokens_mistral': 1222, 'n_tokens_neox': 1195, 'n_words': 191}