<commit_before>app.controller('ListodoTasksCtrl', function ($scope, $rootScope, $location, localStorageService, $http, $anchorScroll, $cordovaNetwork) {
    $anchorScroll();

    $rootScope.nav = 'tasks';

    $scope.goTask = function (list, task) {
        $location.path('/tasks/' + encodeURI(list.name) + '/' + encodeURI(task.name));
    };

    if ($cordovaNetwork.isOffline()) {
        $scope.lists = localStorageService.get('lists').concat(localStorageService.get('listsToPublish'));
    } else {
        $http.get('http://' + localStorageService.get('adress') + '/api/lists').success(function (data) {
            $scope.lists = localStorageService.get('listsToPublish').concat(data);
            localStorageService.get('lists') = data;
        }).error(function () {
            $scope.lists = localStorageService.get('lists').concat(localStorageService.get('listsToPublish'));
        });<commit_msg>Get lists from Local Storage before Server<commit_after>app.controller('ListodoTasksCtrl', function ($scope, $rootScope, $location, localStorageService, $http, $anchorScroll, $cordovaNetwork) {
    $anchorScroll();

    $rootScope.nav = 'tasks';

    $scope.goTask = function (list, task) {
        $location.path('/tasks/' + encodeURI(list.name) + '/' + encodeURI(task.name));
    };

    $scope.lists = localStorageService.get('lists').concat(localStorageService.get('listsToPublish'));
    if ($cordovaNetwork.isOnline()) {
        $http.get('http://' + localStorageService.get('adress') + '/api/lists').success(function (data) {
            $scope.lists = localStorageService.get('listsToPublish').concat(data);
            localStorageService.get('lists') = data;
        });
{'fraction_non_alphanumeric': 0.17386162034299232, 'fraction_numerical': 0.0, 'mean_word_length': 3.932944606413994, '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': '356764', 'n_tokens_mistral': 494, 'n_tokens_neox': 486, 'n_words': 72}