<commit_before>'use strict';

/**
 * Directive that places focus on the element it is applied to when the expression it binds to evaluates to true.
 */
Application.Directives.directive('todoFocus', [function( $timeout ) {
  return function( scope, elem, attrs ) {
    scope.$watch(attrs.todoFocus, function( newval ) {
      if ( newval ) {
        $timeout(function() {
          elem[0].focus();
          elem[0].select();
        }, 0, false);
      }
    });
  };
}]);<commit_msg>fixed minification error<commit_after>'use strict';

/**
 * Directive that places focus on the element it is applied to when the expression it binds to evaluates to true.
 */
Application.Directives.directive('todoFocus', ['$timeout', function( $timeout ) {
  return function( scope, elem, attrs ) {
    scope.$watch(attrs.todoFocus, function( newval ) {
      if ( newval ) {
        $timeout(function() {
          elem[0].focus();
          elem[0].select();
        }, 0, false);
      }
    });
  };
}]);
{'fraction_non_alphanumeric': 0.14904330312185296, 'fraction_numerical': 0.006042296072507553, 'mean_word_length': 2.7938931297709924, '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': '2498620', 'n_tokens_mistral': 295, 'n_tokens_neox': 290, 'n_words': 83}