<commit_before><commit_msg>feat(nunjucks): adds a simple notempty filter for easier transformation to jsp<commit_after>'use strict';

/**
 * Requirements
 * @ignore
 */
const Filter = require('./Filter.js').Filter;


/**
 * @memberOf nunjucks.filter
 */
class NotEmptyFilter extends Filter
{
    /**
     * @param {nunjucks.Environment} environment
     * @param {String} mode
     */
    constructor(environment, mode)
    {
        super(environment);
    }


    /**
     * @inheritDoc
     */
    static get className()
    {
        return 'nunjucks.filter/NotEmptyFilter';
    }


    /**
     * @inheritDoc
     */
    get name()
    {
        return 'notempty';
    }


    /**
     * @param {*} value
     */
    execute()
    {
        const scope = this;
        return function (value)
        {
            return value;
        };
    }
}


/**
 * Exports
 * @ignore
 */
module.exports.NotEmptyFilter = NotEmptyFilter;

{'fraction_non_alphanumeric': 0.13504823151125403, 'fraction_numerical': 0.0, 'mean_word_length': 1.9278996865203761, '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': '963361', 'n_tokens_mistral': 291, 'n_tokens_neox': 281, 'n_words': 58}