<commit_before>;(function(angular) {

    'use strict';

    angular.module('k15t.auiNg')
        .directive('anSelect2', function($timeout) {
            return {
                restrict: 'A',
                require: 'ngModel',
                link: function(scope, elm, attrs, ctrl) {
                    var options = scope.$eval(attrs.anSelect2) || {};

                    var onChange = function(e) {
                        var data = elm.auiSelect2(options.selectData ? 'data' : 'val');
                        e.stopImmediatePropagation();
                        if (angular.isArray(data)) {
                            ctrl.$setViewValue(data.length ? data : void 0);
                        } else {
                            ctrl.$setViewValue(data);
                        }
                    };

                    elm.on('change', onChange);

                    scope.$on('$destroy', function() {
                        elm.auiSelect2('destroy');
                        elm.off('change', onChange);
                    });

                    ctrl.$render = function() {
                        elm.auiSelect2('val', ctrl.$viewValue);
                    };

                    $timeout(function() {
                        elm.auiSelect2(options);
                    });
                }
            };
        }
    );

})(angular);<commit_msg>set  instead of  if selectData is true<commit_after>;(function(angular) {

    'use strict';

    angular.module('k15t.auiNg')
        .directive('anSelect2', function($timeout) {
            return {
                restrict: 'A',
                require: 'ngModel',
                link: function(scope, elm, attrs, ctrl) {
                    var options = scope.$eval(attrs.anSelect2) || {};

                    var onChange = function(e) {
                        var data = elm.auiSelect2(options.selectData ? 'data' : 'val');
                        e.stopImmediatePropagation();
                        if (angular.isArray(data)) {
                            ctrl.$setViewValue(data.length ? data : void 0);
                        } else {
                            ctrl.$setViewValue(data);
                        }
                    };

                    elm.on('change', onChange);

                    scope.$on('$destroy', function() {
                        elm.auiSelect2('destroy');
                        elm.off('change', onChange);
                    });

                    ctrl.$render = function() {
                        $timeout(function() {
                            if (options.selectData) {
                                elm.auiSelect2('data', ctrl.$modelValue);
                            } else {
                                elm.auiSelect2('val', ctrl.$viewValue);
                            }
                        });
                    };

                    $timeout(function() {
                        elm.auiSelect2(options);
                    });
                }
            };
        }
    );

})(angular);
{'fraction_non_alphanumeric': 0.11910994764397906, 'fraction_numerical': 0.006217277486910994, 'mean_word_length': 0.9274905422446406, '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': '912166', 'n_tokens_mistral': 762, 'n_tokens_neox': 695, 'n_words': 111}