<commit_before>//----------------------------------------------------------------------------
//  Copyright (C) 2012  The IPython Development Team
//
//  Distributed under the terms of the BSD License.  The full license is in
//  the file COPYING, distributed as part of this software.
//----------------------------------------------------------------------------

// Add help panel at right side of notebook window, load and display "helpstring.html"
"using strict";

toggleHelpPanel = function () {
    /* check if help panel is already there */
    var a= $("#helpPanel").html();
    if ( a == undefined ) {
        /* reduce notebook width */
        $("#notebook_panel").css({"float": "left","overflow-x": "hidden","height": "100%","width": "82%"});
        /* add panel to the right of notebook */
        var helppanel = '<div id="helpPanel"><p>dummy</p></div>';
        $("#ipython-main-app").append(helppanel);
        $('#helpPanel').css({"height":"100%","width":"300px", "float":"right"});
        /* load html help page */
        $.get('/static/custom/help_panel.html', function(data) {
            $('#helpPanel').html(data);
            /* dynamically add help text from extensions */
            for (var key in IPython.hotkeys) {
                var str = '<tr><td>' + key + '</td><td>' + IPython.hotkeys[key] + '</td></tr>';
                console.log($('#help-table'),str);
                $('#help-table').append(str);
            }
        });
    }
    else {<commit_msg>Fix panel with<commit_after>//----------------------------------------------------------------------------
//  Copyright (C) 2012  The IPython Development Team
//
//  Distributed under the terms of the BSD License.  The full license is in
//  the file COPYING, distributed as part of this software.
//----------------------------------------------------------------------------

// Add help panel at right side of notebook window, load and display "helpstring.html"
"using strict";

toggleHelpPanel = function () {
    /* check if help panel is already there */
    var a= $("#helpPanel").html();
    if ( a == undefined ) {
        /* reduce notebook width */
        $("#notebook_panel").css({"float": "left","overflow-x": "hidden","height": "100%","width": "80%"});
        /* add panel to the right of notebook */
        var helppanel = '<div id="helpPanel"><p>dummy</p></div>';
        $("#ipython-main-app").append(helppanel);
        $('#helpPanel').css({"height":"100%","width":"20%", "float":"right", "overflow-x": "visible"});
        /* load html help page */
        $.get('/static/custom/help_panel.html', function(data) {
            $('#helpPanel').html(data);
            /* dynamically add help text from extensions */
            for (var key in IPython.hotkeys) {
                var str = '<tr><td>' + key + '</td><td>' + IPython.hotkeys[key] + '</td></tr>';
                console.log($('#help-table'),str);
                $('#help-table').append(str);
            }
        },"html");
    }
    else {
{'fraction_non_alphanumeric': 0.2711022840119166, 'fraction_numerical': 0.009599470374048328, 'mean_word_length': 1.7724770642201835, 'pattern_counts': {'":': 15, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5765523', 'n_tokens_mistral': 809, 'n_tokens_neox': 789, 'n_words': 225}