<commit_before>var wallController = app.controller('wallController', ['$scope', '$http', '$filter', 'Auth', 'Toast', 'loadMessages', function ($scope, $http, $filter, Auth, Toast, loadMessages) {
  scrollToTheTop();

  $scope.currentPlayer = Auth.info();
  $scope.message = {message: ''};
  $scope.messages = loadMessages;

  /**
   * i should have handled the socket connection initiation
   * via a promise --- while trying to do that, i ran in to some problems
   */<commit_msg>refresh age on trash<commit_after>var wallController = app.controller('wallController', ['$scope', '$http', '$filter', '$interval', 'Auth', 'Toast', 'loadMessages', function ($scope, $http, $filter, $interval, Auth, Toast, loadMessages) {
  scrollToTheTop();

  $scope.currentPlayer = Auth.info();
  $scope.message = {message: ''};
  $scope.messages = loadMessages;

  // refresh trash age every minute
  $interval(function () {
    angular.forEach($scope.messages, function (value, key) {
      $scope.messages[key].age = moment(value.wall_timestamp).fromNow();
    });
  }, 60000);

  /**
   * i should have handled the socket connection initiation
   * via a promise --- while trying to do that, i ran in to some problems
   */
{'fraction_non_alphanumeric': 0.16019818331957061, 'fraction_numerical': 0.004128819157720892, 'mean_word_length': 4.3392070484581495, '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': '5612080', 'n_tokens_mistral': 357, 'n_tokens_neox': 343, 'n_words': 108}