<commit_before>var RcmAvailablePluginsMenu = {

    build: function () {

        $(function () {
            var menu = $('<div class="availablePluginsMenu panel panel-default">');
            $('body').prepend(menu);

            menu.css('top', $('.rcmAdminPanelWrapper').height());
            menu.append('<h1 class="panel-heading">Available Plugins</h1>');
            var accordion = $('<div class="panel-group" id="availablePluginsGroup">');
            menu.append(accordion);
            menu.draggable();
            var categoryIndex = 0;

            $.each(window.rcmAvailablePlugins, function (category, plugins) {
                var collapseId = 'availablePluginsCollapse' + categoryIndex;

                var group = $('<div class="panel panel-default">');
                group.appendTo(accordion);

                var link = $('<a class="panel-link">');
                link.appendTo(group);
                link.attr('data-parent', '#availablePluginsGroup');
                link.attr('data-toggle', 'collapse');
                link.attr('href', '#' + collapseId);

                var heading = $('<div class="panel-heading">');
                heading.appendTo(link);

                var title = $('<h4 class="panel-title">');
                title.appendTo(heading);
                title.html(category);

                var collapse = $('<div class="panel-collapse collapse">');
                collapse.appendTo(group);
                collapse.attr('id', collapseId);

                var collapseBody = $('<div class="panel-body">');
                collapse.append(collapseBody);

                $.each(plugins, function (name, pluginInfo) {
                    var plugin = $('<div class="rcmPluginDrag panel-inner">');
                    plugin.appendTo(collapseBody);
                    plugin.data('pluginName', name);

                    var icon = $('<img>');
                    icon.attr('src', pluginInfo.icon);
                    icon.appendTo(plugin);
                    var displayName = $('<span>');
                    displayName.appendTo(plugin);
                    displayName.html(pluginInfo.displayName);
                });
                categoryIndex++;
            });
        });
    }
};


<commit_msg>made list of plugins draggable<commit_after>var RcmAvailablePluginsMenu = {

    build: function () {

        $(function () {
            var menu = $('<div class="availablePluginsMenu panel panel-default">');
            $('body').prepend(menu);

            menu.css('top', $('.rcmAdminPanelWrapper').height());
            var header = $('<h1 class="panel-heading">Available Plugins</h1>');
            header.mouseover(function(){
                menu.draggable();

            });
            header.mouseout(function(){
                menu.draggable("destroy");
             });
            menu.append(header);

            var accordion = $('<div class="panel-group" id="availablePluginsGroup">');
            menu.append(accordion);

            var categoryIndex = 0;

            $.each(window.rcmAvailablePlugins, function (category, plugins) {
                var collapseId = 'availablePluginsCollapse' + categoryIndex;

                var group = $('<div class="panel panel-default">');
                group.appendTo(accordion);

                var link = $('<a class="panel-link">');
                link.appendTo(group);
                link.attr('data-parent', '#availablePluginsGroup');
                link.attr('data-toggle', 'collapse');
                link.attr('href', '#' + collapseId);

                var heading = $('<div class="panel-heading">');
                heading.appendTo(link);

                var title = $('<h4 class="panel-title">');
                title.appendTo(heading);
                title.html(category);

                var collapse = $('<div class="panel-collapse collapse">');
                collapse.appendTo(group);
                collapse.attr('id', collapseId);

                var collapseBody = $('<div class="panel-body">');
                collapse.append(collapseBody);

                $.each(plugins, function (name, pluginInfo) {
                    var plugin = $('<div class="rcmPluginDrag panel-inner">');
                    plugin.appendTo(collapseBody);
                    plugin.data('pluginName', name);

                    var icon = $('<img>');
                    icon.attr('src', pluginInfo.icon);
                    icon.appendTo(plugin);
                    var displayName = $('<span>');
                    displayName.appendTo(plugin);
                    displayName.html(pluginInfo.displayName);
                });
                categoryIndex++;
            });
        });
    }
};



{'fraction_non_alphanumeric': 0.14784437434279707, 'fraction_numerical': 0.0016824395373291271, 'mean_word_length': 1.655499720826354, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '4142666', 'n_tokens_mistral': 1225, 'n_tokens_neox': 1124, 'n_words': 210}