<commit_before>angular.module('characterViewer.navigation', [
    'ngMaterial',
    'ngNewRouter',
    'characterViewer.character.service'])
    .controller('NavigationController', ['$router', '$mdSidenav', 'CharacterService', NavigationController]);

function NavigationController($router, $mdSidenav, CharacterService) {
    var ctrl = this;

    ctrl.characters = [{name: 'TestA'}, {name:'TestB'}];
    CharacterService.getAll().then(function(response) {
        ctrl.characters = response.data;
    });

    ctrl.navigateTo = function(character) {
        $router.parent.navigate('/characters/' + character.id);
        $mdSidenav('left').close();
    };
}<commit_msg>remove dummy data<commit_after>angular.module('characterViewer.navigation', [
    'ngMaterial',
    'ngNewRouter',
    'characterViewer.character.service'])
    .controller('NavigationController', ['$router', '$mdSidenav', 'CharacterService', NavigationController]);

function NavigationController($router, $mdSidenav, CharacterService) {
    var ctrl = this;

    ctrl.characters = [];
    CharacterService.getAll().then(function(response) {
        ctrl.characters = response.data;
    });

    ctrl.navigateTo = function(character) {
        $router.parent.navigate('/characters/' + character.id);
        $mdSidenav('left').close();
    };
}
{'fraction_non_alphanumeric': 0.16021260440394836, 'fraction_numerical': 0.0, 'mean_word_length': 4.336032388663968, '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': '4825593', 'n_tokens_mistral': 380, 'n_tokens_neox': 370, 'n_words': 55}