<commit_before>angular.module('history', [])
	.controller('HistoryController', function($scope, $ionicPopup, $ionicActionSheet, localStorage, FooseyService)
	{
        // some variables
        var loaded = 0;
        var gamesToLoad = 30;

        // create a pull-to-refresh function
        $scope.refresh = refresh;

        // initialize the page
        $scope.removing = false;
        $scope.refresh();

        // refresh page function
        function refresh()
        {
            // load from local storage
            $scope.dates = localStorage.getObject('history');

		    // get most recent games and group by the date
            $scope.loading = true;
            FooseyService.history(0, gamesToLoad)
            .then(function successCallback(result) 
            { 
                // get games from server
                $scope.games = result.data.games;
                loaded += result.data.games.length;

                // sort the games by date
                $scope.dates = groupByDate($scope.games);

                // store them to local storage
                localStorage.setObject('history', $scope.dates);
                $scope.error = false;
                
                done();
            }, function errorCallback(response)
            {
                $scope.error = true;
                done();
            });
        }
<commit_msg>No loading indicator in the nav bar on pull to refresh on history page<commit_after>angular.module('history', [])
	.controller('HistoryController', function($scope, $ionicPopup, $ionicActionSheet, localStorage, FooseyService)
	{
        // some variables
        var loaded = 0;
        var gamesToLoad = 30;

        // create a pull-to-refresh function
        $scope.refresh = refresh;

        // initialize the page
        $scope.removing = false;
        $scope.loading = true;
        $scope.refresh();

        // refresh page function
        function refresh()
        {
            // load from local storage
            $scope.dates = localStorage.getObject('history');

		    // get most recent games and group by the date
            FooseyService.history(0, gamesToLoad)
            .then(function successCallback(result) 
            { 
                // get games from server
                $scope.games = result.data.games;
                loaded += result.data.games.length;

                // sort the games by date
                $scope.dates = groupByDate($scope.games);

                // store them to local storage
                localStorage.setObject('history', $scope.dates);
                $scope.error = false;
                
                done();
            }, function errorCallback(response)
            {
                $scope.error = true;
                done();
            });
        }

{'fraction_non_alphanumeric': 0.09911504424778761, 'fraction_numerical': 0.002831858407079646, 'mean_word_length': 1.4746059544658494, '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': '6597779', 'n_tokens_mistral': 720, 'n_tokens_neox': 661, 'n_words': 179}