<commit_before>(function(){
  
  'use strict';

  /**
   * @ngdoc directive
   * @name upBoardApp.directive:ubSlideControls
   * @description
   * # ubSlideControls
   */
  angular.module('upBoardApp')
    .directive('ubSlideControls', ubSlideControls);
  
  ubSlideControls.$inject = ['$log', '$document', '$timeout'];
  function ubSlideControls($log, $document, $timeout) {
    return {
      templateUrl: '/app/frontend/scripts/directives/ub-slide-controls.tpl.html',
      restrict: 'E',
      scope:{
        firstFn: '&first',
        previousFn: '&previous',
        playFn: '&play',
        pauseFn: '&pause',
        nextFn: '&next',
        lastFn: '&last',
        repeat: '=',
        paused: '='
      },
      link: function postLink(scope, element, attrs, ctrl) {

        var timeoutPromise = null;
        
        $document.on('mouseover', function(){
          
          // cancel previous timeout
          if(timeoutPromise != null) $timeout.cancel(timeoutPromise);
          
          scope.hover = true;
          
          timeoutPromise = $timeout(function(){
            scope.hover = false;
          }, 30000);
          
        });
      }
    };
  }

})();<commit_msg>updated slide control display time<commit_after>(function(){
  
  'use strict';

  /**
   * @ngdoc directive
   * @name upBoardApp.directive:ubSlideControls
   * @description
   * # ubSlideControls
   */
  angular.module('upBoardApp')
    .directive('ubSlideControls', ubSlideControls);
  
  ubSlideControls.$inject = ['$log', '$document', '$timeout'];
  function ubSlideControls($log, $document, $timeout) {
    return {
      templateUrl: '/app/frontend/scripts/directives/ub-slide-controls.tpl.html',
      restrict: 'E',
      scope:{
        firstFn: '&first',
        previousFn: '&previous',
        playFn: '&play',
        pauseFn: '&pause',
        nextFn: '&next',
        lastFn: '&last',
        repeat: '=',
        paused: '='
      },
      link: function postLink(scope, element, attrs, ctrl) {

        var timeoutPromise = null;
        
        $document.on('mouseover', function(){
          
          // cancel previous timeout
          if(timeoutPromise != null) $timeout.cancel(timeoutPromise);
          
          scope.hover = true;
          
          timeoutPromise = $timeout(function(){
            scope.hover = false;
          }, 5000);
          
        });
      }
    };
  }

})();
{'fraction_non_alphanumeric': 0.1485148514851485, 'fraction_numerical': 0.0037128712871287127, 'mean_word_length': 2.035043804755945, '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': '4148225', 'n_tokens_mistral': 724, 'n_tokens_neox': 717, 'n_words': 132}