<commit_before>'use strict';

var LIMIT = 24,
    $q = require('q'),
    feeds_sql = require('./feeds.server.model'),
    users_sql = require('components/users/users.server.model'),
    users_feeds_sql = require('components/users/feeds/users.feeds.server.model');

function all(query) {
    return feeds_sql.all({
        where: query
    });
}

function findAndCountAll(query) {
    var operators = {
        limit: LIMIT,
        offset: LIMIT * query.page || 0,
        order: 'createdAt DESC',
        where: {
            l: query.l || 'us'
        },
        include: [{
            model: users_feeds_sql,
            attributes: ['userId'],
            include: [{
                model: users_sql,
                attributes: ['nickname', 'facebook']
            }]
        }]
    };

    if (query.input) {<commit_msg>dist: 1.15.7 --fix feeds order<commit_after>'use strict';

var LIMIT = 24,
    $q = require('q'),
    feeds_sql = require('./feeds.server.model'),
    users_sql = require('components/users/users.server.model'),
    users_feeds_sql = require('components/users/feeds/users.feeds.server.model');

function all(query) {
    return feeds_sql.all({
        where: query
    });
}

function findAndCountAll(query) {
    var operators = {
        limit: LIMIT,
        offset: LIMIT * query.page || 0,
        order: 'createdAt ASC',
        where: {
            l: query.l || 'us'
        },
        include: [{
            model: users_feeds_sql,
            attributes: ['userId'],
            include: [{
                model: users_sql,
                attributes: ['nickname', 'facebook']
            }]
        }]
    };

    if (query.input) {
{'fraction_non_alphanumeric': 0.14533492822966507, 'fraction_numerical': 0.005980861244019139, 'mean_word_length': 1.89948006932409, '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': '5315189', 'n_tokens_mistral': 520, 'n_tokens_neox': 505, 'n_words': 102}