<commit_before>(function($) {

    function ColumnPicker(grid, options) {

        var $menu;

        var defaults = {
            fadeSpeed: 250,
            showSyncResize: true
        };

        function init() {
            grid.onHeaderContextMenu = displayContextMenu;
            options = $.extend({}, defaults, options);

            $menu = $("<div class='slick-columnpicker' style='display:none;position:absolute;z-index:20;' />").appendTo(document.body);

            $menu.bind("mouseleave", function(e) { $(this).fadeOut(options.fadeSpeed) });
            $menu.bind("click", updateColumn);
        }

        function displayContextMenu(e) {
            $menu.empty();

            var visibleColumns = grid.getColumns();<commit_msg>Added preventDefault to displayContextMenu event<commit_after>(function($) {

    function ColumnPicker(grid, options) {

        var $menu;

        var defaults = {
            fadeSpeed: 250,
            showSyncResize: true
        };

        function init() {
            grid.onHeaderContextMenu = displayContextMenu;
            options = $.extend({}, defaults, options);

            $menu = $("<div class='slick-columnpicker' style='display:none;position:absolute;z-index:20;' />").appendTo(document.body);

            $menu.bind("mouseleave", function(e) { $(this).fadeOut(options.fadeSpeed) });
            $menu.bind("click", updateColumn);
        }

        function displayContextMenu(e) {
            e.preventDefault();
            $menu.empty();

            var visibleColumns = grid.getColumns();
{'fraction_non_alphanumeric': 0.13894200127469725, 'fraction_numerical': 0.006373486297004461, 'mean_word_length': 2.277661795407098, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '315508', 'n_tokens_mistral': 432, 'n_tokens_neox': 406, 'n_words': 76}