<commit_before>'use strict';

(function() {
  angular.module('ncsaas')
    .controller('ResourceListController', ['resourcesService', ResourceListController]);

  function ResourceListController(resourcesService) {
    var vm = this;

    vm.list = {};

    // resource operations
    vm.stopResource = stopResource;
    vm.startResource = startResource;
    vm.restartResource = restartResource;
    vm.deleteResource = deleteResource;
    vm.isOperationAvailable = isOperationAvailable;

    // search
    vm.searchInput = '';
    vm.search = search;

    // pagination
    vm.changePageSize = changePageSize;
    vm.changePage = changePage;
    vm.getNumber = getNumber;
    vm.pageSizes = [1,5,10,15,20];
    vm.currentPageSize = resourcesService.pageSize;
    vm.pages = resourcesService.pages ? resourcesService.pages : 5;
    vm.currentPage = resourcesService.page;

    getResourceList();

    function getResourceList() {
      resourcesService.getResourcesList().then(function(response) {
        vm.pages = resourcesService.pages;
        vm.list = response;
      });
    }


    resourcesService.getResourcesList().then(function(response) {<commit_msg>Change pagination size (saas-166)<commit_after>'use strict';

(function() {
  angular.module('ncsaas')
    .controller('ResourceListController', ['resourcesService', ResourceListController]);

  function ResourceListController(resourcesService) {
    var vm = this;

    vm.list = {};

    // resource operations
    vm.stopResource = stopResource;
    vm.startResource = startResource;
    vm.restartResource = restartResource;
    vm.deleteResource = deleteResource;
    vm.isOperationAvailable = isOperationAvailable;

    // search
    vm.searchInput = '';
    vm.search = search;

    // pagination
    vm.changePageSize = changePageSize;
    vm.changePage = changePage;
    vm.getNumber = getNumber;
    vm.pageSizes = [5, 10, 20, 50];
    vm.currentPageSize = resourcesService.pageSize;
    vm.pages = resourcesService.pages ? resourcesService.pages : 5;
    vm.currentPage = resourcesService.page;

    getResourceList();

    function getResourceList() {
      resourcesService.getResourcesList().then(function(response) {
        vm.pages = resourcesService.pages;
        vm.list = response;
      });
    }


    resourcesService.getResourcesList().then(function(response) {
{'fraction_non_alphanumeric': 0.113143343258188, 'fraction_numerical': 0.008507018290089324, 'mean_word_length': 3.4885496183206106, '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': '4928', 'n_tokens_mistral': 675, 'n_tokens_neox': 644, 'n_words': 116}