<commit_before>// Test multicontainer class
casper.notebook_test(function () {
    index = this.append_cell(
        'from IPython.html import widgets\n' + 
        'from IPython.display import display, clear_output\n' +
        'print("Success")');
    this.execute_cell_then(index);

    // Test tab view
    var multicontainer1_query = '.widget-area .widget-subarea div div.nav-tabs';
    var multicontainer1_index = this.append_cell(
        'multicontainer = widgets.MulticontainerWidget()\n' +
        'page1 = widgets.StringWidget()\n' +
        'page2 = widgets.StringWidget()\n' +
        'page3 = widgets.StringWidget()\n' +
        'multicontainer.children = [page1, page2, page3]\n' +
        'display(multicontainer)\n' +
        'multicontainer.selected_index = 0\n' +
        'print("Success")\n');
    this.execute_cell_then(multicontainer1_index, function(index){
        print(this.get_output_cell(index).text);
        this.test.assert(this.get_output_cell(index).text == 'Success\n', 
            'Create multicontainer cell executed with correct output. (1)');

        this.test.assert(this.cell_element_exists(index, 
            '.widget-area .widget-subarea'),
            'Widget subarea exists.');

        this.test.assert(this.cell_element_exists(index, multicontainer1_query),
            'Widget tab list exists.');

        this.test.assert(this.cell_element_exists(index, multicontainer1_query),
            'First widget tab list exists.');<commit_msg>Output one more for debugging<commit_after>// Test multicontainer class
casper.notebook_test(function () {
    index = this.append_cell(
        'from IPython.html import widgets\n' + 
        'from IPython.display import display, clear_output\n' +
        'print("Success")');
    this.execute_cell_then(index);

    // Test tab view
    var multicontainer1_query = '.widget-area .widget-subarea div div.nav-tabs';
    var multicontainer1_index = this.append_cell(
        'multicontainer = widgets.MulticontainerWidget()\n' +
        'page1 = widgets.StringWidget()\n' +
        'page2 = widgets.StringWidget()\n' +
        'page3 = widgets.StringWidget()\n' +
        'multicontainer.children = [page1, page2, page3]\n' +
        'display(multicontainer)\n' +
        'multicontainer.selected_index = 0\n' +
        'print("Success")\n');
    this.execute_cell_then(multicontainer1_index, function(index){
        print(this.get_output_cell(index, 0).text);
        print(this.get_output_cell(index, 1).text);
        this.test.assert(this.get_output_cell(index).text == 'Success\n', 
            'Create multicontainer cell executed with correct output. (1)');

        this.test.assert(this.cell_element_exists(index, 
            '.widget-area .widget-subarea'),
            'Widget subarea exists.');

        this.test.assert(this.cell_element_exists(index, multicontainer1_query),
            'Widget tab list exists.');

        this.test.assert(this.cell_element_exists(index, multicontainer1_query),
            'First widget tab list exists.');
{'fraction_non_alphanumeric': 0.12914886625041078, 'fraction_numerical': 0.009201445941505093, 'mean_word_length': 2.9635416666666665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1115000', 'n_tokens_mistral': 968, 'n_tokens_neox': 944, 'n_words': 162}