<commit_before>#Copyright 2016 <NAME>.
#Distributed under the MIT License. See LICENSE in root of project.

"""
A dashboard is the main ui component in a kervi application.

"""

_DASHBOARDS = []

from kervi.core.utility.component import KerviComponent
import kervi.spine as spine

class DashboardPanelGroup(object):
    r"""
        Create a group of dashboard panels.

        :param group_id:
            id of the group.
            
        :type group_id: str

        :param \**kwargs:
            See below

        :Keyword Arguments:
            * *title* (``str``) -- Title of the group.
            * *columns* (``int``) -- Number of columns in this group, default is 1.
            * *rows* (``int``) -- Number of rows in this panel, default is 1.
            * *user_log* (``bool``) -- This panel shows user log messages. Any components that are linked to a user log panel are ignored.
            * *collapsed* (``bool``) -- If true the body of the panel is collapsed.

        """
    def __init__(self, panels=None, **kwargs):
        #KerviComponent.__init__(self, panel_id, "Dashboard-panel", name)
        self.spine = spine.Spine()
        self.group_id = kwargs.get("title", None)
        self.ui_parameters = {
            "label":kwargs.get("title", ""),
            "width":kwargs.get("width", 0),
            "height":kwargs.get("height", 0),
            "gauge_width":kwargs.get("gauge_width", 0),<commit_msg>Add flex layout parameter to panel group<commit_after>#Copyright 2016 <NAME>.
#Distributed under the MIT License. See LICENSE in root of project.

"""
A dashboard is the main ui component in a kervi application.

"""

_DASHBOARDS = []

from kervi.core.utility.component import KerviComponent
import kervi.spine as spine

class DashboardPanelGroup(object):
    r"""
        Create a group of dashboard panels.

        :param group_id:
            id of the group.
            
        :type group_id: str

        :param \**kwargs:
            See below

        :Keyword Arguments:
            * *title* (``str``) -- Title of the group.
            * *columns* (``int``) -- Number of columns in this group, default is 1.
            * *rows* (``int``) -- Number of rows in this panel, default is 1.
            * *user_log* (``bool``) -- This panel shows user log messages. Any components that are linked to a user log panel are ignored.
            * *collapsed* (``bool``) -- If true the body of the panel is collapsed.

        """
    def __init__(self, panels=None, **kwargs):
        #KerviComponent.__init__(self, panel_id, "Dashboard-panel", name)
        self.spine = spine.Spine()
        self.group_id = kwargs.get("title", None)
        self.ui_parameters = {
            "label":kwargs.get("title", ""),
            "width":kwargs.get("width", 0),
            "height":kwargs.get("height", 0),
            "layout":kwargs.get("layout", "row"),
            "gauge_width":kwargs.get("gauge_width", 0),
{'fraction_non_alphanumeric': 0.12953543574092913, 'fraction_numerical': 0.006103763987792472, 'mean_word_length': 2.2924107142857144, 'pattern_counts': {'":': 9, '<': 5, '<?xml version=': 0, '>': 5, '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': '4997637', 'n_tokens_mistral': 879, 'n_tokens_neox': 848, 'n_words': 283}