<commit_before>(function (angular) {
  
  'use strict';
  
  angular.module('birdyard.utilities')
  
  .directive('menu', [
    '$rootScope', 
    '$location',
    '$timeout',
    'authService',
    'firebaseService',
    '$mdToast',
    '$mdSidenav',
    
    function (
      $rootScope, 
      $location,
      $timeout,
      authService,
      firebaseService,
      $mdToast,
      $mdSidenav
    ) {
    
    return {
      restrict: 'E',
      replace: true,
      template: 
      '<div class="birdyard-menu-wrapper">' +
        
        '<div class="birdyard-btn pointer" ng-hide="signedIn" ng-click="signIn()">Sign in with Twitter</div>' + 
        
        '<div ng-if="signedIn" class="birdyard-btn pointer" style="padding-bottom: 0; height: 33px; width: 33px; text-align: center; overflow: hidden;" ng-click="toggleMenu()">' + 
          '<i class="icon fa fa-navicon menu" ng-if="notificationCount == 0" style="font-size: 20px;"></i>' + 
          '<i class="icon fa fa-bell co-yellow menu ding" ng-if="notificationCount > 0" ng-class="{\'ring\': ring}" style="font-size: 20px; text-shadow: 0px 1px 0px rgba(0,0,0,0.5);"></i>' +
        '</div>' +

        '<div class="birdyard-menu" ng-class="{show: showing}" ng-click="close()">' +
          '<div class="birdyard-menu-item pointer" ng-click="goTo(\'/user\')">View Your Profile</div>' +<commit_msg>Ding bell performance tweak<commit_after>(function (angular) {
  
  'use strict';
  
  angular.module('birdyard.utilities')
  
  .directive('menu', [
    '$rootScope', 
    '$location',
    '$timeout',
    'authService',
    'firebaseService',
    '$mdToast',
    '$mdSidenav',
    
    function (
      $rootScope, 
      $location,
      $timeout,
      authService,
      firebaseService,
      $mdToast,
      $mdSidenav
    ) {
    
    return {
      restrict: 'E',
      replace: true,
      template: 
      '<div class="birdyard-menu-wrapper">' +
        
        '<div class="birdyard-btn pointer" ng-hide="signedIn" ng-click="signIn()">Sign in with Twitter</div>' + 
        
        '<div ng-if="signedIn" class="birdyard-btn pointer" style="padding-bottom: 0; height: 33px; width: 33px; text-align: center; overflow: hidden;" ng-click="toggleMenu()">' + 
          '<i class="icon fa fa-navicon menu" ng-hide="notificationCount" style="font-size: 20px;"></i>' + 
          '<i class="icon fa fa-bell co-yellow menu ding" ng-show="notificationCount" ng-class="{\'ring\': ring}" style="font-size: 20px; text-shadow: 0px 1px 0px rgba(0,0,0,0.5);"></i>' +
        '</div>' +

        '<div class="birdyard-menu" ng-class="{show: showing}" ng-click="close()">' +
          '<div class="birdyard-menu-item pointer" ng-click="goTo(\'/user\')">View Your Profile</div>' +
{'fraction_non_alphanumeric': 0.18569865012769063, 'fraction_numerical': 0.013133892739875957, 'mean_word_length': 2.7768595041322315, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 28, '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': '3617706', 'n_tokens_mistral': 954, 'n_tokens_neox': 912, 'n_words': 183}