<commit_before>(function () {
    $.widget("execut.GridView", {
        _moveStarted: false,
        _create: function () {
            var t = this;
            t._initElements();
            t._initEvents();
        },
        _initElements: function () {
            var t = this,
                el = t.element;
            if (typeof t.options.updateUrl !== 'undefined') {
                el.find('tr[data-id]').mousedown(function (e) {
                    if (e.originalEvent.button == 0) {
                        t._moveStarted = false;
                    } else {
                        var trEl = $(this),
                            href = false;
                        if (href = t._getHrefFromTr(trEl, e)) {
                            var tdEl = $(e.target).css('position', 'relative'),
                                linkEl = $('<a href="' + href + '" style="width: 100%;left: 0; top: 0; height: 100%; display: block; position: absolute"></a>');

                            tdEl.append(linkEl);
                            setTimeout(function () {
                                linkEl.remove();
                            }, 10);
                        }

                        return false;
                    }
                });

                el.find('tr[data-id]').click(function (e) {
                    if (window.getSelection().toString().length) {
                        return false;
                    }

                    var trEl = $(this),
                        href = false;
                    if (href = t._getHrefFromTr(trEl, e)) {
                        if (e.originalEvent.ctrlKey) {
                            window.open(href, '_blank');
                        } else {
                            location.href = href;
                        }
                    }
                });
            }
        },
        _getHrefFromTr: function (trEl, e) {
            var t = this,
                targetEl = $(e.target);
            if (!(targetEl.parents('a,button,input').length || targetEl.is('a,button,input'))) {
                var id = trEl.attr('data-id'),
                    url = t.options.updateUrl,
                    delimiter = null;
                if (url.search('\\?') !== -1) {
                    delimiter = '&';
                } else {
                    delimiter = '?';
                }

                return url + delimiter + 'id=' + id;
            }
        },
        _initEvents: function () {
            var t = this;
        }
    })
})();<commit_msg>Fixed bug with triggered click in grid<commit_after>(function () {
    $.widget("execut.GridView", {
        _moveStarted: false,
        _create: function () {
            var t = this;
            t._initElements();
            t._initEvents();
        },
        _initElements: function () {
            var t = this,
                el = t.element;
            if (typeof t.options.updateUrl !== 'undefined') {
                el.find('tr[data-id]').mousedown(function (e) {
                    if (e.originalEvent.button == 0) {
                        t._moveStarted = false;
                    } else {
                        var trEl = $(this),
                            href = false;
                        if (href = t._getHrefFromTr(trEl, e)) {
                            var tdEl = $(e.target).css('position', 'relative'),
                                linkEl = $('<a href="' + href + '" style="width: 100%;left: 0; top: 0; height: 100%; display: block; position: absolute"></a>');

                            tdEl.append(linkEl);
                            setTimeout(function () {
                                linkEl.remove();
                            }, 10);
                        }

                        return false;
                    }
                });

                el.find('tr[data-id]').click(function (e) {
                    if (window.getSelection().toString().length) {
                        return false;
                    }

                    var trEl = $(this),
                        href = false;
                    if (href = t._getHrefFromTr(trEl, e)) {
                        if (typeof e.originalEvent !== 'undefined' && e.originalEvent.ctrlKey) {
                            window.open(href, '_blank');
                        } else {
                            location.href = href;
                        }
                    }
                });
            }
        },
        _getHrefFromTr: function (trEl, e) {
            var t = this,
                targetEl = $(e.target);
            if (!(targetEl.parents('a,button,input').length || targetEl.is('a,button,input'))) {
                var id = trEl.attr('data-id'),
                    url = t.options.updateUrl,
                    delimiter = null;
                if (url.search('\\?') !== -1) {
                    delimiter = '&';
                } else {
                    delimiter = '?';
                }

                return url + delimiter + 'id=' + id;
            }
        },
        _initEvents: function () {
            var t = this;
        }
    })
})();
{'fraction_non_alphanumeric': 0.12908212560386473, 'fraction_numerical': 0.00463768115942029, 'mean_word_length': 0.8925045703839123, 'pattern_counts': {'":': 0, '<': 7, '<?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': '329492', 'n_tokens_mistral': 1347, 'n_tokens_neox': 1242, 'n_words': 251}