<commit_before><div class="page">

    <section class="panel">
         <!--<div class="panel-heading"><strong>Domain: {{domain.name}}</strong></div>-->
        <form class="panel-body" name="domainForm">

            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group" ng-class="{ 'has-error' : domainForm.id.$invalid }">
                        <label class="control-label">Name</label>
                        <input type="text" ng-disabled="domain.id"  class="form-control" required data-ng-model="domain.name" name="id">
                    </div>

                    <div class="form-group" ng-class="{ 'has-error' : domainForm.customerId.$invalid }">
                        <label class="control-label">Customer</label>
                        <input type="text" ng-disabled="domain.id" class="form-control" name="customerId" required data-ng-model="domain.customer_id">
                    </div>

                    <div class="form-group" ng-class="{ 'has-error' : domainForm.language.$invalid }">
                        <label class="control-label">Language</label>
                        <select class="form-control" name="language" required ng-change="change('default_language')" ng-model="domain.default_language">
                            <option>ru</option>
                            <option>en</option>
                        </select>
                    </div>

                    <div ng-if="domainUsedStorage" class="form-group">
                        <p>
                        </p>
                        <blockquote class="blockquote-colored">
                            <small>Used disk space: {{domainUsedStorage}}</small>
                        </blockquote>
                    </div>

                </div>

                <div class="col-sm-6">

                    <div class="ui-tab-container ui-tab-dark">
                        <div class="ui-tab">
                            <tabset>
                                <tab>
                                    <tab-heading>
                                        <span>Variables</span>
                                    </tab-heading>
                                    <webitel-variables
                                            collection = "domain.variables"
                                            dictionary="switchVar"
                                            remvar="remVar"
                                    >
                                    </webitel-variables>
                                </tab>
                                <tab ng-if="domain.id">
                                    <tab-heading>
                                        <span>Email</span>
                                    </tab-heading>

                                    <div class="row">
                                        <div class="col-sm-6">
                                            <div class="form-group" ng-class="{ 'has-error' : domainForm.emailHost.$invalid }">
                                                <label class="control-label">Host</label>
                                                <input type="text" class="form-control" name="emailHost" data-ng-model="domain.email.options.host">
                                            </div>
                                        </div>

                                        <div class="col-sm-6">
                                            <div class="form-group" ng-class="{ 'has-error' : domainForm.emailPort.$invalid }">
                                                <label class="control-label">Port</label>
                                                <input type="number" min="1" max="65535" class="form-control" name="emailPort" data-ng-model="domain.email.options.port">
                                            </div>
                                        </div>

                                        <div class="col-sm-6">
                                            <div class="form-group" ng-class="{ 'has-error' : domainForm.emailUser.$invalid }">
                                                <label class="control-label">Login</label>
                                                <input type="text" class="form-control" name="emailUser" data-ng-model="domain.email.options.auth.user">
                                            </div>
                                        </div>
                                        
                                        <div class="col-sm-6">
                                            <div class="form-group" ng-class="{ 'has-error' : domainForm.emailPass.$invalid }">
                                                <label class="control-label">Password</label>
                                                <div class="input-group" >
                                                    <input  name="emailPass"  class="form-control" ng-model="domain.email.options.auth.pass" ng-style="{'-webkit-text-security': viewPassword ? '' : 'disc' }">
                                                <span class="input-group-btn">
                                                    <button ng-show="!viewPassword" ng-click="toggleViewPassword()" class="btn btn-default" type="button">
                                                        <i class="glyphicon glyphicon-eye-open"></i>
                                                    </button>
                                                    <button ng-show="viewPassword" ng-click="toggleViewPassword()" class="btn btn-default" type="button">
                                                        <i class="glyphicon glyphicon-eye-close"></i>
                                                    </button>
                                                </span>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="col-sm-6">
                                            <div class="form-group" ng-class="{ 'has-error' : domainForm.emailFrom.$invalid }">
                                                <label class="control-label">From</label>
                                                <input type="text" class="form-control" name="emailFrom" data-ng-model="domain.email.from">
                                            </div>
                                        </div>

                                        <div class="col-sm-6">
                                            <div class="col-sm-6">
                                                <div class="form-group" ><commit_msg>WTEL-425<commit_after><div class="page">

    <section class="panel">
         <!--<div class="panel-heading"><strong>Domain: {{domain.name}}</strong></div>-->
        <form class="panel-body" name="domainForm">

            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group" ng-class="{ 'has-error' : domainForm.id.$invalid }">
                        <label class="control-label">Name</label>
                        <input type="text" ng-disabled="domain.id"  class="form-control" required data-ng-model="domain.name" name="id">
                    </div>

                    <div class="form-group" ng-class="{ 'has-error' : domainForm.customerId.$invalid }">
                        <label class="control-label">Customer</label>
                        <input type="text" ng-disabled="domain.id" class="form-control" name="customerId" required data-ng-model="domain.customer_id">
                    </div>

                    <div class="form-group" ng-class="{ 'has-error' : domainForm.language.$invalid }">
                        <label class="control-label">Language</label>
                        <select class="form-control" name="language" required ng-change="change('default_language')" ng-model="domain.default_language">
                            <option>ru</option>
                            <option>en</option>
                        </select>
                    </div>

                    <div ng-if="domainUsedStorage" class="form-group">
                        <p>
                        </p>
                        <blockquote class="blockquote-colored">
                            <small>Used disk space: {{domainUsedStorage}}</small>
                        </blockquote>
                    </div>

                </div>

                <div class="col-sm-6">

                    <div class="ui-tab-container ui-tab-dark">
                        <div class="ui-tab">
                            <tabset>
                                <tab>
                                    <tab-heading>
                                        <span>Variables</span>
                                    </tab-heading>
                                    <webitel-variables
                                            collection = "domain.variables"
                                            dictionary="switchVar"
                                            remvar="remVar"
                                    >
                                    </webitel-variables>
                                </tab>
                                <tab ng-if="domain.id">
                                    <tab-heading>
                                        <span>Email</span>
                                    </tab-heading>

                                    <div class="row">
                                        <div class="col-sm-6">
                                            <div class="form-group" ng-class="{ 'has-error' : domainForm.emailHost.$invalid }">
                                                <label class="control-label">Host</label>
                                                <input type="text" class="form-control" name="emailHost" data-ng-model="domain.email.options.host">
                                            </div>
                                        </div>

                                        <div class="col-sm-6">
                                            <div class="form-group" ng-class="{ 'has-error' : domainForm.emailPort.$invalid }">
                                                <label class="control-label">Port</label>
                                                <input type="number" min="1" max="65535" class="form-control" name="emailPort" data-ng-model="domain.email.options.port">
                                            </div>
                                        </div>

                                        <div class="col-sm-6">
                                            <div class="form-group" ng-class="{ 'has-error' : domainForm.emailUser.$invalid }">
                                                <label class="control-label">Login</label>
                                                <input type="text" class="form-control" name="emailUser" data-ng-model="domain.email.options.auth.user">
                                            </div>
                                        </div>

                                        <div class="col-sm-6">
                                            <div class="form-group" ng-class="{ 'has-error' : domainForm.emailPass.$invalid }">
                                                <label class="control-label">Password</label>
                                                <div class="input-group" >
                                                    <input  name="emailPass"  class="form-control" ng-model="domain.email.options.auth.pass" ng-style="{'-webkit-text-security': viewPassword ? '' : 'disc' }">
                                                    <span class="input-group-btn">
                                                        <button ng-show="!viewPassword" ng-click="toggleViewPassword()" class="btn btn-default" type="button">
                                                            <i class="glyphicon glyphicon-eye-open"></i>
                                                        </button>
                                                        <button ng-show="viewPassword" ng-click="toggleViewPassword()" class="btn btn-default" type="button">
                                                            <i class="glyphicon glyphicon-eye-close"></i>
                                                        </button>
                                                    </span>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="col-sm-6">
                                            <div class="form-group" ng-class="{ 'has-error' : domainForm.emailFrom.$invalid }">
                                                <label class="control-label">From</label>
                                                <input type="text" class="form-control" name="emailFrom" data-ng-model="domain.email.from">
                                            </div>
                                        </div>

                                        <div class="col-sm-6">
                                            <div class="col-sm-6">
                                                <div class="form-group" >
{'fraction_non_alphanumeric': 0.11703945901761165, 'fraction_numerical': 0.0024522553317975777, 'mean_word_length': 0.8108180839612487, 'pattern_counts': {'":': 0, '<': 217, '<?xml version=': 0, '>': 217, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 197, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1866712', 'n_tokens_mistral': 2663, 'n_tokens_neox': 2513, 'n_words': 434}