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

    /**
     * A component to render the pop up search field
     */
    var umbSearch = {
        templateUrl: 'views/components/application/umb-search.html',
        controllerAs: 'vm',
        controller: umbSearchController,
        bindings: {
            onClose: "&"
        }
    };
    
    function umbSearchController($scope, backdropService, searchService) {

        var vm = this;

        vm.$onInit = onInit;
        vm.search = search;
        vm.closeSearch = closeSearch;

        function onInit() {

            vm.searchResults = [];
            vm.hasResults = false;

            console.log("init search thingy");
            backdropService.open();<commit_msg>make sure the close the overlay when the component gets destroyed.<commit_after>(function () {
    'use strict';

    /**
     * A component to render the pop up search field
     */
    var umbSearch = {
        templateUrl: 'views/components/application/umb-search.html',
        controllerAs: 'vm',
        controller: umbSearchController,
        bindings: {
            onClose: "&"
        }
    };
    
    function umbSearchController($scope, backdropService, searchService) {

        var vm = this;

        vm.$onInit = onInit;
        vm.$onDestroy = onDestroy;
        vm.search = search;
        vm.closeSearch = closeSearch;

        function onInit() {

            vm.searchResults = [];
            vm.hasResults = false;

            console.log("init search thingy");
            backdropService.open();
        }

        function onDestroy() {
            backdropService.close();
{'fraction_non_alphanumeric': 0.10690287110568113, 'fraction_numerical': 0.0, 'mean_word_length': 1.848695652173913, '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': '6821324', 'n_tokens_mistral': 445, 'n_tokens_neox': 422, 'n_words': 102}