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

window.BackboneWizard = {
    Models: {},
    Collections: {},
    Views: {},
    Controllers: {},
    Routers: {}
};

var app = new Marionette.Application();

app.addRegions({
    wizard: '#wizard'
});

app.addInitializer(function () {
    BackboneWizard.itemList = new BackboneWizard.Collections.ItemList();
    BackboneWizard.transaction = new BackboneWizard.Models.Transaction();
    BackboneWizard.state = 'index';

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

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

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

    Backbone.history.start();
});<commit_msg>Initiate the controller, router and binding.<commit_after>/* global BackboneWizard, Marionette, Backbone, $ */

window.BackboneWizard = {
    Models: {},
    Collections: {},
    Views: {},
    Controllers: {},
    Routers: {}
};

var app = new Marionette.Application();

app.addRegions({
    wizard: '#wizard'
});

app.addInitializer(function () {
    BackboneWizard.itemList = new BackboneWizard.Collections.ItemList();
    BackboneWizard.transaction = new BackboneWizard.Models.Transaction();
    BackboneWizard.state = 'index';

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

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

    BackboneWizard.wizardController = new BackboneWizard.Controllers.WizardController();

    BackboneWizard.wizardRouter = new BackboneWizard.Routers.WizardRouter({
        controller: BackboneWizard.wizardController
    });

    Backbone.history.start();
});
{'fraction_non_alphanumeric': 0.1543010752688172, 'fraction_numerical': 0.0, 'mean_word_length': 3.7353689567430024, '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': '655755', 'n_tokens_mistral': 590, 'n_tokens_neox': 577, 'n_words': 88}