<commit_before>import('GlobalVars')

options = {
            { key = "escape", name = "Return", loc = "Xsera/MainMenu" },
            { key = "x", name = "Console", loc = "Xsera/ConsoleDrawer" },
            { key = "t", name = "Turret Test", loc = "../Tests/TurretTest" },
            { key = "s", name = "Ares Splash", loc = "Ares/Splash" },
            { key = "1", name = "Client-Server Tests", loc = "../Tests/CSTest" },
            { key = "2", name = "<blank>", loc = nil },
            { key = "3", name = "Window Test", loc = "../Tests/WindowTest" },
            { key = "4", name = "Text Test", loc = "../Tests/TurretTest" },
            { key = "5", name = "<blank>", loc = nil },
            { key = "6", name = "Preference Test", loc = "../Tests/PreferenceTest" },
            { key = "7", name = "Physics Test", loc = "../Tests/PhysicsTest" },
            { key = "8", name = "Bit Test", loc = "../Tests/Bits" },
            { key = "9", name = "3D Test", loc = "../Tests/3DTest" },
            { key = "0", name = "XNet Test", loc = "../Tests/XNetTest" }
          }

function init ()
    local camera = { w = 800, h = 600 }
    graphics.set_camera(-camera.w / 2, -camera.h / 2, camera.w / 2, camera.h / 2)
end

function render ()
    graphics.begin_frame()
    
    for i = 1, #options do
        graphics.draw_text(options[i].key .. " - " .. options[i].name, MAIN_FONT, "left", { x = -390, y = 320 - 40 * i }, 30)
    end
    
    graphics.end_frame()
end

function key ( k )
    for i = 1, #options do
        if options[i].key == k then
            mode_manager.switch(options[i].loc)
        end
    end
end<commit_msg>Whitespace improvement.<commit_after>import('GlobalVars')

options = {
            { key = "escape", name = "Return",              loc = "Xsera/MainMenu" },
            { key = "x",      name = "Console",             loc = "Xsera/ConsoleDrawer" },
            { key = "t",      name = "Turret Test",         loc = "../Tests/TurretTest" },
            { key = "s",      name = "Ares Splash",         loc = "Ares/Splash" },
            { key = "1",      name = "Client-Server Tests", loc = "../Tests/CSTest" },
            { key = "2",      name = "<blank>",             loc = nil },
            { key = "3",      name = "Window Test",         loc = "../Tests/WindowTest" },
            { key = "4",      name = "Text Test",           loc = "../Tests/TurretTest" },
            { key = "5",      name = "<blank>",             loc = nil },
            { key = "6",      name = "Preference Test",     loc = "../Tests/PreferenceTest" },
            { key = "7",      name = "Physics Test",        loc = "../Tests/PhysicsTest" },
            { key = "8",      name = "Bit Test",            loc = "../Tests/Bits" },
            { key = "9",      name = "3D Test",             loc = "../Tests/3DTest" },
            { key = "0",      name = "XNet Test",           loc = "../Tests/XNetTest" }
          }

function init ()
    local camera = { w = 800, h = 600 }
    graphics.set_camera(-camera.w / 2, -camera.h / 2, camera.w / 2, camera.h / 2)
end

function render ()
    graphics.begin_frame()
    
    for i = 1, #options do
        graphics.draw_text(options[i].key .. " - " .. options[i].name, MAIN_FONT, "left", { x = -390, y = 300 - 25 * i }, 20)
    end
    
    graphics.end_frame()
end

function key ( k )
    for i = 1, #options do
        if options[i].key == k then
            mode_manager.switch(options[i].loc)
        end
    end
end
{'fraction_non_alphanumeric': 0.18764367816091954, 'fraction_numerical': 0.01954022988505747, 'mean_word_length': 1.5842613214550854, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2959699', 'n_tokens_mistral': 1162, 'n_tokens_neox': 1115, 'n_words': 302}