<commit_before>define(['jquery', 'inheritance', 'bind', 'bootstrap/bootstrap-popover', 'domReady!'], function($, inheritance) {

    var instance = null;

    var Popover = Class.extend({
        init: function () {
            if (instance !== null) {
                throw Error('Only one instance of Popover allowed!');
            }

            var that = this;

            $('#content').bind('ajaxifyInit', function (event) {
                $("a[rel=popover]").popover();
            });
        }
    });

    return (function() {
        if (instance === null) {
            instance = new Popover();
        }

        return instance;
    })();
});<commit_msg>init popover on domready AND ajaxify request<commit_after>define(['jquery', 'inheritance', 'bind', 'bootstrap/bootstrap-popover', 'domReady!'], function($, inheritance) {

    var instance = null;

    var Popover = Class.extend({
        init: function () {
            if (instance !== null) {
                throw Error('Only one instance of Popover allowed!');
            }

            var that = this;

            $('#content').bind('ajaxifyInit', function (event) {
                that.internalInit();
            });

            that.internalInit();
        },
        internalInit: function () {
            $("a[rel=popover]").popover();
        }
    });

    return (function() {
        if (instance === null) {
            instance = new Popover();
        }

        return instance;
    })();
});
{'fraction_non_alphanumeric': 0.1584956346541303, 'fraction_numerical': 0.0, 'mean_word_length': 1.8166351606805293, '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': '3483592', 'n_tokens_mistral': 401, 'n_tokens_neox': 382, 'n_words': 94}