<commit_before>/*global app*/
var _ = require('underscore');
var log = require('bows')('eventdeck');
var config = require('clientconfig');
var $ = require('jquery');
var Ink = require('./ink-all');

var Router = require('./router');
var MainView = require('./views/main');
var domReady = require('domready');
var IO = require('./sockets');

var Me = require('./models/me');
var Events = require('./models/events');
var Members = require('./models/members');
var Companies = require('./models/companies');
var Sessions = require('./models/sessions');
var Speakers = require('./models/speakers');
var Tags = require('./models/tags');
var Topics = require('./models/topics');
var Communications = require('./models/communications');
var PublicNotifications = require('./models/publicNotifications');
var PrivateNotifications = require('./models/privateNotifications');

module.exports = {
  // this is the the whole app initter
  blastoff: function () {
    var self = window.app = this;

    log('Blasting off!');

    this.me = new Me();
    this.events = new Events();
    this.members = new Members();
    this.companies = new Companies();
    this.sessions = new Sessions();
    this.speakers = new Speakers();
    this.tags = new Tags();
    this.topics = new Topics();
    this.fetchInitialData();

    this.socket = new IO(null, {setListeners: true});
    this.notifications = {};
    PublicNotifications = new PublicNotifications(this.socket);
    PrivateNotifications = new PrivateNotifications(this.socket);
    this.notifications.public = new PublicNotifications(null, {setListeners: true});
    this.notifications.private = new PrivateNotifications(null, {setListeners: true});

    // init our URL handlers and the history tracker
    this.router = new Router();

    // wait for document ready to render our main view
    // this ensures the document has a body, etc.
    domReady(function () {
      // init our main view
      var mainView = self.view = new MainView({
        el: document.body,
        model: self.me,
        collection: self.notifications.private
      });

      // ...and render it
      mainView.render();
      log(self.notifications.private);

      // we have what we need, we can now start our router and show the appropriate page
      self.router.history.start({pushState: true, root: '/'});
    });
  },

  fetchInitialData: function () {
    var self = this;

    self.me.fetch({
      success: function(model, response, options) {<commit_msg>delete logs<commit_after>/*global app*/
var _ = require('underscore');
var log = require('bows')('eventdeck');
var config = require('clientconfig');
var $ = require('jquery');
var Ink = require('./ink-all');

var Router = require('./router');
var MainView = require('./views/main');
var domReady = require('domready');
var IO = require('./sockets');

var Me = require('./models/me');
var Events = require('./models/events');
var Members = require('./models/members');
var Companies = require('./models/companies');
var Sessions = require('./models/sessions');
var Speakers = require('./models/speakers');
var Tags = require('./models/tags');
var Topics = require('./models/topics');
var Communications = require('./models/communications');
var PublicNotifications = require('./models/publicNotifications');
var PrivateNotifications = require('./models/privateNotifications');

module.exports = {
  // this is the the whole app initter
  blastoff: function () {
    var self = window.app = this;

    log('Blasting off!');

    this.me = new Me();
    this.events = new Events();
    this.members = new Members();
    this.companies = new Companies();
    this.sessions = new Sessions();
    this.speakers = new Speakers();
    this.tags = new Tags();
    this.topics = new Topics();
    this.fetchInitialData();

    this.socket = new IO(null, {setListeners: true});
    this.notifications = {};
    PublicNotifications = new PublicNotifications(this.socket);
    PrivateNotifications = new PrivateNotifications(this.socket);
    this.notifications.public = new PublicNotifications(null, {setListeners: true});
    this.notifications.private = new PrivateNotifications(null, {setListeners: true});

    // init our URL handlers and the history tracker
    this.router = new Router();

    // wait for document ready to render our main view
    // this ensures the document has a body, etc.
    domReady(function () {
      // init our main view
      var mainView = self.view = new MainView({
        el: document.body,
        model: self.me,
        collection: self.notifications.private
      });

      // ...and render it
      mainView.render();

      // we have what we need, we can now start our router and show the appropriate page
      self.router.history.start({pushState: true, root: '/'});
    });
  },

  fetchInitialData: function () {
    var self = this;

    self.me.fetch({
      success: function(model, response, options) {
{'fraction_non_alphanumeric': 0.14893617021276595, 'fraction_numerical': 0.0, 'mean_word_length': 3.4508566275924255, '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': '605907', 'n_tokens_mistral': 1371, 'n_tokens_neox': 1338, 'n_words': 402}