<commit_before>/**
 * @file
 * Default rules available in the module loader.
 */

'use strict';

module.exports = {
    /**
     * File is a javascript file.
     *
     * @param files array
     *   Array of files on which to apply the rule.
     * @return array
     *   Array of files that pass the rule.
     */
    isJavascript: function( files ) {
        return files.filter( function( file ) {
            return file.slice( -3 ) === '.js';
        });
    },

    /**
     * File is not part of a .git folder.
     *
     * @param files array
     *   Array of files on which to apply the rule.
     * @return array
     *   Array of files that pass the rule.
     */
    isNotGit: function( files ) {
        return files.filter( function( file ) {
            return !/\.git\//.test( file );
        });
    },

    /**
     * Ignore node_modules folders.
     *
     * @param files array
     *   Array of files on which to apply the rule.
     * @return array
     *   Array of files that pass the rule.
     */
    isNotNodeModule: function( files ) {
        return files.filter( function( file ) {
            return !/node_modules\//.test( file );
        });
    }
};

<commit_msg>Prettier way for the rule<commit_after>/**
 * @file
 * Default rules available in the module loader.
 */

'use strict';

module.exports = {
    /**
     * File is a javascript file.
     *
     * @param files array
     *   Array of files on which to apply the rule.
     * @return array
     *   Array of files that pass the rule.
     */
    isJavascript: function( files ) {
        return files.filter( function( file ) {
            return /\.js$/.test( file );
        });
    },

    /**
     * File is not part of a .git folder.
     *
     * @param files array
     *   Array of files on which to apply the rule.
     * @return array
     *   Array of files that pass the rule.
     */
    isNotGit: function( files ) {
        return files.filter( function( file ) {
            return !/\.git\//.test( file );
        });
    },

    /**
     * Ignore node_modules folders.
     *
     * @param files array
     *   Array of files on which to apply the rule.
     * @return array
     *   Array of files that pass the rule.
     */
    isNotNodeModule: function( files ) {
        return files.filter( function( file ) {
            return !/node_modules\//.test( file );
        });
    }
};


{'fraction_non_alphanumeric': 0.11647254575707154, 'fraction_numerical': 0.00041597337770382697, 'mean_word_length': 1.616974972796518, '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': '2166180', 'n_tokens_mistral': 718, 'n_tokens_neox': 701, 'n_words': 247}