<commit_before>/*global angular*/
(function (app) {
    /**
    * @ngdoc controller
    * @name post.controller:PostMainController
    *
    * @description
    * # post main controller
    *
    * The post main controller
    *
    */
    app.controller('PostMainController', ["$state", function ($state) {
        $state.go("post.list");
    }]);
    /**
    * @ngdoc controller
    * @name post.controller:PostListController
    *
    * @description
    * # post list controller
    *
    * The post list controller
    *
    */
    app.controller('PostListController', ["PostManager", function (PostManager) {
        "use strict";
        var scope = this;
        scope.posts = [];

        /**
        * @ngdoc function
        * @name post.controller:PostMainController#getPosts
        * @methodOf post.controller:PostMainController
        * @description
        * fetch posts from the API.
        *
        * @return {Promise<Post[]>} posts Array of posts
        */
        scope.getPosts = function () {
            return PostManager.getPosts().then(function (posts) {
                scope.posts = posts;
            });
        };
    }]);
}(angular.module('post')));<commit_msg>Fix doc fo post list controller<commit_after>/*global angular*/
(function (app) {
    /**
    * @ngdoc controller
    * @name post.controller:PostMainController
    *
    * @description
    * # post main controller
    *
    * The post main controller
    *
    */
    app.controller('PostMainController', ["$state", function ($state) {
        $state.go("post.list");
    }]);
    /**
    * @ngdoc controller
    * @name post.controller:PostListController
    *
    * @description
    * # post list controller
    *
    * The post list controller
    *
    */
    app.controller('PostListController', ["PostManager", function (PostManager) {
        "use strict";
        var scope = this;
        scope.posts = [];

        /**
        * @ngdoc function
        * @name post.controller:PostListController#getPosts
        * @methodOf post.controller:PostListController
        * @description
        * fetch posts from the API.
        *
        * @return {Promise<Post[]>} posts Array of posts
        */
        scope.getPosts = function () {
            return PostManager.getPosts().then(function (posts) {
                scope.posts = posts;
            });
        };
    }]);
}(angular.module('post')));
{'fraction_non_alphanumeric': 0.13372093023255813, 'fraction_numerical': 0.0, 'mean_word_length': 2.034005037783375, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7125529', 'n_tokens_mistral': 668, 'n_tokens_neox': 657, 'n_words': 142}