<commit_before>

module.exports = function (context) {
    return {
        ExpressionStatement(node) {
            const expression = node.expression || {};
            const left = expression.left || {};
            const right = expression.right || {};
            const operator = expression.operator;

            const compareWithMinusOne = right.operator === '-' && right.argument.value === 1;
            const lessThanZero = operator === '<' && right.value === 0;<commit_msg>prefer-includes: Check BinaryExpression instead of ExpressionStatement<commit_after>

module.exports = function (context) {
    return {
        BinaryExpression(node) {
            const left = node.left || {};
            const right = node.right || {};
            const operator = node.operator;

            const compareWithMinusOne = right.operator === '-' && right.argument.value === 1;
            const lessThanZero = operator === '<' && right.value === 0;
{'fraction_non_alphanumeric': 0.1336842105263158, 'fraction_numerical': 0.004210526315789474, 'mean_word_length': 2.372340425531915, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2240209', 'n_tokens_mistral': 234, 'n_tokens_neox': 224, 'n_words': 57}