<commit_before>define([
    'jquery',
    'app',
    'collections/event/event', 
    'views/event/creation',
    'views/event/event_collection'
], function($, Stratus, EventCollection, EventCreationView, EventCollectionView) {
    var events = Stratus.module('Events');
    events.on('start', function(options) {
        // List of downtime events
        window.event_collection = new EventCollection();

        //  TODO: REGIONS!

        // View for event collection
        var event_collection_view = new EventCollectionView({ collection: event_collection });
        $(document).find('div#event-list').append(event_collection_view.render().el);

        // Form to create new downtime events
        var event_creation_view = new EventCreationView({ collection: event_collection });
        $(document).find('div#event-list').append(event_creation_view.render().$el);
    });
});<commit_msg>Don't show the creation view in the Events module<commit_after>define([
    'jquery',
    'app',
    'collections/event/event', 
    'views/event/event_collection'
], function($, Stratus, EventCollection, EventCollectionView) {
    var events = Stratus.module('Events');
    events.on('start', function(options) {
        // List of downtime events
        this.event_collection = new EventCollection();

        //  TODO: REGIONS!

        // View for event collection
        var event_collection_view = new EventCollectionView({
            collection: this.event_collection
        });
        $(document).find('div#event-list').append(event_collection_view.render().el);
    });
});
{'fraction_non_alphanumeric': 0.13375394321766562, 'fraction_numerical': 0.0, 'mean_word_length': 3.263440860215054, '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': '1058120', 'n_tokens_mistral': 434, 'n_tokens_neox': 422, 'n_words': 91}