<commit_before><commit_msg>new view<commit_after>@extends('layout')

@section('title')
    How often does Edmonton City Council meet in Private?
@stop

@section('meta_description')
    TODO
@stop

@section('content')
    <h1 style="margin-bottom:3rem;">How often does Edmonton City Council meet in private?</h1>

    In <strong>{{ $privateMeetings->count() }}</strong> of {{ $totalMeetings }} total council/committee, council voted to
    meet in private.

    <div style="display:flex">
        <div style="flex-grow:1">
            With <strong>{{ $movers->first()['motions'] }}</strong> motions the councillor with the most <strong>motions</strong> is:
            <div class="small-person-details">
                @include('councilMemberPartial', [ 'council_member' => $movers->first()['mover'], 'link' => true ])
            </div>

            The second-highest councillor is {{ $movers->get(1)['mover'] }} with {{ $movers->get(1)['motions'] }}
        </div>

        <div style="flex-grow:1">
            With <strong>{{ $seconders->first()['motions'] }}</strong> seconds the councillor with the most <strong>seconds</strong> is:
            <div class="small-person-details">
                @include('councilMemberPartial', [ 'council_member' => $seconders->first()['seconder'], 'link' => true ])
            </div>
            The second-highest councillor is {{ $seconders->get(1)['seconder'] }} with {{ $seconders->get(1)['motions'] }}
        </div>
    </div>

    <h2 style="margin-top:4rem; margin-bottom:4rem;">So, why do the top mover and seconder have roughly 5x the number of motions compared to their peers?</h2>

    <div style="display:flex">
        <div style="flex:1">
            When looking at motions to read bylaws, two councillors come up as a mover-seconder power team <em>very often</em>
            <div>
                <div class="small-person-details" style="display:inline-block;">
                    @include('councilMemberPartial', [ 'council_member' => $pairings->first()['mover'], 'link' => true ])
                </div>
                <div class="small-person-details" style="display:inline-block;">
                    @include('councilMemberPartial', [ 'council_member' => $pairings->first()['seconder'], 'link' => true ])
                </div>
            </div>


            In fact, in motions to read bylaws this team moves and seconds

            <div class="large-percentage" style="font-size:25vh;color:dodgerblue;">
                {{ number_format(($pairings->first()['motions'] / $pairings->sum('motions')) * 100, 0) }}%
            </div>

            of the time.
        </div>
    </div>

@stop
{'fraction_non_alphanumeric': 0.16672925272249342, 'fraction_numerical': 0.007885843034171986, 'mean_word_length': 2.7363253856942498, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 62, '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': '6121541', 'n_tokens_mistral': 840, 'n_tokens_neox': 774, 'n_words': 193}