<commit_before>@extends('layouts.default')

@section('title')
    {{ $lan->name }}
@endsection

@section('content')

    <h1>
        {{ $lan->name }}
        <small class="text-muted">
            @include('pages.lans.partials.dates', ['lan' => $lan])
        </small>
    </h1>
    <h4>
        @include('pages.lans.partials.timespan', ['lan' => $lan])
        <small class="text-muted">
            @include('pages.lans.partials.duration', ['lan' => $lan])
        </small>
    </h4>

    @if( ! $lan->users->isEmpty())
        <h5>{{ $lan->users->count() }} @lang('title.attendees')</h5>

        <table class="table table-striped">
            <thead>
            <tr>
                <th>@lang('title.attendee')</th>
                <th>@lang('title.logged-in')</th>
            </tr>
            </thead>
            <tbody>
            @foreach($lan->users as $user)
                <tr>
                    <td>
                        @include('pages.users.partials.avatar-username', ['user' => $user])
                    </td>
                    <td>
                        @include('components.time-relative', ['datetime' => $user->attendance->created_at])
                    </td>
                </tr>
            @endforeach
            </tbody>
        </table>
    @endif
<commit_msg>Adding events list to LAN page<commit_after>@extends('layouts.default')

@section('title')
    {{ $lan->name }}
@endsection

@section('content')

    <h1>
        {{ $lan->name }}
        <small class="text-muted">
            @include('pages.lans.partials.dates', ['lan' => $lan])
        </small>
    </h1>
    <h4>
        @include('pages.lans.partials.timespan', ['lan' => $lan])
        <small class="text-muted">
            @include('pages.lans.partials.duration', ['lan' => $lan])
        </small>
    </h4>
   <h5>@lang('title.events')</h5>
    @include('pages.events.partials.list', ['events' => $lan->events()->orderBy('start')->get()])

    @if( ! $lan->users->isEmpty())
        <h5>{{ $lan->users->count() }} @lang('title.attendees')</h5>

        <table class="table table-striped">
            <thead>
            <tr>
                <th>@lang('title.attendee')</th>
                <th>@lang('title.logged-in')</th>
            </tr>
            </thead>
            <tbody>
            @foreach($lan->users as $user)
                <tr>
                    <td>
                        @include('pages.users.partials.avatar-username', ['user' => $user])
                    </td>
                    <td>
                        @include('components.time-relative', ['datetime' => $user->attendance->created_at])
                    </td>
                </tr>
            @endforeach
            </tbody>
        </table>
    @endif

{'fraction_non_alphanumeric': 0.1960855382384922, 'fraction_numerical': 0.005074302283436027, 'mean_word_length': 1.5274725274725274, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 93, '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': '120225', 'n_tokens_mistral': 875, 'n_tokens_neox': 849, 'n_words': 127}