<commit_before>include top_menu.jade

.col-lg-12.row.top-row.enabled-projects-row.dashboard-row
    h2
        | Enabled projects
        a.btn.btn-default.add-project-button(
            href='#/projects/manage/', tooltip='Add new project',
            tooltip-placement='right'
        )
            i.icon-plus
    table.table.table-hover
        tr(ng-repeat="project in projects")
            td
                img.project-icon(ng-src='{{project.icon}}')
                i.icon-lock(ng-show="project.is_private")
                a(href='#/projects/{{project.name}}') {{project.name}}
                br
                canvas(
                    fullfill, linechart, options='project.chart.options',
                    data='project.chart.data', height=100
                )

.col-lg-12.row.last-tasks-row.dashboard-row
    h2 Last performed tasks
    table.table.table-hover(
        infinite-scroll='tasks.load()',
        infinite-scroll-distance='2'
    )
        tr(
            ng-repeat='task in tasks.items'
            class='{{task.status == 1 && "success" || "failed"}}'
        )
            td
                a(href='#/projects/{{task.project}}/') {{task.project}}
                | :&nbsp;
                a(href='#/tasks/{{task.id}}/').
                    {{task.commit.branch}}\#{{task.commit.range}}
            td {{task.success_percent}}%
            td
                span.pull-right {{task.created}}
<commit_msg>Add you don't have enabled projects badge<commit_after>include top_menu.jade

.col-lg-12.row.top-row.enabled-projects-row.dashboard-row
    h2
        | Enabled projects
        a.btn.btn-default.add-project-button(
            href='#/projects/manage/', tooltip='Add new project',
            tooltip-placement='right'
        )
            i.icon-plus
    table.table.table-hover
        tr(ng-repeat="project in projects")
            td
                img.project-icon(ng-src='{{project.icon}}')
                i.icon-lock(ng-show="project.is_private")
                a(href='#/projects/{{project.name}}') {{project.name}}
                br
                canvas(
                    fullfill, linechart, options='project.chart.options',
                    data='project.chart.data', height=100
                )
        tr(ng-show='!projects.length')
            td You don't have enabled projects.

.col-lg-12.row.last-tasks-row.dashboard-row
    h2 Last performed tasks
    table.table.table-hover(
        infinite-scroll='tasks.load()',
        infinite-scroll-distance='2'
    )
        tr(
            ng-repeat='task in tasks.items'
            class='{{task.status == 1 && "success" || "failed"}}'
        )
            td
                a(href='#/projects/{{task.project}}/') {{task.project}}
                | :&nbsp;
                a(href='#/tasks/{{task.id}}/').
                    {{task.commit.branch}}\#{{task.commit.range}}
            td {{task.success_percent}}%
            td
                span.pull-right {{task.created}}

{'fraction_non_alphanumeric': 0.1535131535131535, 'fraction_numerical': 0.007326007326007326, 'mean_word_length': 1.5918895599654874, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '746608', 'n_tokens_mistral': 902, 'n_tokens_neox': 860, 'n_words': 125}