<commit_before>/**
  * @ngdoc directive
  * @module <%= directiveModule %>
  * @name <%= directiveName %>
  * @description
  * Thin directive: prepare data in a controller, and pass it to the directive
  * via scope variables.
  *
  * Usage:
  *
  * <pre>
  *   <<%= directiveNameElement %>
  *     my-attribute="myValue"
  *     another-attribute="anotherValue">
  *   </<%= directiveNameElement %>>
  * </pre>
  */
(function() {
  'use strict';

  angular.module('<%= directiveModule %>', [])
  .directive('<%= directiveName %>', function() {
    return {
      restrict: 'E',
      replace: 'true',
      templateUrl: 'app/shared/directives/<%= directiveNameElement %>/<%= directiveNameElement %>.template.html',
      scope: {
        myAttribute: '@'
      }
    };
  });

})();
<commit_msg>Update directive subgenerator with constructor function<commit_after>/**
  * @ngdoc directive
  * @module <%= directiveModule %>
  * @name <%= directiveName %>
  * @description
  * Thin directive: prepare data in a controller, and pass it to the directive
  * via scope variables.
  *
  * Usage:
  *
  * <pre>
  *   <<%= directiveNameElement %>
  *     my-attribute="myValue"
  *     another-attribute="anotherValue">
  *   </<%= directiveNameElement %>>
  * </pre>
  */
(function() {
  'use strict';

  angular.module('<%= directiveModule %>', [])
  .directive('<%= directiveName %>', <%= directiveNameConstructor %>);

  function <%= directiveNameConstructor %>() {
    return {
      restrict: 'E',
      replace: 'true',
      templateUrl: 'app/shared/directives/<%= directiveNameElement %>/<%= directiveNameElement %>.template.html',
      scope: {
        myAttribute: '@'
      }
    };
  }

})();

{'fraction_non_alphanumeric': 0.17989417989417988, 'fraction_numerical': 0.0, 'mean_word_length': 3.0427553444180524, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '6434620', 'n_tokens_mistral': 579, 'n_tokens_neox': 517, 'n_words': 109}