<commit_before>define([
  'backbone.marionette',
  'hbs!../templates/timetable_builder',
  '../collections/TimetableModuleCollection',
  './SelectedModulesView',
  './SelectView',
  './ExportView',
  '../collections/ExamCollection',
  './ExamsView',
  '../collections/LessonCollection',
  './TimetableView',
  './UrlSharingView',
  './ThemeView',
  'bootstrap/button',
  'bootstrap/dropdown'
],

function(Marionette, template, TimetableModuleCollection, SelectedModulesView,
         SelectView, ExportView, ExamCollection, ExamsView, LessonCollection,
         ThemeView, TimetableView, UrlSharingView) {
  'use strict';

  return Marionette.Layout.extend({
    template: template,

    regions: {
      examsRegion: '#exam-timetable',
      selectedModsRegion: '#selected-mods',
      selectRegion: '#select2'
    },

    onShow: function() {
      var exams = new ExamCollection();
      var timetable = new LessonCollection();
      var selectedModules = new TimetableModuleCollection([], {
        timetable: timetable,
        exams: exams
      });

      var timetableView = new TimetableView({collection: timetable});

      this.examsRegion.show(new ExamsView({collection: exams}));
      this.selectedModsRegion.show(new SelectedModulesView({
        collection: selectedModules
      }));
      this.selectRegion.show(new SelectView({
        collection: selectedModules
      }));
      var exportView = new ExportView({
        collection: selectedModules,
        exams: exams
      });

      var urlSharingView = new UrlSharingView();

      $('#show-hide button:last-child').qtip({
        content: 'Only shown if Odd / Even / Irregular',
        position: {
          my: 'bottom right'
        }
      });
      $('#show-hide').on('click', '.btn', function() {
        $('#timetable-wrapper').toggleClass('hide-' + $(this).text().toLowerCase());
      });
      
    }
  });
});
<commit_msg>Fix bug in requiring ThemeView module<commit_after>define([
  'backbone.marionette',
  'hbs!../templates/timetable_builder',
  '../collections/TimetableModuleCollection',
  './SelectedModulesView',
  './SelectView',
  './ExportView',
  '../collections/ExamCollection',
  './ExamsView',
  '../collections/LessonCollection',
  './TimetableView',
  './UrlSharingView',
  './ThemeView',
  'bootstrap/button',
  'bootstrap/dropdown'
],

function(Marionette, template, TimetableModuleCollection, SelectedModulesView,
         SelectView, ExportView, ExamCollection, ExamsView, LessonCollection,
         TimetableView, UrlSharingView, ThemeView) {
  'use strict';

  return Marionette.Layout.extend({
    template: template,

    regions: {
      examsRegion: '#exam-timetable',
      selectedModsRegion: '#selected-mods',
      selectRegion: '#select2'
    },

    onShow: function() {
      var exams = new ExamCollection();
      var timetable = new LessonCollection();
      var selectedModules = new TimetableModuleCollection([], {
        timetable: timetable,
        exams: exams
      });

      var timetableView = new TimetableView({collection: timetable});

      this.examsRegion.show(new ExamsView({collection: exams}));
      this.selectedModsRegion.show(new SelectedModulesView({
        collection: selectedModules
      }));
      this.selectRegion.show(new SelectView({
        collection: selectedModules
      }));
      var exportView = new ExportView({
        collection: selectedModules,
        exams: exams
      });

      var urlSharingView = new UrlSharingView();
      var themeView = new ThemeView();

      $('#show-hide button:last-child').qtip({
        content: 'Only shown if Odd / Even / Irregular',
        position: {
          my: 'bottom right'
        }
      });
      $('#show-hide').on('click', '.btn', function() {
        $('#timetable-wrapper').toggleClass('hide-' + $(this).text().toLowerCase());
      });
      
    }
  });
});

{'fraction_non_alphanumeric': 0.14465894465894466, 'fraction_numerical': 0.0005148005148005148, 'mean_word_length': 2.945177664974619, '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': '934745', 'n_tokens_mistral': 1149, 'n_tokens_neox': 1132, 'n_words': 217}