<commit_before><div class="modal fade" id="server">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                <h4 class="modal-title"><i class="fa fa-tasks"></i> <span>{{ trans('servers.create') }}</span></h4>
            </div>
            <form role="form">
                <input type="hidden" id="server_id" name="id"/>
                <input type="hidden" name="project_id" value="{{ $project->id }}"/>
                <div class="modal-body">
                    <div class="callout callout-danger">
                        <i class="icon fa fa-warning"></i> {{ trans('servers.warning') }}
                    </div>
                    <div class="nav-tabs-custom">
                        <ul class="nav nav-tabs">
                            <li class="active"><a href="#server_details" data-toggle="tab">{{ trans('servers.server_details') }}</a></li>
                            <li><a href="#load_from_template" data-toggle="tab">{{ trans('servers.load_from_template') }}</a></li>
                        </ul>
                        <div class="tab-content">
                            <div class="tab-pane active" id="server_details">
                                <div class="form-group">
                                    <label for="server_name">{{ trans('servers.name') }}</label>
                                    <div class="input-group">
                                        <div class="input-group-addon"><i class="fa fa-tag"></i></div>
                                        <input type="text" class="form-control" id="server_name" name="name" placeholder="{{ trans('servers.web') }}"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="server_user">{{ trans('servers.connect_as') }}</label>
                                    <div class="input-group">
                                        <div class="input-group-addon"><i class="fa fa-user"></i></div>
                                        <input type="text" class="form-control" id="server_user" name="user" placeholder="deploy"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="server_address">{{ trans('servers.ip_address') }}</label>
                                    <div class="input-group">
                                        <div class="input-group-addon"><i class="fa fa-laptop"></i></div>
                                        <input type="text" class="form-control" id="server_address" name="ip_address" placeholder="192.168.0.1"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="server_port">{{ trans('servers.port') }}</label>
                                    <div class="input-group">
                                        <div class="input-group-addon"><i class="fa fa-plug"></i></div>
                                        <input type="number" class="form-control" id="server_port" name="port" placeholder="22" value="22"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="server_path">{{ trans('servers.path') }}</label>
                                    <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="right" title="{{ trans('servers.example') }}"></i>
                                    <div class="input-group">
                                        <div class="input-group-addon"><i class="fa fa-folder-o"></i></div>
                                        <input type="text" class="form-control" id="server_path" name="path" placeholder="/var/www/project"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label>{{ trans('servers.options') }}</label>
                                    <div class="checkbox">
                                        <label for="server_deploy_code">
                                            <input type="checkbox" value="1" name="deploy_code" id="server_deploy_code"/>
                                            {{ trans('servers.deploy_code') }}
                                        </label>
                                    </div>
                                    @if ($project->commands->count() > 0)
                                        <div class="checkbox" id="add-server-command">
                                            <label for="server_commands">
                                                <input type="checkbox" value="1" name="commands" id="server_commands" checked/>
                                                {{ trans('servers.add_command') }}
                                            </label>
                                        </div>
                                    @endif
                                </div>
                            </div>
                            <div class="tab-pane" id="load_from_template">
                                <table class="table table-condensed table-stripped">
                                    <thead>
                                    <tr>
                                        <th>{{ trans('servers.name') }}</th>
                                        <th>{{ trans('servers.ip_address') }}</th>
                                        <th>{{ trans('servers.port') }}</th>
                                        <th></th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    @foreach ($server_templates as $template)
                                        <tr>
                                            <td>{{ $template->name  }}</td>
                                            <td>{{ $template->ip_address  }}</td>
                                            <td>{{ $template->port  }}</td>
                                            <td>
                                                <button type="button" data-server-template-id="{{ $template->id }}" class="btn btn-default btn-edit pull-right" title="{{ trans('servers.load_template') }}"><i class="fa fa-upload"></i></button>
                                            </td>
                                        </tr>
                                    @endforeach
                                    </tbody>
                                </table><commit_msg>Fixed undefined variable when editing templates<commit_after><div class="modal fade" id="server">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                <h4 class="modal-title"><i class="fa fa-tasks"></i> <span>{{ trans('servers.create') }}</span></h4>
            </div>
            <form role="form">
                <input type="hidden" id="server_id" name="id"/>
                <input type="hidden" name="project_id" value="{{ $project->id }}"/>
                <div class="modal-body">
                    <div class="callout callout-danger">
                        <i class="icon fa fa-warning"></i> {{ trans('servers.warning') }}
                    </div>
                    <div class="nav-tabs-custom">
                        <ul class="nav nav-tabs">
                            <li class="active"><a href="#server_details" data-toggle="tab">{{ trans('servers.server_details') }}</a></li>
                            <li><a href="#load_from_template" data-toggle="tab">{{ trans('servers.load_from_template') }}</a></li>
                        </ul>
                        <div class="tab-content">
                            <div class="tab-pane active" id="server_details">
                                <div class="form-group">
                                    <label for="server_name">{{ trans('servers.name') }}</label>
                                    <div class="input-group">
                                        <div class="input-group-addon"><i class="fa fa-tag"></i></div>
                                        <input type="text" class="form-control" id="server_name" name="name" placeholder="{{ trans('servers.web') }}"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="server_user">{{ trans('servers.connect_as') }}</label>
                                    <div class="input-group">
                                        <div class="input-group-addon"><i class="fa fa-user"></i></div>
                                        <input type="text" class="form-control" id="server_user" name="user" placeholder="deploy"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="server_address">{{ trans('servers.ip_address') }}</label>
                                    <div class="input-group">
                                        <div class="input-group-addon"><i class="fa fa-laptop"></i></div>
                                        <input type="text" class="form-control" id="server_address" name="ip_address" placeholder="192.168.0.1"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="server_port">{{ trans('servers.port') }}</label>
                                    <div class="input-group">
                                        <div class="input-group-addon"><i class="fa fa-plug"></i></div>
                                        <input type="number" class="form-control" id="server_port" name="port" placeholder="22" value="22"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="server_path">{{ trans('servers.path') }}</label>
                                    <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="right" title="{{ trans('servers.example') }}"></i>
                                    <div class="input-group">
                                        <div class="input-group-addon"><i class="fa fa-folder-o"></i></div>
                                        <input type="text" class="form-control" id="server_path" name="path" placeholder="/var/www/project"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label>{{ trans('servers.options') }}</label>
                                    <div class="checkbox">
                                        <label for="server_deploy_code">
                                            <input type="checkbox" value="1" name="deploy_code" id="server_deploy_code"/>
                                            {{ trans('servers.deploy_code') }}
                                        </label>
                                    </div>
                                    @if ($project->commands->count() > 0)
                                        <div class="checkbox" id="add-server-command">
                                            <label for="server_commands">
                                                <input type="checkbox" value="1" name="commands" id="server_commands" checked/>
                                                {{ trans('servers.add_command') }}
                                            </label>
                                        </div>
                                    @endif
                                </div>
                            </div>
                            <div class="tab-pane" id="load_from_template">
                                <table class="table table-condensed table-stripped">
                                    <thead>
                                    <tr>
                                        <th>{{ trans('servers.name') }}</th>
                                        <th>{{ trans('servers.ip_address') }}</th>
                                        <th>{{ trans('servers.port') }}</th>
                                        <th></th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    @if (isset($server_templates))
                                    @foreach ($server_templates as $template)
                                        <tr>
                                            <td>{{ $template->name  }}</td>
                                            <td>{{ $template->ip_address  }}</td>
                                            <td>{{ $template->port  }}</td>
                                            <td>
                                                <button type="button" data-server-template-id="{{ $template->id }}" class="btn btn-default btn-edit pull-right" title="{{ trans('servers.load_template') }}"><i class="fa fa-upload"></i></button>
                                            </td>
                                        </tr>
                                    @endforeach
                                    @endif
                                    </tbody>
                                </table>
{'fraction_non_alphanumeric': 0.13679245283018868, 'fraction_numerical': 0.0023936919177696423, 'mean_word_length': 0.8957693847591085, 'pattern_counts': {'":': 0, '<': 281, '<?xml version=': 0, '>': 297, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 172, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4663042', 'n_tokens_mistral': 3010, 'n_tokens_neox': 2877, 'n_words': 549}