<commit_before>import tagSearchController from './tagSearch.controller';

/* jshint unused: vars */
export default
    ['templateUrl',
        function(templateUrl) {
            return {
                restrict: 'E',
                scope: {
                  list: '@',
                  endpoint: '@',
                  set: '@',
                  iterator: '@',
                  currentSearchFilters: '='
                },
                controller: tagSearchController,
                templateUrl: templateUrl('search/tagSearch'),
                link: function(scope, element, attrs) {
                    // make the enter button work as if clicking the
                    // search icon
                    element
                        .find('.TagSearch-searchTermInput')
                        .bind('keypress', function (e) {
                            var code = e.keyCode || e.which;
                            if (code === 13) {
                                scope.addTag();
                            }
                        });
                }
            };
        }
    ];<commit_msg>Pass the event when calling addTag()<commit_after>import tagSearchController from './tagSearch.controller';

/* jshint unused: vars */
export default
    ['templateUrl',
        function(templateUrl) {
            return {
                restrict: 'E',
                scope: {
                  list: '@',
                  endpoint: '@',
                  set: '@',
                  iterator: '@',
                  currentSearchFilters: '='
                },
                controller: tagSearchController,
                templateUrl: templateUrl('search/tagSearch'),
                link: function(scope, element, attrs) {
                    // make the enter button work as if clicking the
                    // search icon
                    element
                        .find('.TagSearch-searchTermInput')
                        .bind('keypress', function (e) {
                            var code = e.keyCode || e.which;
                            if (code === 13) {
                                scope.addTag(e);
                            }
                        });
                }
            };
        }
    ];
{'fraction_non_alphanumeric': 0.10150044130626655, 'fraction_numerical': 0.00176522506619594, 'mean_word_length': 0.9050420168067227, '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': '3862738', 'n_tokens_mistral': 508, 'n_tokens_neox': 471, 'n_words': 109}