<commit_before>'use strict';

/**
 * <%= componentName %> Directive.
 *
 * @ngdoc overview
 * @name  <%= moduleName %>.directive:<%= componentName %>
 * @description
 */

(function(){

  function <%= componentName %>Directive() {

    // Runs during compile
    return {
      // name: '',
      // priority: 1,
      // terminal: true,
      // scope: {}, // {} = isolate, true = child, false/undefined = no change
      // controller: function($scope, $element, $attrs, $transclude) {},
      // require: 'ngModel', // Array = multiple requires, ? = optional, ^ = check parent elements
      restrict: 'AE', // E = Element, A = Attribute, C = Class, M = Comment
      //template: '',
      // replace: true,
      // transclude: true,
      // compile: function(tElement, tAttrs, function transclude(function(scope, cloneLinkingFn){ return function linking(scope, elm, attrs){}})),
      // link: function($scope, iElm, iAttrs, controller) {}
    };

  }

  angular.module('<%= appName %>.<%= moduleName %>')
    .directive('<%= componentName %>',<%= componentName %>Directive);
})();<commit_msg>refactor(directive subgenerator): Moves controller to the top<commit_after>'use strict';

/**
 * <%= componentName %> Directive.
 *
 * @ngdoc overview
 * @name  <%= moduleName %>.directive:<%= componentName %>
 * @description
 */

(function(){

  function <%= componentName %>Directive() {

    // Runs during compile
    return {
      // controller: function($scope, $element, $attrs, $transclude) {},
      // bindToController: true,
      // name: '',
      // priority: 1,
      // terminal: true,
      // scope: {}, // {} = isolate, true = child, false/undefined = no change
      // require: 'ngModel', // Array = multiple requires, ? = optional, ^ = check parent elements
      restrict: 'AE', // E = Element, A = Attribute, C = Class, M = Comment
      //template: '',
      // replace: true,
      // transclude: true,
      // compile: function(tElement, tAttrs, function transclude(function(scope, cloneLinkingFn){ return function linking(scope, elm, attrs){}})),
      // link: function($scope, iElm, iAttrs, controller) {}
    };

  }

  angular.module('<%= appName %>.<%= moduleName %>')
    .directive('<%= componentName %>',<%= componentName %>Directive);
})();
{'fraction_non_alphanumeric': 0.18928414580588493, 'fraction_numerical': 0.000878348704435661, 'mean_word_length': 2.954861111111111, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '6648899', 'n_tokens_mistral': 701, 'n_tokens_neox': 660, 'n_words': 174}