<commit_before>angular.module('magna-app')

.controller('NotificationCtrl', ['$scope', '$websocket', 'magnaConfig', 'ProjectService',
  function($scope, $websocket, magnaConfig, ProjectService) {
    $scope.notifications = [];

    var appendMessage = function(type, msg) {
      $scope.$apply(function() {
        if(type === 'success') {
          angular.forEach($scope.notifications, function(notification) {
            notification.close(1000);
          });
        }
        $scope.notifications.push({
          type: type,
          msg: msg
        });<commit_msg>Close every notification after 0.5s when a now notification is added<commit_after>angular.module('magna-app')

.controller('NotificationCtrl', ['$scope', '$websocket', 'magnaConfig', 'ProjectService',
  function($scope, $websocket, magnaConfig, ProjectService) {
    $scope.notifications = [];

    var appendMessage = function(type, msg) {
      $scope.$apply(function() {
        angular.forEach($scope.notifications, function(notification) {
          notification.close(500);
        });
        $scope.notifications.push({
          type: type,
          msg: msg
        });
{'fraction_non_alphanumeric': 0.14891774891774892, 'fraction_numerical': 0.007792207792207792, 'mean_word_length': 3.0848056537102475, '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': '2643141', 'n_tokens_mistral': 325, 'n_tokens_neox': 312, 'n_words': 60}