<commit_before>/* global BackboneWizard, Backbone, $ */


window.BackboneWizard = {
    Models: {},
    Collections: {},
    Views: {},
    Controllers: {},
    Routers: {},
    init: function () {
        'use strict';

        var self = this;

        self.itemList = new BackboneWizard.Collections.ItemList();
        self.transaction = new BackboneWizard.Models.Transaction();
        self.state = new BackboneWizard.Models.State({ 'current': 'index' });

        $.get('./appData.json').done(function (data) {
            self.transaction.set(data);
        });

        $.get('./itemData.json').done(function (data) {
            self.itemList.add(data, { merge: true });
        });

        self.wizardRouter = new BackboneWizard.Routers.WizardRouter();

        Backbone.history.start();
    }
};

$(document).ready(function () {
    'use strict';
    BackboneWizard.init();
});
<commit_msg>Set root option on history.start.<commit_after>/* global BackboneWizard, Backbone, $ */


window.BackboneWizard = {
    Models: {},
    Collections: {},
    Views: {},
    Controllers: {},
    Routers: {},
    init: function () {
        'use strict';

        var self = this;

        self.itemList = new BackboneWizard.Collections.ItemList();
        self.transaction = new BackboneWizard.Models.Transaction();
        self.state = new BackboneWizard.Models.State({ 'current': 'index' });

        $.get('./appData.json').done(function (data) {
            self.transaction.set(data);
        });

        $.get('./itemData.json').done(function (data) {
            self.itemList.add(data, { merge: true });
        });

        self.wizardRouter = new BackboneWizard.Routers.WizardRouter();

        Backbone.history.start({ root: '/backbone/' });
    }
};

$(document).ready(function () {
    'use strict';
    BackboneWizard.init();
});

{'fraction_non_alphanumeric': 0.16865509761388287, 'fraction_numerical': 0.0, 'mean_word_length': 2.4421641791044775, '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': '7289669', 'n_tokens_mistral': 560, 'n_tokens_neox': 545, 'n_words': 94}