<commit_before>let keys = require('lodash/object/keys');
let isArray = require('lodash/lang/isArray');
/**
 * Build sort infotmation.
 * @param  {object} sortConf - The sort configuration.
 * @return {object} - The builded sort configuration.
 */
function _buildOrderAndSort(sortConf){
    return {
        sortFieldName: sortConf.sortBy,
        sortDesc: !sortConf.sortAsc
    };
}


/**
 * Build the pagination configuration given the options.<commit_msg>[Load action] sortDesc à false par defaut (si sortAsc undefined)<commit_after>let keys = require('lodash/object/keys');
let isArray = require('lodash/lang/isArray');
/**
 * Build sort infotmation.
 * @param  {object} sortConf - The sort configuration.
 * @return {object} - The builded sort configuration.
 */
function _buildOrderAndSort(sortConf){
    return {
        sortFieldName: sortConf.sortBy,
        sortDesc: sortConf.sortAsc===undefined?false:!sortConf.sortAsc
    };
}


/**
 * Build the pagination configuration given the options.
{'fraction_non_alphanumeric': 0.1217564870259481, 'fraction_numerical': 0.0, 'mean_word_length': 3.990049751243781, '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': '7225911', 'n_tokens_mistral': 302, 'n_tokens_neox': 291, 'n_words': 78}