<commit_before><snippet>
    <content><![CDATA[a.state.add({
    id: '${1:id}',
    parent: '${2:parentid}',
    hash: '${3:hash}',
    title: '${4:title}',
    entry: '${5:#container}',
    type: '${6:replace}',
    async: false,
    include: {
        css: '${7:resources/css/}',
        js: '${8:resources/js/}',
        html: '${9:resources/html/}',
        translate: '${10:resources/tr/}',
        partials: {
            ${11:product}: '${12:resources/partials/}'
        }
    },
    data: {
        ${13:content}: {
            url: '${14:url}',
            options: ${15:\{\}}
        }
    },
    acl: {
        minimum: '${16:user}',
        maximum: '${17:administrator}',
        allowed: ['${18:user}', '${19:administrator}'],
        refused: ['${20:leader}']
    },
    error : {
        // Load 'state-400' which show an error bad request
        _400: 'state-400',
        _401: function() {
            var hash = a.hash.getHash();
            // TODO: store hash somewhere to go back
            // To this page when login is done
            a.route.go('/account/login');
        },
        // Load 'state-403' which show an error forbidden
        _403: 'state-403',
        // Load 'state-404' which show an error not found
        _404: 'state-404',
        // Load 'state-500' which show an error internal server error
        _5xx: 'state-500'
    },
    bind: {
        '${21:a} | ${22:click}': function(e) {
            e.preventDefault();
            var el = e.target;
        }
    },
    bindGlobal: {
        '${23:a} | ${24:click}': function(e) {
            e.preventDefault();
            var el = e.target;
        }
    },
    keyboard: {
        '${25:ctrl+a}': function(e) {
        }
    },
    converter: function(data) {},
    preLoad: function() {},
    load: function() {},
    postLoad: function() {},
    preUnload: function() {},
    unload: function() {},
    postUnload: function() {},
    loadAfter: '${26:}'
});]]></content>
    <tabTrigger>fullstate</tabTrigger>
    <source>source.javascript</source>
    <description>Create a state</description>
</snippet><commit_msg>Changing the error element on full state.<commit_after><snippet>
    <content><![CDATA[a.state.add({
    id: '${1:id}',
    parent: '${2:parentid}',
    hash: '${3:hash}',
    title: '${4:title}',
    entry: '${5:#container}',
    type: '${6:replace}',
    async: false,
    include: {
        css: '${7:resources/css/}',
        js: '${8:resources/js/}',
        html: '${9:resources/html/}',
        translate: '${10:resources/tr/}',
        partials: {
            ${11:product}: '${12:resources/partials/}'
        }
    },
    data: {
        ${13:content}: {
            url: '${14:url}',
            options: ${15:\{\}}
        }
    },
    acl: {
        minimum: '${16:user}',
        maximum: '${17:administrator}',
        allowed: ['${18:user}', '${19:administrator}'],
        refused: ['${20:leader}']
    },
    error : {
        // Load 'error-400' which show an error bad request
        _400: 'error-400',
        _401: function() {
            var hash = a.hash.getHash();
            // TODO: store hash somewhere to go back
            // To this page when login is done
            a.route.go('login');
        },
        // Load 'error-403' which show an error forbidden
        _403: 'error-403',
        // Load 'error-404' which show an error not found
        _404: 'error-404',
        // Load 'error-500' which show an error internal server error
        _5xx: 'error-500'
    },
    bind: {
        '${21:a} | ${22:click}': function(e) {
            e.preventDefault();
            var el = e.target;
        }
    },
    bindGlobal: {
        '${23:a} | ${24:click}': function(e) {
            e.preventDefault();
            var el = e.target;
        }
    },
    keyboard: {
        '${25:ctrl+a}': function(e) {
        }
    },
    converter: function(data) {},
    preLoad: function() {},
    load: function() {},
    postLoad: function() {},
    preUnload: function() {},
    unload: function() {},
    postUnload: function() {},
    loadAfter: '${26:}'
});]]></content>
    <tabTrigger>fullstate</tabTrigger>
    <source>source.javascript</source>
    <description>Create a state</description>
</snippet>
{'fraction_non_alphanumeric': 0.19475041012420904, 'fraction_numerical': 0.037497070541363954, 'mean_word_length': 1.9153005464480874, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '2548902', 'n_tokens_mistral': 1443, 'n_tokens_neox': 1386, 'n_words': 299}