<commit_before>(function() {
    'use strict';

    angular
        .module('webApp')
        .controller('PoliciesCtrl', PoliciesCtrl);

    PoliciesCtrl.$inject = ['PolicyFactory'];

    function PoliciesCtrl(PolicyFactory) {
        /*jshint validthis: true*/
       var vm = this;

       vm.policiesData = {};
       vm.policiesData.list = [];
vm.createPolicy = createPolicy();
       init();

        /////////////////////////////////

        function init() {
          getPolicies();
        };

        function getPolicies() {
            var policiesList = PolicyFactory.GetAllpolicies();

            policiesList.then(function (result) {
                console.log('--> Getting policies');
                console.log('> Getting list of policies');
                console.log(result);
                vm.policiesData.list = result;
            });
        };


       function createPolicy(){


       }

    };
})();<commit_msg>refactor(policy controller): Remove unused function<commit_after>(function () {
  'use strict';

  angular
    .module('webApp')
    .controller('PoliciesCtrl', PoliciesCtrl);

  PoliciesCtrl.$inject = ['PolicyFactory'];

  function PoliciesCtrl(PolicyFactory) {
    /*jshint validthis: true*/
    var vm = this;

    vm.policiesData = {};
    vm.policiesData.list = [];
    init();

    /////////////////////////////////

    function init() {
      getPolicies();
    };

    function getPolicies() {
      var policiesList = PolicyFactory.GetAllpolicies();

      policiesList.then(function (result) {
        console.log('--> Getting policies');
        console.log('> Getting list of policies');
        console.log(result);
        vm.policiesData.list = result;
      });
    };

  };
})();
{'fraction_non_alphanumeric': 0.17221584385763491, 'fraction_numerical': 0.0, 'mean_word_length': 1.890547263681592, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6069407', 'n_tokens_mistral': 477, 'n_tokens_neox': 472, 'n_words': 90}