<commit_before>'use strict';

/**
 * @ngdoc function
 * @name deadpeoplesubjecttochange.controller:PublisherCtrl
 * @description
 * # PublisherCtrl
 * Controller of the deadpeople
 */
angular.module('deadpeople')
    .controller('PublishersCtrl', ['$scope', '$state', function ($scope, $state) {
        $scope.histNames = '';
        $scope.pname = '';
        $scope.imgurl = '';
        $scope.serieses = [];
        $scope.universes = [];

        var pubSetup = function(){
            console.log($stateParams.name);

            DataService.search($stateParams.name, 'series', function (response) {
                            console.log('set response to '+response);
                            $scope.pname = response[0].p_name;
                            $scope.imgurl = response[0].Img_URL;
                            $scope.histName = response[0].H_name;
                        });

            
        }

        $scope.$on('$viewContentLoaded', function () {
                pubSetup();
            });
        
        
    }]);<commit_msg>now it should be hooked up<commit_after>'use strict';

/**
 * @ngdoc function
 * @name deadpeoplesubjecttochange.controller:PublisherCtrl
 * @description
 * # PublisherCtrl
 * Controller of the deadpeople
 */
angular.module('deadpeople')
    .controller('PublishersCtrl', ['$scope', '$state', function ($scope, $state) {
        $scope.histNames = '';
        $scope.pname = '';
        $scope.imgurl = '';
        $scope.serieses = [];
        $scope.universes = [];

        var pubSetup = function(){
            console.log($stateParams.name);

            DataService.search($stateParams.name, 'series', function (response) {
                            console.log('set response to '+response);
                            $scope.pname = response[0].p_name;
                            $scope.imgurl = response[0].Img_URL;
                            $scope.histName = response[0].H_name;
                        });
                        
            DataService.search($stateParams.name, 'byPub', function(response){
                $scope.serieses = response.serieses;
                $scope.universes = response.universes;
            });

            
        }

        $scope.$on('$viewContentLoaded', function () {
                pubSetup();
            });
        
        
    }]);
{'fraction_non_alphanumeric': 0.13807708598051674, 'fraction_numerical': 0.0025412960609911056, 'mean_word_length': 1.6273637374860956, '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': '3807435', 'n_tokens_mistral': 629, 'n_tokens_neox': 608, 'n_words': 102}