<commit_before>@extends('layout.master')

@section('content')

<div class="pull-right">
    <p><a class="btn btn-success btn-outline" href="{{ cachet_route('status-page') }}"><i class="ion ion-home"></i></a></p>
</div>

<div class="clearfix"></div>

@include('partials.errors')

<div class="row">
    <div class="col-xs-12 col-lg-offset-2 col-lg-8">
        <div class="text-center margin-bottom">
            <h1>{{ $appName }} {{ trans('cachet.subscriber.manage.notifications') }}</h1>
            <p>{{ trans('cachet.subscriber.manage.notifications_for') }} <strong>{{ $subscriber->email }}</strong></p>
        </div>
        <form action="{{ cachet_route('subscribe.manage', [$subscriber->verify_code], 'post') }}" method="post">
            <input type="hidden" name="_token" value="{{ csrf_token() }}">
            @if($componentGroups->isNotEmpty() || $ungroupedComponents->isNotEmpty())
            @foreach($componentGroups as $componentGroup)
            <ul class="list-group">
                    <li class="list-group-item group-name">
                        <i class="{{ $componentGroup->collapse_class_with_subscriptions($subscriptions) }} group-toggle"></i>
                        <strong>{{ $componentGroup->name }}</strong>
                        <div class="pull-right text-muted small">
                            <a href="javascript: void(0);" class="select-group" id="select-all-{{$componentGroup->id}}">{{ trans('cachet.components.select_all') }}</a>
                            &nbsp;|&nbsp;
                            <a href="javascript: void(0);" class="deselect-group" id="deselect-all-{{$componentGroup->id}}">{{ trans('cachet.components.deselect_all') }}</a>
                        </div>
                    </li>
                    <div class="form-group group-items {{ $componentGroup->has_subscriber($subscriptions) ? null : "hide" }}">
                        @foreach($componentGroup->enabled_components()->orderBy('order')->get() as $component)
                        @include('partials.component_input', compact($component))
                        @endforeach
                    </div>
                @endif
            </ul>
            @endforeach

            @if($ungroupedComponents->isNotEmpty())
            <ul class="list-group components"><commit_msg>Improve count call<commit_after>@extends('layout.master')

@section('content')

<div class="pull-right">
    <p><a class="btn btn-success btn-outline" href="{{ cachet_route('status-page') }}"><i class="ion ion-home"></i></a></p>
</div>

<div class="clearfix"></div>

@include('partials.errors')

<div class="row">
    <div class="col-xs-12 col-lg-offset-2 col-lg-8">
        <div class="text-center margin-bottom">
            <h1>{{ $appName }} {{ trans('cachet.subscriber.manage.notifications') }}</h1>
            <p>{{ trans('cachet.subscriber.manage.notifications_for') }} <strong>{{ $subscriber->email }}</strong></p>
        </div>
        <form action="{{ cachet_route('subscribe.manage', [$subscriber->verify_code], 'post') }}" method="post">
            <input type="hidden" name="_token" value="{{ csrf_token() }}">
            @if($componentGroups->isNotEmpty() || $ungroupedComponents->isNotEmpty())
            @foreach($componentGroups as $componentGroup)
            <ul class="list-group">
                @if($componentGroup->enabled_components()->count() > 0)
                    <li class="list-group-item group-name">
                        <i class="{{ $componentGroup->collapse_class_with_subscriptions($subscriptions) }} group-toggle"></i>
                        <strong>{{ $componentGroup->name }}</strong>
                        <div class="pull-right text-muted small">
                            <a href="javascript: void(0);" class="select-group" id="select-all-{{$componentGroup->id}}">{{ trans('cachet.components.select_all') }}</a>
                            &nbsp;|&nbsp;
                            <a href="javascript: void(0);" class="deselect-group" id="deselect-all-{{$componentGroup->id}}">{{ trans('cachet.components.deselect_all') }}</a>
                        </div>
                    </li>
                    <div class="form-group group-items {{ $componentGroup->has_subscriber($subscriptions) ? null : "hide" }}">
                        @foreach($componentGroup->enabled_components()->orderBy('order')->get() as $component)
                        @include('partials.component_input', compact($component))
                        @endforeach
                    </div>
                @endif
            </ul>
            @endforeach

            @if($ungroupedComponents->isNotEmpty())
            <ul class="list-group components">
{'fraction_non_alphanumeric': 0.18323047456905725, 'fraction_numerical': 0.0036177910193658227, 'mean_word_length': 2.323903818953324, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 110, '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': '6190693', 'n_tokens_mistral': 1327, 'n_tokens_neox': 1281, 'n_words': 213}