<commit_before>define([
    'dojo/_base/declare',
    'dojo/_base/lang',
    'dojo/_base/fx',
    'dojo/fx/easing',
    'dojo/on',
    'dojo/dom-attr',
    'dojo/dom-construct',
    'dojo/dom-class',
    'dojo/dom-style',
    'dojo/dom-geometry',
    'dijit/a11yclick',
    './_WidgetBase',
    '../less!../vendor/bootstrap/less/navbar.less'
],
function (
    declare,
    lang,
    baseFx,
    easing,
    on,
    domAttr,
    domConstruct,
    domClass,
    domStyle,
    domGeom,
    a11yclick,
    WidgetBase
){
    // module:
    //    	havok/widget/NavBar

    return declare(
        [WidgetBase],
        {
            //toggleNode: undefined,

            //toggleTarget: undefined,

            baseClass: 'navbar',

            templateString: '<div><div class="navbar-inner" data-dojo-attach-point="containerNode"></div></div>',

            startup: function(){
                this.inherited(arguments);

                var i,
                    node;

                for (i = 0; i < this.containerNode.children.length; i++){
                    node = this.containerNode.children[i];
                    if (domAttr.has(node, 'nav-bar-toggle')){
                        this.toggleNode = node;
                    }
                    if (domAttr.has(node, 'nav-bar-toggle-target')){
                        this.toggleTarget = node;
                    }
                }

                if (this.toggleNode){
                    domClass.add(this.toggleNode, 'btn btn-navbar');
                    on(this.toggleNode, a11yclick.click, lang.hitch(this, 'toggle'));
                }
                if (this.toggleTarget){
                    this.toggleTargetInner = domConstruct.create('div');
                    while (this.toggleTarget.children.length > 0){
                        domConstruct.place(this.toggleTarget.children[0], this.toggleTargetInner);
                    }
                    domConstruct.place(this.toggleTargetInner, this.toggleTarget, 'only');
                    domClass.add(this.toggleTarget, 'nav-collapse collapse');
                }
            },<commit_msg>make navbar attributes valid html 5<commit_after>define([
    'dojo/_base/declare',
    'dojo/_base/lang',
    'dojo/_base/fx',
    'dojo/fx/easing',
    'dojo/on',
    'dojo/dom-attr',
    'dojo/dom-construct',
    'dojo/dom-class',
    'dojo/dom-style',
    'dojo/dom-geometry',
    'dijit/a11yclick',
    './_WidgetBase',
    '../less!../vendor/bootstrap/less/navbar.less'
],
function (
    declare,
    lang,
    baseFx,
    easing,
    on,
    domAttr,
    domConstruct,
    domClass,
    domStyle,
    domGeom,
    a11yclick,
    WidgetBase
){
    // module:
    //    	havok/widget/NavBar

    return declare(
        [WidgetBase],
        {
            //toggleNode: undefined,

            //toggleTarget: undefined,

            baseClass: 'navbar',

            templateString: '<div><div class="navbar-inner" data-dojo-attach-point="containerNode"></div></div>',

            startup: function(){
                this.inherited(arguments);

                var i,
                    node;

                for (i = 0; i < this.containerNode.children.length; i++){
                    node = this.containerNode.children[i];
                    if (domAttr.has(node, 'data-havok-nav-bar-toggle')){
                        this.toggleNode = node;
                    }
                    if (domAttr.has(node, 'data-havok-nav-bar-toggle-target')){
                        this.toggleTarget = node;
                    }
                }

                if (this.toggleNode){
                    domClass.add(this.toggleNode, 'btn btn-navbar');
                    on(this.toggleNode, a11yclick.click, lang.hitch(this, 'toggle'));
                }
                if (this.toggleTarget){
                    this.toggleTargetInner = domConstruct.create('div');
                    while (this.toggleTarget.children.length > 0){
                        domConstruct.place(this.toggleTarget.children[0], this.toggleTargetInner);
                    }
                    domConstruct.place(this.toggleTargetInner, this.toggleTarget, 'only');
                    domClass.add(this.toggleTarget, 'nav-collapse collapse');
                }
            },
{'fraction_non_alphanumeric': 0.13124708080336292, 'fraction_numerical': 0.004437178888369921, 'mean_word_length': 1.455848623853211, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '1600187', 'n_tokens_mistral': 1276, 'n_tokens_neox': 1192, 'n_words': 185}