<commit_before>define(function (require) {

  'use strict';

  /**
   * Module dependencies
   */
  var DataState = require('component/dataState');
  var PlaylistMaker = require('component/playlistMaker');
  var UIDj = require('component/uiDj');
  var UIUser = require('component/uiUser');
  var UIRating = require('component/uiRating');
  var UIMarquee = require('component/uiMarquee');
  var DataBAM = require('component/dataBAM');

  /**
   * Module exports
   */

  return initialize;

  /**
   * Module function
   */

  function initialize() {
    DataBAM.attachTo(document);
    UIDj.attachTo('#djs');
    UIUser.attachTo('#users');
    UIRating.attachTo('#rate-box');
    UIMarquee.attachTo(document);
    DataState.attachTo(document,  {
      fireBaseUrl: 'https://uralgosux.firebaseio.com/'
    });
    if (!window.storage || !window.storage.user) {
        var DataAuth = require('component/dataAuth');
        DataAuth.attachTo(document);
    }
    PlaylistMaker.attachTo(document);

    // // test playlist
    // $(document).on('dataPlaylistTracks', function(event, msg) {
    //   // $('body').html('<pre>' + JSON.stringify(msg, null, '\t') + '</pre>');
    //   console.dir(msg);
    // });
    // $(document).trigger('uiNeedsPlaylist', { artist_name : 'Weezer' });

  }

});<commit_msg>current user on localStorage<commit_after>define(function (require) {

  'use strict';

  /**
   * Module dependencies
   */
  var DataState = require('component/dataState');
  var PlaylistMaker = require('component/playlistMaker');
  var UIDj = require('component/uiDj');
  var UIUser = require('component/uiUser');
  var UIRating = require('component/uiRating');
  var UIMarquee = require('component/uiMarquee');
  var DataBAM = require('component/dataBAM');

  /**
   * Module exports
   */

  return initialize;

  /**
   * Module function
   */

  function initialize() {
    DataBAM.attachTo(document);
    UIDj.attachTo('#djs');
    UIUser.attachTo('#users');
    UIRating.attachTo('#rate-box');
    UIMarquee.attachTo(document);
    DataState.attachTo(document,  {
      fireBaseUrl: 'https://uralgosux.firebaseio.com/'
    });

    var user = window.localStorage.getItem("user");
    if (!user) {
        var DataAuth = require('component/dataAuth');
        DataAuth.attachTo(document);
    }
    PlaylistMaker.attachTo(document);

    // // test playlist
    // $(document).on('dataPlaylistTracks', function(event, msg) {
    //   // $('body').html('<pre>' + JSON.stringify(msg, null, '\t') + '</pre>');
    //   console.dir(msg);
    // });
    // $(document).trigger('uiNeedsPlaylist', { artist_name : 'Weezer' });

  }

});
{'fraction_non_alphanumeric': 0.1787878787878788, 'fraction_numerical': 0.0, 'mean_word_length': 3.259677419354839, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '7183042', 'n_tokens_mistral': 869, 'n_tokens_neox': 840, 'n_words': 135}