<commit_before>/*global define*/
define(['lodash'], function(_) {
    'use strict';
    var RequestService = function(ClusterService) {
        var Service = function() {
            this.restangular = ClusterService;
        };
        Service.prototype = _.extend(Service.prototype, {
            getList: function() {
                return this.restangular.cluster().all('request').getList().then(function(requests) {
                    return requests;
                });
            },
            get: function(id) {
                return this.restangular.cluster().one('request', id).get().then(function(request) {
                    return request[0];
                });
            },
            getComplete: function() {
                return this.restangular.cluster().customGETLIST('request', {
                    state: 'complete'
                }).then(function(requests) {
                    return requests;<commit_msg>Set page_size on request api<commit_after>/*global define*/
define(['lodash'], function(_) {
    'use strict';
    var pageSize = 32;
    var RequestService = function(ClusterService) {
        var Service = function() {
            this.restangular = ClusterService;
        };
        Service.prototype = _.extend(Service.prototype, {
            getList: function() {
                /* jshint camelcase: false */
                return this.restangular.cluster().customGETLIST('request', {
                    page_size: pageSize
                }).then(function(requests) {
                    return requests;
                });
            },
            get: function(id) {
                return this.restangular.cluster().one('request', id).get().then(function(request) {
                    return request[0];
                });
            },
            getComplete: function() {
                /* jshint camelcase: false */
                return this.restangular.cluster().customGETLIST('request', {
                    state: 'complete',
                    page_size: pageSize
                }).then(function(requests) {
                    return requests;
{'fraction_non_alphanumeric': 0.12099811676082863, 'fraction_numerical': 0.0018832391713747645, 'mean_word_length': 1.5479616306954436, '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': '7574162', 'n_tokens_mistral': 513, 'n_tokens_neox': 478, 'n_words': 93}