<commit_before><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="user-scalable=no, width=320, initial-scale=1, maximum-scale=1">
    <!--<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">-->
    <title>Spider Math</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link rel="stylesheet" href="Styles/css/Loading.css">
</head>
<body class="loadingScreen" data-bind="globalInput: $root">

    <div id="loadingScreen" class="loadingScreen">
        <div style="height: 50px"></div>
        <div>
            <img src="Assets/images/SpiderMath_240.png" />
        </div>
        <img src="Assets/images/mainLoader.gif" />
        <div>Loading...</div>
        <div id="loadingProgress"></div>
    </div>

    <div data-role="page" id="home" style="display: none">
        <div data-role="header" class="header">
            <h1>Spider Math</h1>
        </div>
        <div id="content" data-role="content">

            <!--MainContent-->

            <!-- Game Menu -->

            <div class="gameMenu" data-bind="visible: shouldDisplayGameMenu">
                <!-- ko if (menu().shouldDisplayUsers) -->
                <h3 class="level"><span data-bind="text: menu().currentUser"></span></h3>
                <ul data-bind="foreach: menu().users">
                    <li class="menuUser" data-bind="click: $root.menuChooseUser, visible: !isEditing() && !isAddUser()">
                        <span data-bind="text: user"></span>
                        <div class="editUser" data-bind="click: $root.menuEditUser"></div>
                    </li>
                    <li class="menuEditUser" data-bind="visible: isEditing()">
                        <input data-bind="value: user, event: {change:$root.menuEditUser_Change}" />
                    </li>
                    <li class="menuAddUser" data-bind="click: $root.menuAddUser, visible: isAddUser() && !isEditing()">
                        <span>Add User</span>
                    </li>
                </ul>
                <!-- /ko -->
                <!-- ko if (menu().shouldDisplayWorlds) -->
                <h3 class="level" data-bind="click: changeUser"><span data-bind="text: menu().currentUser"></span></h3>
                <ul data-bind="foreach: menu().worlds">
                    <li class="menuWorld" data-bind="click: $root.menuChooseWorld, css: {lock: isLocked()}">World <span data-bind="text: worldNumber"></span>
                        <div class="worldStars"><i class="starSingle"></i><span data-bind="text: stars"></span>/ <span data-bind="text: maxStars"></span></div>
                    </li>
                </ul>
                <!-- /ko -->
                <!-- ko if (menu().shouldDisplayLevels) -->
                <h3 class="level" data-bind="click: changeWorld">World <span data-bind="text: menu().currentWorld().worldNumber"></span></h3>
                <ul data-bind="foreach: menu().currentWorld().levels">
                    <li class="menuLevel" data-bind="click: $root.menuChooseLevel, css: {lock: isLocked()}">Level <span data-bind="text: levelNumber"></span>
                        <i class="star" data-bind="css: starsClass"></i>
                    </li>
                </ul>
                <!-- /ko -->
            </div>

            <!-- Game Over -->
            <div class="gameOverPopup" data-bind="visible: shouldDisplayGameOver()">
                <div class="gameOver">
                    <span data-bind="visible: !gameOverHasWon()">Defeated!</span>
                    <span data-bind="visible: gameOverHasWon()">Success!</span>
                </div>

                <div class="info">
                    <div class="level">
                        World <span data-bind="text: world"></span>
                        <br />
                        Level <span data-bind="text: level"></span>
                    </div>

                    <i class="star bigstar" data-bind="css: gameOverStarsClass"></i>

                    <div class="score">
                        <span data-bind="text: score"></span>
                    </div>
                    <div>
                        <div class="levelReplay" data-bind="click: handleLevelReplay"></div>
                        <div class="levelMenu" data-bind="click: handleLevelMenu"></div>
                        <div class="levelNext" data-bind="click: handleLevelNext, visible:gameOverHasWon()"></div>
                    </div>


                </div>
            </div>

            <!-- Game -->

            <div data-bind="visible: shouldDisplayGame()">
                <div class="info">
                    <div class="level">
                        World <span data-bind="text: world"></span>
                        <br />
                        <!--Stage <span data-bind="text: stage"></span><br />-->
                        Level <span data-bind="text: level"></span>
                    </div>
                </div>

                <div class="scoreChange" data-bind="animScoreChange: scoreChange">
                    <span data-bind="text: scoreChange, css: scoreChangeClassName"></span>
                </div>

                <div class="numTable">
                    <table data-bind="foreach: board().rows">
                        <tr data-bind="foreach: cells">
                            <!-- ko if (isHeading) -->
                            <td class="numSquareCellHeading" data-bind="css: cellClassName">
                                <div class="numSquareHeading" data-bind="text: text, css: cellClassName"></div>
                            </td>
                            <!-- /ko -->
                            <!-- ko if (!isHeading) -->
                            <td class="numSquareCell" data-bind="css: cellClassName">
                                <div class="numSquare" data-bind="attr: {id: id}">
                                    <!--<span data-bind="fadeText:text"></span>-->
                                    <span data-bind="text:text, css: cellClassName, visible: !($root.isPaused())"></span>
                                </div>
                            </td>
                            <!-- /ko -->
                        </tr>
                    </table>
                </div>

                <div class="pause" data-bind="visible:isPaused">
                    Pause
                </div>

                <div class="info">
                    <!--<div class="level">
                    Level <span data-bind="text: level"></span>
                </div>-->
                    <div class="score">
                        <span id="score" data-bind="text: score"></span>
                    </div>
                </div>

            </div>

        </div>
        <div data-role="footer" class="footer">
            <h4>&copy; Told - Rick & <NAME> - 2014</h4>
        </div>
    </div>

    <div id="test" style="display: none">
        <div data-role="header">
            <h1>Greek Bible - Testing</h1>
        </div>
        <div data-role="content">
            <div id="qunit">Please refresh to load the testing system.</div>
        </div>
        <div data-role="footer">
            <h4>&copy; Told - Rick & <NAME> - 2014</h4>
        </div><commit_msg>Hide Header and Footer during game<commit_after><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="user-scalable=no, width=320, initial-scale=1, maximum-scale=1">
    <!--<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">-->
    <title>Spider Math</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link rel="stylesheet" href="Styles/css/Loading.css">
