<commit_before>'use strict';
define(['AnguRaptor'], function(AnguRaptor) {

    AnguRaptor.controller('NotificationListCtrl', ['$scope', '$location', function($scope, $location) {

        var notificationList = {};

        var itemRef = function(notification) {
          switch (notification.type) {
            case 'mention':
            case 'like':
            case 'rerawr':
              return '/rawrs/' + '10012310'; //notification.status_id;
            case 'follow':
            case 'unfollow':
              return '/profile/' + notification.user.username;
            default:
              break;
          }
        };

        notificationList.notificationPressed = function(notification) {
            var path = itemRef(notification);
            if (path) {
              $location.path(itemRef(notification));
            }
        };

        $scope.notificationList = notificationList;

    }]);

});<commit_msg>Minor bug fix in routing<commit_after>'use strict';
define(['AnguRaptor'], function(AnguRaptor) {

    AnguRaptor.controller('NotificationListCtrl', ['$scope', '$location', function($scope, $location) {

        var notificationList = {};

        var itemRef = function(notification) {
          switch (notification.type) {
            case 'mention':
            case 'like':
            case 'rerawr':
              return '/rawrs/' + '10012310'; //notification.status_id;
            case 'follow':
            case 'unfollow':
              return '/profile/' + notification.user.username;
            default:
              break;
          }
        };

        notificationList.notificationPressed = function(notification) {
            var path = itemRef(notification);
            if (path) {
              $location.url(itemRef(notification));
            }
        };

        $scope.notificationList = notificationList;

    }]);

});
{'fraction_non_alphanumeric': 0.12725344644750794, 'fraction_numerical': 0.008483563096500531, 'mean_word_length': 1.880916030534351, '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': '245956', 'n_tokens_mistral': 495, 'n_tokens_neox': 471, 'n_words': 94}