<commit_before>'use strict';

define(['app'], function(app) {
    app.factory('Session', [
        '$resource',
        function($resource) {
            return $resource('/api/session/');
        }
    ]);
    app.controller('LogOutCtrl', [
        '$scope',
        '$location',
        'Auth',
        function($scope, $location, Auth) {
            $scope.logout = function() {
                Auth.logout()
                    .then(function() {
                        $location.path('/login');
                    });
            };
        }
    ]);
});<commit_msg>added http reference<commit_after>'use strict';

define(['app'], function(app) {
    app.factory('Session', [
        '$http',
        '$resource',
        function($http, $resource) {
            return $resource('/api/session/');
        }
    ]);
    app.controller('LogOutCtrl', [
        '$scope',
        '$location',
        'Auth',
        function($scope, $location, Auth) {
            $scope.logout = function() {
                Auth.logout()
                    .then(function() {
                        $location.path('/login');
                    });
            };
        }
    ]);
});
{'fraction_non_alphanumeric': 0.1750212404418012, 'fraction_numerical': 0.0, 'mean_word_length': 1.3702213279678068, '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': '6934626', 'n_tokens_mistral': 313, 'n_tokens_neox': 304, 'n_words': 46}