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

    var dynamicFormFieldset = function($templateCache, AngularDynamicFormCustomInputViewUrl) {
        return {
            restrict: 'E',
            scope: {
                field:              '=',
                model:              '=',
                allErrors:          '=',
                config:             '=',
                style_config:       '=styleConfig',
                onChange:           '&',
                onBlur:             '&'
            },
            controller: 'DynamicFormFieldsetCtrl as ctrl',
            replace: true,
            link: function(scope) {

                // set input view template
                scope.input_view_template = 'angular-dynamic-form/views/inputs/' + scope.field.type + '.html';

                if (_.isUndefined($templateCache.get(scope.input_view_template))) {
                    scope.input_view_template = AngularDynamicFormCustomInputViewUrl + scope.field.type + '.html';
                }


                // watchers
                scope.$watchCollection('model', function(val) {
                    if (!_.isUndefined(val)) {
                        scope.value = _.get(scope.model, scope.field.name);
                    }
                });

                scope.$watchCollection('allErrors', function() {
                    if (!_.isUndefined(scope.allErrors)) {
                        scope.errors = _.get(scope.allErrors, scope.field.name);
                    }
                });
            },
            templateUrl: 'angular-dynamic-form/views/dynamic-form-fieldset.html'
        };
    };
<commit_msg>Linting<commit_after>(function() {
    'use strict';

    var dynamicFormFieldset = function($templateCache, AngularDynamicFormCustomInputViewUrl) {
        return {
            restrict: 'E',
            scope: {
                field:              '=',
                model:              '=',
                allErrors:          '=',
                config:             '=',
                style_config:       '=styleConfig',
                onChange:           '&',
                onBlur:             '&'
            },
            controller: 'DynamicFormFieldsetCtrl as ctrl',
            replace: true,
            link: function(scope) {

                // set input view template
                scope.input_view_template = 'angular-dynamic-form/views/inputs/' + scope.field.type + '.html';

                if (_.isUndefined($templateCache.get(scope.input_view_template))) {
                    scope.input_view_template = AngularDynamicFormCustomInputViewUrl + scope.field.type + '.html';
                }

                // watchers
                scope.$watchCollection('model', function(val) {
                    if (!_.isUndefined(val)) {
                        scope.value = _.get(scope.model, scope.field.name);
                    }
                });

                scope.$watchCollection('allErrors', function() {
                    if (!_.isUndefined(scope.allErrors)) {
                        scope.errors = _.get(scope.allErrors, scope.field.name);
                    }
                });
            },
            templateUrl: 'angular-dynamic-form/views/dynamic-form-fieldset.html'
        };
    };

{'fraction_non_alphanumeric': 0.1149285497111584, 'fraction_numerical': 0.0, 'mean_word_length': 1.2080536912751678, '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': '673804', 'n_tokens_mistral': 830, 'n_tokens_neox': 762, 'n_words': 116}