<commit_before>import Ember from 'ember';
import AppPusherMixin from '../mixins/app_pusher';

// global mixpanel //

export default Ember.Controller.extend(AppPusherMixin, {
  showMenu: false,
  notifier: Ember.inject.service(),
  showPanel: false,
  chatReceived: Ember.computed.alias('pusher.chatReceived'),
  notifications: function() {
    return this.get("notifier.notifications");
  }.property("notifier.notifications.@each"),
  hasChatAlert: function() {
    return (!this.get("showPanel")) && this.get("chatReceived");
  }.property("showPanel", "chatReceived"),
  username: function() {
    return this.get("session.username");
  }.property("session.username"),
  connectToPusher: function() { // THIS IS SO SHITTY
    this.pusher.set("username", this.get("username"));
  }.observes("username"),
  currentUser: function() {
    return this.session.get("user");
  }.property("session.user"),
  loggedIn: function() {
    return !Ember.isEmpty(this.get("username"))
  }.property("username"),
  init: function() {
    this._super();
    if(localStorage.showPanel) {
      this.set("showPanel", JSON.parse(localStorage.showPanel));
    }
  },
  shouldShowBanner: function() {
    return (Ember.isEmpty(this.get("username")) &&<commit_msg>Missing semi-colon<commit_after>import Ember from 'ember';
import AppPusherMixin from '../mixins/app_pusher';

// global mixpanel //

export default Ember.Controller.extend(AppPusherMixin, {
  showMenu: false,
  notifier: Ember.inject.service(),
  showPanel: false,
  chatReceived: Ember.computed.alias('pusher.chatReceived'),
  notifications: function() {
    return this.get("notifier.notifications");
  }.property("notifier.notifications.@each"),
  hasChatAlert: function() {
    return (!this.get("showPanel")) && this.get("chatReceived");
  }.property("showPanel", "chatReceived"),
  username: function() {
    return this.get("session.username");
  }.property("session.username"),
  connectToPusher: function() { // THIS IS SO SHITTY
    this.pusher.set("username", this.get("username"));
  }.observes("username"),
  currentUser: function() {
    return this.session.get("user");
  }.property("session.user"),
  loggedIn: function() {
    return !Ember.isEmpty(this.get("username"));
  }.property("username"),
  init: function() {
    this._super();
    if(localStorage.showPanel) {
      this.set("showPanel", JSON.parse(localStorage.showPanel));
    }
  },
  shouldShowBanner: function() {
    return (Ember.isEmpty(this.get("username")) &&
{'fraction_non_alphanumeric': 0.1751004016064257, 'fraction_numerical': 0.0, 'mean_word_length': 4.726436781609196, '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': '751752', 'n_tokens_mistral': 774, 'n_tokens_neox': 775, 'n_words': 135}