<commit_before>$(document).ready(function() {
    var index = 0;
    // var popper;

    var instance = new Tooltip(document.getElementsByClassName("input-amount")[0], {
        html: true,
        title: "Suggested",
        trigger: "none",
        placement: "bottom",
        referenceOffsets: '100px'
    });

    instance.hide();

    $('#transaction_amount').on('keyup', function () {
        if (this.value) {
            instance.show();
        }

        $('.amount-of-kudos').html(this.value);

        $.get("/kudo_guidelines?kudo_amount=" + this.value, function (data) {
            var list = $('.tooltip-inner').empty();
            var listMore = $('<p>Guideline suggestions</p>').addClass('suggested-guidelines-title');
            listMore.appendTo(list);
            for (var i = 0; i < data.length; i++) {<commit_msg>Changed tooltip element to bind to because of relative position on other element wich caused problems<commit_after>$(document).ready(function() {
    var index = 0;
    // var popper;

    var instance = new Tooltip(document.getElementsByClassName("amount")[0], {
        html: true,
        title: "Suggested",
        trigger: "none",
        placement: "bottom",
        referenceOffsets: '100px'
    });

    instance.hide();

    $('#transaction_amount').on('keyup', function () {
        if (this.value) {
            instance.show();
        }

        $('.amount-of-kudos').html(this.value);

        $.get("/kudo_guidelines?kudo_amount=" + this.value, function (data) {
            var list = $('.tooltip-inner').empty();
            var listMore = $('<p>Guideline suggestions</p>').addClass('suggested-guidelines-title');
            listMore.appendTo(list);
            for (var i = 0; i < data.length; i++) {
{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.006825938566552901, 'mean_word_length': 2.4288499025341133, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '3294084', 'n_tokens_mistral': 530, 'n_tokens_neox': 507, 'n_words': 107}