<commit_before><md-content class="md-padding" layout="column" layout-gt-sm='column' layout-wrap  ng-if="!loading">

  <form name="myForm" ing-submit="update()">

    <div layout="row" layout-align="center center">
      <div flex="100" flex-gt-sm="50">
        <md-card>
          <md-card-title>
            <md-card-title-text>
              <span class="md-headline">{{ title }}</span>
              <span class="md-subhead">{{ subhead }}</span>
            </md-card-title-text>
          </md-card-title>
          <md-card-content>

            <div ng-if='stage === "done"'>
              <md-progress-linear md-mode="query"></md-progress-linear>
            </div>

            <div ng-if="stage !== 'done'">
              <div ng-if="!stage">

                <div layout="column" flex-gt-sm="100">
                  <md-input-container layout="row" flex class="md-block">
                    <label for="company_name">
                      <translate>Location Name</translate>
                    </label>
                    <input type="text" name="location_name" ng-model="holding.location_name" placeholder="{{ 'Enter a location name' | translate }}" md-maxlength=25 md-minlength=5 md-autofocus required>
                    <div ng-messages="myForm.location_name.$error">
                      <div ng-message="required" translate>A location name is required.</div>
                      <div ng-message="pattern" translate>Numbers and letters only please.</div>
                      <div ng-message="md-maxlength" translate>Should be between 5 and 25 characters.</div>
                    </div>
                  </md-input-container>

                  <md-input-container layout="row" flex class="md-block">
                    <label for="address">
                      <translate>Location Address</translate>
                    </label>
                    <input type="text" name="address" ng-model="holding.address" placeholder="{{ 'Where is the location' | translate }}" md-maxlength=255 ng-minlength=5 required>
                    <div ng-messages="myForm.address.$error">
                      <div ng-message="required" translate>A location address is required.</div>
                      <div ng-message="md-maxlength" translate>Should be between 5 and 255 characters.</div>
                    </div>
                  </md-input-container>
                </div>
                <md-button type="submit" ng-click="update(1)" ng-disabled="myForm.$invalid" class="signup-flow md-raised md-primary">
                  <translate>Save</translate>
                </md-button>
              </div>

              <div ng-if="stage=='brand'">

                <div layout="column" flex-gt-sm="100">
                  <md-input-container layout="row" flex class="md-block">
                    <label for="urk">
                      <translate>Web Address</translate>
                    </label>
                    <input type="text" name="url" ng-blur="checkBrand()" ng-model="holding.url" placeholder="{{ 'Enter a URL for your dashboard' | translate }}" ng-maxlength=25 ng-minlength=5 ng-pattern="/^[a-z-_\d]*$/" autofocus required>
                    <div ng-messages="myForm.url.$error">
                      <div ng-message="required" translate>A web address is required.</div>
                      <div ng-message="md-maxlength" translate>Should be between 5 and 25 characters.</div>
                      <div ng-message="pattern" translate>Lowercase, letters only.</div>
                    </div>
                    <p ng-hide="invalid_brand" class="hint" translate>
                      Visit <b>https://{{ holding.url || 'my-great-dashboard' }}.ctapp.io</b> to sign-in
                    </p>
                    <p ng-show="invalid_brand" style="color: rgb(221,44,0);" translate><small>Brand has already been taken, try again.</small></p>
                  </md-input-container>


                  <md-input-container layout="row" flex class="md-block">
                    <label for="company_name">
                      <translate>Dashboard Name</translate>
                    </label>
                    <input type="text" name="company_name" ng-model="holding.company_name" placeholder="{{ 'Enter a name for your dashboard' | translate }}" ng-maxlength=25 ng-minlength=5 required>
                    <div ng-messages="myForm.company_name.$error">
                      <div ng-message="required" translate>A dashboard name is required.</div>
                      <div ng-message="md-maxlength" translate>Should be between 5 and 25 characters.</div>
                    </div>
                    <p class="hint" translate>Display your company name on the dashboard</p>
                  </md-input-container>

                </div>

                <md-button type="submit" ng-click="update(2)" ng-disabled="brandOk !== true || myForm.$invalid" class="md-raised md-primary">
                  <translate>Save</translate>
                </md-button>

              </div>

              <div ng-if="stage=='user'">
                <div layout="column" flex-gt-sm="100">
                  <md-input-container layout="row" flex class="md-block">
                    <label for="address">
                      <translate>Username</translate>
                    </label>
                    <input type="text" name="username" ng-model="holding.username" placeholder="<NAME>" md-maxlength=25 ng-minlength=5 ng-pattern="/^[^-\s][A-Za-z0-9\ \\\'\\s]*$/" md-autofocus required>
                    <div ng-messages="myForm.url.$error">
                      <div ng-message="required" translate>A username is required.</div>
                      <div ng-message="md-maxlength" translate>Should be between 5 and 25 characters.</div>
                      <div ng-message="pattern" translate>Number and letters only.</div>
                    </div>
                    <p class="hint" translate>Don't worry about choosing a password, we'll email you a link to set one.</p>
                  </md-input-container><commit_msg>Minor tweaks to reg<commit_after><md-content class="md-padding" layout="column" layout-gt-sm='column' layout-wrap  ng-if="!loading">

  <form name="myForm" ing-submit="update()">

    <div layout="row" layout-align="center center">
      <div flex="100" flex-gt-sm="50">
        <md-card>
          <md-card-title>
            <md-card-title-text>
              <span class="md-headline">{{ title }}</span>
              <span class="md-subhead">{{ subhead }}</span>
            </md-card-title-text>
          </md-card-title>
          <md-card-content>

            <div ng-if='stage === "done"'>
              <md-progress-linear md-mode="query"></md-progress-linear>
            </div>

            <div ng-if="stage !== 'done'">
              <div ng-if="!stage">

                <div layout="column" flex-gt-sm="100">
                  <md-input-container layout="row" flex class="md-block">
                    <label for="company_name">
                      <translate>Location Name</translate>
                    </label>
                    <input type="text" name="location_name" ng-model="holding.location_name" placeholder="{{ 'Enter a location name' | translate }}" md-maxlength=25 md-minlength=5 md-autofocus required>
                    <div ng-messages="myForm.location_name.$error">
                      <div ng-message="required" translate>A location name is required.</div>
                      <div ng-message="pattern" translate>Numbers and letters only please.</div>
                      <div ng-message="md-maxlength" translate>Should be between 5 and 25 characters.</div>
                    </div>
                  </md-input-container>

                  <md-input-container layout="row" flex class="md-block">
                    <label for="address">
                      <translate>Location Address</translate>
                    </label>
                    <input type="text" name="address" ng-model="holding.address" placeholder="{{ 'Where is the location' | translate }}" md-maxlength=255 ng-minlength=5 required>
                    <div ng-messages="myForm.address.$error">
                      <div ng-message="required" translate>A location address is required.</div>
                      <div ng-message="md-maxlength" translate>Should be between 5 and 255 characters.</div>
                    </div>
                  </md-input-container>
                </div>
                <md-button type="submit" ng-click="update(1)" ng-disabled="myForm.$invalid" class="signup-flow md-raised md-primary">
                  <translate>Save</translate>
                </md-button>
              </div>

              <div ng-if="stage=='brand'">

                <div layout="column" flex-gt-sm="100">
                  <md-input-container layout="row" flex class="md-block">
                    <label for="url" style="margin-bottom: 10px;">
                      <translate>Dashboard URL (Web Address)</translate>
                    </label>
                    <input type="text" name="url" ng-blur="checkBrand()" ng-model="holding.url" placeholder="{{ 'Enter a URL for your dashboard' | translate }}" ng-maxlength=25 ng-minlength=5 ng-pattern="/^[a-z-_\d]*$/" autofocus required>
                    <div ng-messages="myForm.url.$error">
                      <div ng-message="required" translate>A web address is required.</div>
                      <div ng-message="md-maxlength" translate>Should be between 5 and 25 characters.</div>
                      <div ng-message="pattern" translate>Lowercase, letters only.</div>
                    </div>
                    <p ng-hide="invalid_brand" class="hint" style="font-size: 14px;" translate>
                      Visit <b>https://{{ holding.url || 'my-great-dashboard' }}.ctapp.io</b> to sign-in
                    </p>
                    <p ng-show="invalid_brand" style="color: rgb(221,44,0);" translate><small><b>Brand has already been taken, try again.</b></small></p>
                  </md-input-container>


                  <md-input-container layout="row" flex class="md-block">
                    <label for="company_name">
                      <translate>Dashboard Name</translate>
                    </label>
                    <input type="text" name="company_name" ng-model="holding.company_name" placeholder="{{ 'Enter a name for your dashboard' | translate }}" ng-maxlength=25 ng-minlength=5 required>
                    <div ng-messages="myForm.company_name.$error">
                      <div ng-message="required" translate>A dashboard name is required.</div>
                      <div ng-message="md-maxlength" translate>Should be between 5 and 25 characters.</div>
                    </div>
                    <p class="hint" translate>Display your company name on the dashboard</p>
                  </md-input-container>

                </div>

                <md-button type="submit" ng-click="update(2)" ng-disabled="brandOk !== true || myForm.$invalid" class="md-raised md-primary">
                  <translate>Save</translate>
                </md-button>

              </div>

              <div ng-if="stage=='user'">
                <div layout="column" flex-gt-sm="100">
                  <md-input-container layout="row" flex class="md-block">
                    <label for="address">
                      <translate>Username</translate>
                    </label>
                    <input type="text" name="username" ng-model="holding.username" placeholder="<NAME>" md-maxlength=25 ng-minlength=5 ng-pattern="/^[^-\s][A-Za-z0-9\ \\\'\\s]*$/" md-autofocus required>
                    <div ng-messages="myForm.url.$error">
                      <div ng-message="required" translate>A username is required.</div>
                      <div ng-message="md-maxlength" translate>Should be between 5 and 25 characters.</div>
                      <div ng-message="pattern" translate>Number and letters only.</div>
                    </div>
                    <p class="hint" translate>Don't worry about choosing a password, we'll email you a link to set one.</p>
                  </md-input-container>
{'fraction_non_alphanumeric': 0.14565803447430767, 'fraction_numerical': 0.009476349971407564, 'mean_word_length': 1.7503931700741406, 'pattern_counts': {'":': 0, '<': 247, '<?xml version=': 0, '>': 247, 'https://': 2, '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': '4880626', 'n_tokens_mistral': 3399, 'n_tokens_neox': 3102, 'n_words': 722}