<commit_before><che-toolbar che-title="New Workspace">
  <che-button-save-flat class="create-workspace-header-button"
                        che-button-title="Create"
                        ng-click="createWorkspaceController.createWorkspace()"
                        ng-disabled="createWorkspaceController.isCreateButtonDisabled()"></che-button-save-flat>
</che-toolbar>

<md-progress-linear md-mode="indeterminate"
                    class="create-workspace-progress"
                    ng-hide="createWorkspaceController.hideLoader"></md-progress-linear>

<md-content md-scroll-y flex
            md-theme="default"
            class="create-workspace-content">
  <div ng-class="{'create-workspace-content-hidden': !createWorkspaceController.hideLoader}">

    <!-- Name -->
    <che-label-container che-label-name="Name"
                         che-label-description="Define a name for your workspace.">
      <ng-form flex layout="column"
               name="workspaceNameForm"
               class="create-workspace-name-form">
        <che-input-box ng-init="createWorkspaceController.registerForm('name', workspaceNameForm)"
                       che-form="workspaceNameForm"
                       che-name="workspaceName"
                       che-place-holder="Name of the workspace"
                       aria-label="Name of the workspace"
                       ng-model="createWorkspaceController.workspaceName"
                       ng-model-options="{ updateOn: 'default blur', debounce: { 'default': 200, 'blur': 0 }, allowInvalid: false }"
                       required
                       custom-validator="createWorkspaceController.isNameUnique($value)"
                       ng-minlength="3"
                       ng-maxlength="100"
                       ng-pattern="/^[a-z\d][a-z\d-.]+[a-z\d]$/i">
          <div ng-message="required">A name is required.</div>
          <div ng-message="pattern">The name should not contain special characters like space, dollar, etc. and should start and end only with digits, latin letters or underscores.
          </div>
          <div ng-message="minlength">The name has to be more than 3 characters long.</div>
          <div ng-message="maxlength">The name has to be less than 100 characters long.</div>
          <div ng-message="customValidator">This workspace name is already used.</div>
        </che-input-box>
      </ng-form>
    </che-label-container>

    <!-- Namespace -->
    <che-label-container che-label-name="{{createWorkspaceController.getNamespaceCaption()}}"
                         ng-if="createWorkspaceController.getNamespaces().length > 0 || createWorkspaceController.getNamespaceEmptyMessage()">
      <namespace-selector
        on-namespace-change="createWorkspaceController.onNamespaceChanged(namespaceId)"></namespace-selector>
    </che-label-container>

    <!-- Select Stack -->
    <che-label-container che-label-name="Select Stack"
                         che-label-description="Choose your workspace runtime environment used to build and run your projects.">
      <stack-selector on-stack-select="createWorkspaceController.onStackSelected(stackId)"></stack-selector>
    </che-label-container>
<commit_msg>CHE-6772 fix a wrong error for workspace name<commit_after><che-toolbar che-title="New Workspace">
  <che-button-save-flat class="create-workspace-header-button"
                        che-button-title="Create"
                        ng-click="createWorkspaceController.createWorkspace()"
                        ng-disabled="createWorkspaceController.isCreateButtonDisabled()"></che-button-save-flat>
</che-toolbar>

<md-progress-linear md-mode="indeterminate"
                    class="create-workspace-progress"
                    ng-hide="createWorkspaceController.hideLoader"></md-progress-linear>

<md-content md-scroll-y flex
            md-theme="default"
            class="create-workspace-content">
  <div ng-class="{'create-workspace-content-hidden': !createWorkspaceController.hideLoader}">

    <!-- Name -->
    <che-label-container che-label-name="Name"
                         che-label-description="Define a name for your workspace.">
      <ng-form flex layout="column"
               name="workspaceNameForm"
               class="create-workspace-name-form">
        <che-input-box ng-init="createWorkspaceController.registerForm('name', workspaceNameForm)"
                       che-form="workspaceNameForm"
                       che-name="workspaceName"
                       che-place-holder="Name of the workspace"
                       aria-label="Name of the workspace"
                       ng-model="createWorkspaceController.workspaceName"
                       ng-model-options="{ updateOn: 'default blur', debounce: { 'default': 200, 'blur': 0 }, allowInvalid: false }"
                       required
                       custom-validator="createWorkspaceController.isNameUnique($value)"
                       ng-minlength="3"
                       ng-maxlength="100"
                       ng-pattern="/^[a-z\d][a-z\d-.]+[a-z\d]$/i">
          <div ng-message="required">A name is required.</div>
          <div ng-message="minlength">The name has to be more than 3 characters long.</div>
          <div ng-message="pattern">The name should not contain special characters like space, dollar, etc. and should start and end only with digits, latin letters or underscores.</div>
          <div ng-message="maxlength">The name has to be less than 100 characters long.</div>
          <div ng-message="customValidator">This workspace name is already used.</div>
        </che-input-box>
      </ng-form>
    </che-label-container>

    <!-- Namespace -->
    <che-label-container che-label-name="{{createWorkspaceController.getNamespaceCaption()}}"
                         ng-if="createWorkspaceController.getNamespaces().length > 0 || createWorkspaceController.getNamespaceEmptyMessage()">
      <namespace-selector
        on-namespace-change="createWorkspaceController.onNamespaceChanged(namespaceId)"></namespace-selector>
    </che-label-container>

    <!-- Select Stack -->
    <che-label-container che-label-name="Select Stack"
                         che-label-description="Choose your workspace runtime environment used to build and run your projects.">
      <stack-selector on-stack-select="createWorkspaceController.onStackSelected(stackId)"></stack-selector>
    </che-label-container>

{'fraction_non_alphanumeric': 0.1253283881934786, 'fraction_numerical': 0.004636068613815485, 'mean_word_length': 2.3603322949117342, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 75, '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': '1565339', 'n_tokens_mistral': 1673, 'n_tokens_neox': 1613, 'n_words': 318}