<commit_before>/**
 * @file nest rules
 * @author nighca<<EMAIL>>
 * @spec http://www.w3.org/TR/html5/semantics.html#semantics
 */

/* this file is generated automatically, disable eslint here */
/* eslint-disable */

var define = require('./define');

var rules = {};

var getRule = function (element) {
    return rules[element.tagName.toLowerCase()];
};

var nodeInfo = function (element, categories) {
    categories = categories || getRule(element).getCategories();
    return element.tagName.toLowerCase() + ' ( ' + categories.join(' | ') + ' )';
};

var expectContext = function (expect, target, got) {
    return {
        expect: expect,
        got: got,
        target: target
    };
};

var expectContent = function (expect, target, got) {
    return {<commit_msg>do not show empty category list<commit_after>/**
 * @file nest rules
 * @author nighca<<EMAIL>>
 * @spec http://www.w3.org/TR/html5/semantics.html#semantics
 */

/* this file is generated automatically, disable eslint here */
/* eslint-disable */

var define = require('./define');

var rules = {};

var getRule = function (element) {
    return rules[element.tagName.toLowerCase()];
};

var nodeInfo = function (element, categories) {
    categories = categories || getRule(element).getCategories();
    return element.tagName.toLowerCase()
        + (
            categories.length
            ? ' ( ' + categories.join(' | ') + ' )'
            : ''
        );
};

var expectContext = function (expect, target, got) {
    return {
        expect: expect,
        got: got,
        target: target
    };
};

var expectContent = function (expect, target, got) {
    return {
{'fraction_non_alphanumeric': 0.1520290732889158, 'fraction_numerical': 0.0024227740763173833, 'mean_word_length': 2.9427207637231505, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1035135', 'n_tokens_mistral': 486, 'n_tokens_neox': 489, 'n_words': 124}