<commit_before><?php
/**
 * @var \Illuminate\Support\Collection $registrations
 * @var array $load
 */
?>

@extends('layouts.master')

@section('page-header', 'Dashboard')

@section('content')
    <div class="row">
        <div class="col-sm-6">
            <div class="row">
                <div class="col-xs-6">
                    <div class="info-box">
                        @php($color = $registrations->count() > 0 ? 'aqua' : 'green')
                        <span class="info-box-icon bg-{{ $color }}">
                            <i class="fa fa-group"></i>
                        </span>
                        <div class="info-box-content">
                            <div class="info-box-text">Nieuwe registraties</div>
                            <div class="info-box-number">
                                {{ $registrations->count() }}
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xs-6">
                    <div class="info-box">
                        @php($color = ($load[0] >= 4) ? 'red' : ($load[0] >= 2 ? 'orange' : 'green'))
                        <span class="info-box-icon bg-{{ $color }}">
                            <i class="fa fa-dashboard"></i>
                        </span>
                        <div class="info-box-content">
                            <div class="info-box-text">CPU Load</div>
                            <div class="info-box-number">
                                {{ $load[0] }} <small>{{ $load[1] }} {{ $load[2] }}</small>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="box">
                <div class="box-header with-border">
                    <h3 class="box-title">Nieuwe registraties</h3>
                </div>
                <div class="box-body">
                    @if (!$registrations->isEmpty())
                        <table class="table">
                            <colgroup>
                                <col>
                                <col width="200">
                            </colgroup>
                            <thead>
                            <tr>
                                <th>Gebruiker</th>
                                <th>Wanneer</th>
                            </tr>
                            </thead>
                            <tbody>
                            @foreach ($registrations as $registration)
                                <?php /** @var \App\Models\Registration $registration */ ?>
                                <tr>
                                    <td><a href="{{ route('admin.registrations.show', $registration) }}">{{ $registration->username }}</a></td>
                                    <td>
                                        <abbr title="{{ $registration->created_at }}">{{ $registration->created_at->diffForHumans() }}</abbr>
                                    </td>
                                </tr>
                            @endforeach
                            </tbody>
                        </table>
                    @else
                        <p>Geen nieuwe registraties</p>
                    @endif
                </div>
            </div>
        </div>
    </div>
@endsection
<commit_msg>Ocd brackets<commit_after><?php
/**
 * @var \Illuminate\Support\Collection $registrations
 * @var array $load
 */
?>

@extends('layouts.master')

@section('page-header', 'Dashboard')

@section('content')
    <div class="row">
        <div class="col-sm-6">
            <div class="row">
                <div class="col-xs-6">
                    <div class="info-box">
                        @php($color = $registrations->count() > 0 ? 'aqua' : 'green')
                        <span class="info-box-icon bg-{{ $color }}">
                            <i class="fa fa-group"></i>
                        </span>
                        <div class="info-box-content">
                            <div class="info-box-text">Nieuwe registraties</div>
                            <div class="info-box-number">
                                {{ $registrations->count() }}
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xs-6">
                    <div class="info-box">
                        @php($color = $load[0] >= 4 ? 'red' : ($load[0] >= 2 ? 'orange' : 'green'))
                        <span class="info-box-icon bg-{{ $color }}">
                            <i class="fa fa-dashboard"></i>
                        </span>
                        <div class="info-box-content">
                            <div class="info-box-text">CPU Load</div>
                            <div class="info-box-number">
                                {{ $load[0] }} <small>{{ $load[1] }} {{ $load[2] }}</small>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="box">
                <div class="box-header with-border">
                    <h3 class="box-title">Nieuwe registraties</h3>
                </div>
                <div class="box-body">
                    @if (!$registrations->isEmpty())
                        <table class="table">
                            <colgroup>
                                <col>
                                <col width="200">
                            </colgroup>
                            <thead>
                            <tr>
                                <th>Gebruiker</th>
                                <th>Wanneer</th>
                            </tr>
                            </thead>
                            <tbody>
                            @foreach ($registrations as $registration)
                                <?php /** @var \App\Models\Registration $registration */ ?>
                                <tr>
                                    <td><a href="{{ route('admin.registrations.show', $registration) }}">{{ $registration->username }}</a></td>
                                    <td>
                                        <abbr title="{{ $registration->created_at }}">{{ $registration->created_at->diffForHumans() }}</abbr>
                                    </td>
                                </tr>
                            @endforeach
                            </tbody>
                        </table>
                    @else
                        <p>Geen nieuwe registraties</p>
                    @endif
                </div>
            </div>
        </div>
    </div>
@endsection

{'fraction_non_alphanumeric': 0.14254608796632312, 'fraction_numerical': 0.0049354042676731024, 'mean_word_length': 0.8093487394957983, 'pattern_counts': {'":': 0, '<': 155, '<?xml version=': 0, '>': 175, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1365022', 'n_tokens_mistral': 1748, 'n_tokens_neox': 1645, 'n_words': 299}