<commit_before>import exadmin
from exadmin import views
from models import *
from exadmin.layout import *

from  exadmin.plugins.inline import Inline

class MainDashboard(object):
    widgets = [
        [
            {"type": "chart", "model": "app.accessrecord", 'chart': 'user_count', 'params': {'_p_date__gte': '2013-01-08', 'p': 1, '_p_date__lt': '2013-01-29'}},
            {"type": "list", "model": "app.host", 'params': {'o':'-guarantee_date'}},
            {"type": "html", "title": "Test Widget", "content": "<b> Hello World! </b>"},
        ],
        [
            {"type": "qbutton", "title": "Quick Start", "btns": [{'model': Host}, {'model':IDC}, {'title': "Google", 'url': "http://www.google.com"}]},
            {"type": "addform", "model": MaintainLog},
        ]
    ]
exadmin.site.register(views.website.IndexView, MainDashboard)

class GolbeSetting(object):
    globe_search_models = [Host, IDC]
exadmin.site.register(views.CommAdminView, GolbeSetting)

class MaintainInline(object):
    model = MaintainLog
    extra = 1
    style = 'accordion'
<commit_msg>put welcome widget first .<commit_after>import exadmin
from exadmin import views
from models import *
from exadmin.layout import *

from  exadmin.plugins.inline import Inline

class MainDashboard(object):
    widgets = [
        [
            {"type": "html", "title": "Test Widget", "content": "<h3> Welcome to Exadmin! </h3>"},
            {"type": "chart", "model": "app.accessrecord", 'chart': 'user_count', 'params': {'_p_date__gte': '2013-01-08', 'p': 1, '_p_date__lt': '2013-01-29'}},
            {"type": "list", "model": "app.host", 'params': {'o':'-guarantee_date'}},
        ],
        [
            {"type": "qbutton", "title": "Quick Start", "btns": [{'model': Host}, {'model':IDC}, {'title': "Google", 'url': "http://www.google.com"}]},
            {"type": "addform", "model": MaintainLog},
        ]
    ]
exadmin.site.register(views.website.IndexView, MainDashboard)

class GolbeSetting(object):
    globe_search_models = [Host, IDC]
exadmin.site.register(views.CommAdminView, GolbeSetting)

class MaintainInline(object):
    model = MaintainLog
    extra = 1
    style = 'accordion'

{'fraction_non_alphanumeric': 0.19128440366972477, 'fraction_numerical': 0.01743119266055046, 'mean_word_length': 3.515527950310559, 'pattern_counts': {'":': 24, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7352018', 'n_tokens_mistral': 751, 'n_tokens_neox': 728, 'n_words': 169}