</head>
<body class="loadingScreen" data-bind="globalInput: $root">

    <div id="loadingScreen" class="loadingScreen">
        <div style="height: 50px"></div>
        <div>
            <img src="Assets/images/SpiderMath_240.png" />
        </div>
        <img src="Assets/images/mainLoader.gif" />
        <div>Loading...</div>
        <div id="loadingProgress"></div>
    </div>

    <div data-role="page" id="home" style="display: none">
        <div class="header" data-bind="visible: !shouldDisplayGame()">
            <h1>Spider Math</h1>
        </div>
        <div id="content" data-role="content">

            <!--MainContent-->

            <!-- Game Menu -->

            <div class="gameMenu" data-bind="visible: shouldDisplayGameMenu">
                <!-- ko if (menu().shouldDisplayUsers) -->
                <h3 class="level"><span data-bind="text: menu().currentUser"></span></h3>
                <ul data-bind="foreach: menu().users">
                    <li class="menuUser" data-bind="click: $root.menuChooseUser, visible: !isEditing() && !isAddUser()">
                        <span data-bind="text: user"></span>
                        <div class="editUser" data-bind="click: $root.menuEditUser"></div>
                    </li>
                    <li class="menuEditUser" data-bind="visible: isEditing()">
                        <input data-bind="value: user, event: {change:$root.menuEditUser_Change}" />
                    </li>
                    <li class="menuAddUser" data-bind="click: $root.menuAddUser, visible: isAddUser() && !isEditing()">
                        <span>Add User</span>
                    </li>
                </ul>
                <!-- /ko -->
                <!-- ko if (menu().shouldDisplayWorlds) -->
                <h3 class="level" data-bind="click: changeUser"><span data-bind="text: menu().currentUser"></span></h3>
                <ul data-bind="foreach: menu().worlds">
                    <li class="menuWorld" data-bind="click: $root.menuChooseWorld, css: {lock: isLocked()}">World <span data-bind="text: worldNumber"></span>
                        <div class="worldStars"><i class="starSingle"></i><span data-bind="text: stars"></span>/ <span data-bind="text: maxStars"></span></div>
                    </li>
                </ul>
                <!-- /ko -->
                <!-- ko if (menu().shouldDisplayLevels) -->
                <h3 class="level" data-bind="click: changeWorld">World <span data-bind="text: menu().currentWorld().worldNumber"></span></h3>
                <ul data-bind="foreach: menu().currentWorld().levels">
                    <li class="menuLevel" data-bind="click: $root.menuChooseLevel, css: {lock: isLocked()}">Level <span data-bind="text: levelNumber"></span>
                        <i class="star" data-bind="css: starsClass"></i>
                    </li>
                </ul>
                <!-- /ko -->
            </div>

            <!-- Game Over -->
            <div class="gameOverPopup" data-bind="visible: shouldDisplayGameOver()">
                <div class="gameOver">
                    <span data-bind="visible: !gameOverHasWon()">Defeated!</span>
                    <span data-bind="visible: gameOverHasWon()">Success!</span>
                </div>

                <div class="info">
                    <div class="level">
                        World <span data-bind="text: world"></span>
                        <br />
                        Level <span data-bind="text: level"></span>
                    </div>

                    <i class="star bigstar" data-bind="css: gameOverStarsClass"></i>

                    <div class="score">
                        <span data-bind="text: score"></span>
                    </div>
                    <div>
                        <div class="levelReplay" data-bind="click: handleLevelReplay"></div>
                        <div class="levelMenu" data-bind="click: handleLevelMenu"></div>
                        <div class="levelNext" data-bind="click: handleLevelNext, visible:gameOverHasWon()"></div>
                    </div>


                </div>
            </div>

            <!-- Game -->

            <div data-bind="visible: shouldDisplayGame()">
                <div class="info">
                    <div class="level">
                        World <span data-bind="text: world"></span>
                        <br />
                        <!--Stage <span data-bind="text: stage"></span><br />-->
                        Level <span data-bind="text: level"></span>
                    </div>
                </div>

                <div class="scoreChange" data-bind="animScoreChange: scoreChange">
                    <span data-bind="text: scoreChange, css: scoreChangeClassName"></span>
                </div>

                <div class="numTable">
                    <table data-bind="foreach: board().rows">
                        <tr data-bind="foreach: cells">
                            <!-- ko if (isHeading) -->
                            <td class="numSquareCellHeading" data-bind="css: cellClassName">
                                <div class="numSquareHeading" data-bind="text: text, css: cellClassName"></div>
                            </td>
                            <!-- /ko -->
                            <!-- ko if (!isHeading) -->
                            <td class="numSquareCell" data-bind="css: cellClassName">
                                <div class="numSquare" data-bind="attr: {id: id}">
                                    <!--<span data-bind="fadeText:text"></span>-->
                                    <span data-bind="text:text, css: cellClassName, visible: !($root.isPaused())"></span>
                                </div>
                            </td>
                            <!-- /ko -->
                        </tr>
                    </table>
                </div>

                <div class="pause" data-bind="visible:isPaused">
                    Pause
                </div>

                <div class="info">
                    <!--<div class="level">
                    Level <span data-bind="text: level"></span>
                </div>-->
                    <div class="score">
                        <span id="score" data-bind="text: score"></span>
                    </div>
                </div>

            </div>

        </div>
        <div class="footer" data-bind="visible: !shouldDisplayGame()">
            <h4>&copy; Told - Rick & <NAME> - 2014</h4>
        </div>
    </div>

    <div id="test" style="display: none">
        <div data-role="header">
            <h1>Greek Bible - Testing</h1>
        </div>
        <div data-role="content">
            <div id="qunit">Please refresh to load the testing system.</div>
        </div>
        <div data-role="footer">
            <h4>&copy; Told - Rick & <NAME> - 2014</h4>
        </div>
{'fraction_non_alphanumeric': 0.16692720723169985, 'fraction_numerical': 0.004757697274519133, 'mean_word_length': 1.4304592005285761, 'pattern_counts': {'":': 0, '<': 401, '<?xml version=': 0, '>': 401, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1595441', 'n_tokens_mistral': 4076, 'n_tokens_neox': 3807, 'n_words': 770}