<commit_before>var source = new EventSource('/export/updates');

source.onopen = function() {
  document.querySelectorAll('.fusiontable').forEach(function($table) {
    $table.classList.add('fusiontable--loading');
  });
};

source.addEventListener(
  'message',
  function(event) {
    var data = JSON.parse(event.data);

    if (!data) {
      return;
    }

    var $listEntry = document.querySelector(
      '.fusiontable[data-id="' + data.table.id + '"]'
    );

    $listEntry.classList.remove('fusiontable--loading');
    $listEntry.classList.add('fusiontable--success');

    var type =
      data.driveFile.mimeType === 'application/vnd.google-apps.spreadsheet'
        ? 'Spreadsheet'
        : 'CSV';
    var driveLink =
      '&emsp;<a href="https://drive.google.com/open?id=' +
      data.driveFile.id +
      '" title="Open ' +
      data.driveFile.name +
      ' ' +
      type +
      '" target="_blank"><small>Open ' +
      type +
      '</small></a>';
    var visualizerLink =
      '&emsp;<a href="/visualizer/#file=' +
      data.driveFile.id +
      '" title="Open ' +
      data.driveFile.name +
      ' visualization" target="_blank"><small>Open Visualization</small></a>';

    $listEntry.innerHTML += driveLink+ ', ' + visualizerLink;
  },<commit_msg>style(server): fix whitespace<commit_after>var source = new EventSource('/export/updates');

source.onopen = function() {
  document.querySelectorAll('.fusiontable').forEach(function($table) {
    $table.classList.add('fusiontable--loading');
  });
};

source.addEventListener(
  'message',
  function(event) {
    var data = JSON.parse(event.data);

    if (!data) {
      return;
    }

    var $listEntry = document.querySelector(
      '.fusiontable[data-id="' + data.table.id + '"]'
    );

    $listEntry.classList.remove('fusiontable--loading');
    $listEntry.classList.add('fusiontable--success');

    var type =
      data.driveFile.mimeType === 'application/vnd.google-apps.spreadsheet'
        ? 'Spreadsheet'
        : 'CSV';
    var driveLink =
      '&emsp;<a href="https://drive.google.com/open?id=' +
      data.driveFile.id +
      '" title="Open ' +
      data.driveFile.name +
      ' ' +
      type +
      '" target="_blank"><small>Open ' +
      type +
      '</small></a>';
    var visualizerLink =
      '&emsp;<a href="/visualizer/#file=' +
      data.driveFile.id +
      '" title="Open ' +
      data.driveFile.name +
      ' visualization" target="_blank"><small>Open Visualization</small></a>';

    $listEntry.innerHTML += driveLink + ', ' + visualizerLink;
  },
{'fraction_non_alphanumeric': 0.1793076623881758, 'fraction_numerical': 0.0, 'mean_word_length': 2.8160237388724036, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 2, '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': '2230357', 'n_tokens_mistral': 829, 'n_tokens_neox': 804, 'n_words': 110}