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

@section('content')
    <div class="panel panel-default">
        <div class="panel-heading">@lang('auth.login_header', ['platform_name' => $platform_name])</div>
        <div class="panel-body">
            {!! BootForm::open(['route' => 'login']) !!}
                {!! BootForm::text('login', trans('auth.login_or_email')) !!}
                {!! BootForm::password('password', trans('auth.<PASSWORD>')) !!}
                {!! BootForm::checkbox('remember', trans('auth.remember_me')) !!}
                {!! BootForm::submit(trans('auth.btn_login')) !!}
                <hr/>
                <div class="form-group">
                    <a class="btn btn-link" href="{{ route('password.request') }}">
                        @lang('auth.link_reset_pwd')
                    </a>
                    <a class="btn btn-link pull-right" href="{{ url('/auth') }}">
                        @lang('auth.select_another_method')
                    </a>
                </div>
            {!! BootForm::close() !!}
        </div>
    </div>
@endsection<commit_msg>User login: Auto-focus one of the fields<commit_after>@extends('layouts.popup')

@section('content')
    <div class="panel panel-default">
        <div class="panel-heading">@lang('auth.login_header', ['platform_name' => $platform_name])</div>
        <div class="panel-body">
            {!! BootForm::open(['route' => 'login']) !!}
                {!! BootForm::text('login', trans('auth.login_or_email')) !!}
                {!! BootForm::password('password', trans('<PASSWORD>')) !!}
                {!! BootForm::checkbox('remember', trans('auth.remember_me')) !!}
                {!! BootForm::submit(trans('auth.btn_login')) !!}
                <hr/>
                <div class="form-group">
                    <a class="btn btn-link" href="{{ route('password.request') }}">
                        @lang('auth.link_reset_pwd')
                    </a>
                    <a class="btn btn-link pull-right" href="{{ url('/auth') }}">
                        @lang('auth.select_another_method')
                    </a>
                </div>
            {!! BootForm::close() !!}
        </div>
    </div>

    <script type="text/javascript">
    // Auto-focus either login or password field
    $(function() {
        if($('#login').val()) {
            $('#password').focus();
        } else {
            $('#login').focus();
        }
    });
    </script>
@endsection
{'fraction_non_alphanumeric': 0.2012072434607646, 'fraction_numerical': 0.0, 'mean_word_length': 1.8806488991888761, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 37, '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': '2121015', 'n_tokens_mistral': 714, 'n_tokens_neox': 684, 'n_words': 105}