<commit_before>var NodesController = function($scope, $http, $timeout) {
  $scope.nodes = [];

  $scope.fetch = function() {
    $http.get('/nodes.json').
      success(function(data, status, headers, config) {
        $scope.nodes = data;
      });
  };

  $scope.reload = function() {
    $scope.fetch();
    $timeout($scope.reload, 1000);
  };

  $scope.reload();
};<commit_msg>If the web server node dies clear the table of nodes<commit_after>var NodesController = function($scope, $http, $timeout) {
  $scope.nodes = [];

  $scope.fetch = function() {
    $http.get('/nodes.json').
      success(function(data, status, headers, config) {
        $scope.nodes = data;
      }).
      error(function(data, status, headers, config) {
        $scope.nodes = [];
      });
  };

  $scope.reload = function() {
    $scope.fetch();
    $timeout($scope.reload, 1000);
  };

  $scope.reload();
};
{'fraction_non_alphanumeric': 0.18834080717488788, 'fraction_numerical': 0.008968609865470852, 'mean_word_length': 2.9513274336283186, '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': '6661678', 'n_tokens_mistral': 297, 'n_tokens_neox': 282, 'n_words': 57}