<commit_before>var updateCheckState = function(check) {
  var html = '';
  if (typeof check.isUp == 'undefined') {
    if (check.lastTested) {
      // recover from pause
      html += '<span class="label label-info">unknown</span>';
    } else {
      // never tested
      html += '<span class="label label-danger">down</span> <span class="label label-warning">new</span>';
    }
  } else {
    var status = {};
    if (check.isPaused) {
      // paused
      status.label = 'info';
      status.text = 'paused';
      status.date = check.lastTested;
    } else if (check.isUp) {
      // up
      status.label = 'success';
      status.text = 'up';
      status.date = check.lastChanged;
    } else {
      // down
      status.label = 'danger';
<<<<<<< HEAD:app/dashboard/public/javascripts/checkState.js
      status.color = 'red';
=======
>>>>>>> phanan/master:app/dashboard/src/js/checkState.js
      status.text = 'down';
      status.date = check.lastChanged;<commit_msg>Fix phanan conflict remnants <commit_after>var updateCheckState = function(check) {
  var html = '';
  if (typeof check.isUp == 'undefined') {
    if (check.lastTested) {
      // recover from pause
      html += '<span class="label label-info">unknown</span>';
    } else {
      // never tested
      html += '<span class="label label-danger">down</span> <span class="label label-warning">new</span>';
    }
  } else {
    var status = {};
    if (check.isPaused) {
      // paused
      status.label = 'info';
      status.text = 'paused';
      status.date = check.lastTested;
    } else if (check.isUp) {
      // up
      status.label = 'success';
      status.text = 'up';
      status.date = check.lastChanged;
    } else {
      // down
      status.label = 'danger';
      status.text = 'down';
      status.date = check.lastChanged;
{'fraction_non_alphanumeric': 0.1662095447065277, 'fraction_numerical': 0.0, 'mean_word_length': 2.3840445269016697, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 22, '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': '1988782', 'n_tokens_mistral': 580, 'n_tokens_neox': 566, 'n_words': 123}