<commit_before>RuntimeView = LCS.class{}

function RuntimeView:init()
    self.started = false --FIXME: check instead of assuming
    self.btnStartStop = Button:New {
        caption='',
        y = 1,
        x = 1,
        height = 45,
        width = 45,
        backgroundColor = SCEN_EDIT.conf.BTN_ADD_COLOR,
        OnClick = {
            function() 
                if not self.started then
                    local cmd = StartCommand()
                    SCEN_EDIT.commandManager:execute(cmd)
                    self:GameStarted()
                else
                    local cmd = StopCommand()
                    SCEN_EDIT.commandManager:execute(cmd)
                    self:GameStopped()
                end
            end
        }
    }
    self:UpdateStartStopButton()
    self.dvv = StackPanel:New {
        itemMargin = {0, 0, 0, 0},
        x = 1,
        y = 1,
        right = 1,
        autosize = true,
        resizeItems = false,
    }
    self.dtv = StackPanel:New {
        itemMargin = {0, 0, 0, 0},
        x = 1,
        y = 1,
        right = 1,
        autosize = true,
        resizeItems = false,
    }
    self.btnToggleShowDevelop = Button:New {
        caption='Hide dev view',
        x = 55,
        y = 1,
        width= 110,
        height = SCEN_EDIT.conf.B_HEIGHT + 20,
        tooltip = "Toggle displaying of debugging symbols",
        OnClick = {
            function() 
                SCEN_EDIT.view.displayDevelop = not SCEN_EDIT.view.displayDevelop
                if SCEN_EDIT.view.displayDevelop then
                    self.btnToggleShowDevelop.caption = 'Hide dev view'
                else
                    self.btnToggleShowDevelop.caption = 'Show dev view'
                end
            end
        }
    }
    self.runtimeViewWindow = Window:New {
        parent = screen0,
        caption = "Runtime Window",
        x = screen0.width - 375,
        y = 370,
		resizable = true,
        width = 375,
        height = 300,
        children = {
            Control:New {
                orientation = 'horizontal',
                width = '100%',
                y = 10,
                height = SCEN_EDIT.conf.B_HEIGHT * 2,
                padding = {0,0,0,0},
                itemPadding = {0,10,10,10},
                itemMargin = {0,0,0,0},
                children = {
                    self.btnStartStop,
                    self.btnToggleShowDevelop,
                },
            },
            StackPanel:New {
                y = SCEN_EDIT.conf.B_HEIGHT * 2 + 10,
                x = 1,
                right = 1,
                bottom = 1,
                itemMargin = {0, 0, 0, 0},<commit_msg>updated runtime view y coord<commit_after>RuntimeView = LCS.class{}

function RuntimeView:init()
    self.started = false --FIXME: check instead of assuming
    self.btnStartStop = Button:New {
        caption='',
        y = 1,
        x = 1,
        height = 45,
        width = 45,
        backgroundColor = SCEN_EDIT.conf.BTN_ADD_COLOR,
        OnClick = {
            function() 
                if not self.started then
                    local cmd = StartCommand()
                    SCEN_EDIT.commandManager:execute(cmd)
                    self:GameStarted()
                else
                    local cmd = StopCommand()
                    SCEN_EDIT.commandManager:execute(cmd)
                    self:GameStopped()
                end
            end
        }
    }
    self:UpdateStartStopButton()
    self.dvv = StackPanel:New {
        itemMargin = {0, 0, 0, 0},
        x = 1,
        y = 1,
        right = 1,
        autosize = true,
        resizeItems = false,
    }
    self.dtv = StackPanel:New {
        itemMargin = {0, 0, 0, 0},
        x = 1,
        y = 1,
        right = 1,
        autosize = true,
        resizeItems = false,
    }
    self.btnToggleShowDevelop = Button:New {
        caption='Hide dev view',
        x = 55,
        y = 1,
        width= 110,
        height = SCEN_EDIT.conf.B_HEIGHT + 20,
        tooltip = "Toggle displaying of debugging symbols",
        OnClick = {
            function() 
                SCEN_EDIT.view.displayDevelop = not SCEN_EDIT.view.displayDevelop
                if SCEN_EDIT.view.displayDevelop then
                    self.btnToggleShowDevelop.caption = 'Hide dev view'
                else
                    self.btnToggleShowDevelop.caption = 'Show dev view'
                end
            end
        }
    }
    self.runtimeViewWindow = Window:New {
        parent = screen0,
        caption = "Runtime Window",
        x = screen0.width - 375,
        y = 350,
		resizable = true,
        width = 375,
        height = 300,
        children = {
            Control:New {
                orientation = 'horizontal',
                width = '100%',
                y = 10,
                height = SCEN_EDIT.conf.B_HEIGHT * 2,
                padding = {0,0,0,0},
                itemPadding = {0,10,10,10},
                itemMargin = {0,0,0,0},
                children = {
                    self.btnStartStop,
                    self.btnToggleShowDevelop,
                },
            },
            StackPanel:New {
                y = SCEN_EDIT.conf.B_HEIGHT * 2 + 10,
                x = 1,
                right = 1,
                bottom = 1,
                itemMargin = {0, 0, 0, 0},
{'fraction_non_alphanumeric': 0.09265116279069767, 'fraction_numerical': 0.027162790697674417, 'mean_word_length': 1.1756373937677054, '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': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '948533', 'n_tokens_mistral': 1683, 'n_tokens_neox': 1464, 'n_words': 345}