<commit_before><form class="enable-dpm-form" role="form" autocomplete="off" ng-submit="onEnableDPMSubmit()">
  <div class="modal-header">
    <button type="button" class="close" ng-click="cancel()">
      <span aria-hidden="true">&times;</span>
      <span class="sr-only">Close</span>
    </button>
    <h3 class="modal-title" translate="home.enableDPM.headerLabel">Enable DPM</h3>
  </div>
  <div class="modal-body">

    <ng-include src="'app/home/alerts/error/errorAlert.tpl.html'"></ng-include>

    <div ng-if="!dpmEnabled">
      <ul class="properties clearfix">
        <li class="pull-right">
          <span class="properties-label">Don't have an account? <a href="https://streamsets.com/dpm-signup" target="_blank">Click here</a> to learn more. </span>
        </li>
      </ul>

      <div class="form-group">
        <label class="control-label" translate="home.enableDPM.dpmBaseURL">DPM URL</label>
        <input type="text"
               autocomplete="new-password"
               ng-disabled="isEnableInProgress"
               name="name"
               class="form-control"
               ng-required
               placeholder="{{'home.enableDPM.dpmBaseURLPlaceholder' | translate}}"
               ng-model="dpmInfoModel.baseURL">
      </div>

      <div class="form-group">
        <label class="control-label" translate="home.enableDPM.dpmUserName">DPM User Name</label>
        <input type="text"
               autocomplete="new-password"
               ng-disabled="isEnableInProgress"
               autofocus
               name="dpmUserID"
               class="form-control"
               required
               pattern="[a-zA-Z_0-9\.]+@[a-zA-Z_0-9\.]+$"
               title="User ID must be <ID>@<Organization ID>, IDs must be a alphanumeric characters, underscores and dots"
               placeholder="{{'home.enableDPM.dpmUserNamePlaceholder' | translate}}"
               ng-model="dpmInfoModel.userID">
      </div>

      <div class="form-group">
        <label class="control-label" translate="home.enableDPM.dpmUserPassword">DPM User Password</label>
        <input type="password"
               autocomplete="new-password"
               ng-disabled="isEnableInProgress"
               name="dpmUserPassword"
               class="form-control"
               required
               placeholder="{{'home.enableDPM.dpmUserPasswordPlaceholder' | translate}}"
               ng-model="dpmInfoModel.userPassword">
      </div>

      <div class="form-group">
        <label class="control-label" translate="global.form.labels">Labels</label>

        <ui-select multiple
                   tagging
                   tagging-label=" - new label"
                   ng-disabled="isEnableInProgress"
                   tagging-tokens=",|ENTER"
                   ng-model="dpmInfoModel.labels">
          <ui-select-match class="ui-select-match">{{$item}}</ui-select-match>
          <ui-select-choices class="ui-select-choices"
                             repeat="listValue in dpmInfoModel.labels | filter:$select.search">
            <div ng-bind-html="listValue | highlight: $select.search"></div>
          </ui-select-choices>
        </ui-select>

      </div>

    </div>

    <div ng-if="(dpmEnabled && !isRestartInProgress)" class="alert alert-success alert-dismissible" role="alert">

      <ul class="clearfix">
        <li>
          <span translate="home.enableDPM.successMessage"></span>
        </li>

        <li>
          <span><a href="javascript:;" ng-click="onCreateDPMUsersClick()">Click here</a> for creating DPM user account for each Data Collector user account.</span>
        </li>

        <li>
          <span>Restart the Data Collector for the changes to take effect. If you started the Data Collector manually, click Restart Data Collector. If you started the Data Collector as a service, click Cancel and then run the following command: sdc service restart</span>
        </li>

      </ul>
    </div>

    <div ng-if="dpmEnabled && !isRestartInProgress && !isStatsLibraryInstalled"
         class="alert alert-info alert-dismissible" role="alert"
         translate="home.enableDPM.installStatsLibraryMessage">
    </div>

    <div class="alert alert-success alert-dismissible" role="alert"
         ng-show="isRestartInProgress"
         translate="home.restart.successMessage">
    </div>

  </div>
  <div class="modal-footer">
    <button type="reset" class="btn btn-default" ng-click="cancel()" ng-if="!isEnableInProgress"
            translate="global.form.cancel">Cancel</button>

    <button class="btn btn-primary" ng-click="onInstallStatisticsLibraryClick()"
            ng-if="!isEnableInProgress && dpmEnabled && !isRestartInProgress && !isStatsLibraryInstalled"
            translate="home.enableDPM.installStatistics">Install Statistics Library</button>

    <button type="submit" class="btn btn-primary" ng-if="!isEnableInProgress && !dpmEnabled"
            translate="home.enableDPM.headerLabel">Enable DPM</button>

    <button class="btn btn-primary" ng-if="isEnableInProgress && !dpmEnabled" disabled
            translate="home.enableDPM.isEnableInProgress">Enabling DPM...</button>

    <button ng-if="!isEnableInProgress && dpmEnabled && !isRestartInProgress"
            ng-click="restart()"
            class="btn btn-primary" translate="global.form.restart">Restart</button>
  </div>
</form><commit_msg>SDC-5346. Improve usability of initial screen after you enable DPM<commit_after><form class="enable-dpm-form" role="form" autocomplete="off" ng-submit="onEnableDPMSubmit()">
  <div class="modal-header">
    <button type="button" class="close" ng-click="cancel()">
      <span aria-hidden="true">&times;</span>
      <span class="sr-only">Close</span>
    </button>
    <h3 class="modal-title" translate="home.enableDPM.headerLabel">Enable DPM</h3>
  </div>
  <div class="modal-body">

    <ng-include src="'app/home/alerts/error/errorAlert.tpl.html'"></ng-include>

    <div ng-if="!dpmEnabled">
      <ul class="properties clearfix">
        <li class="pull-right">
          <span class="properties-label">Don't have an account? <a href="https://streamsets.com/dpm-signup" target="_blank">Click here</a> to learn more. </span>
        </li>
      </ul>

      <div class="form-group">
        <label class="control-label" translate="home.enableDPM.dpmBaseURL">DPM URL</label>
        <input type="text"
               autocomplete="new-password"
               ng-disabled="isEnableInProgress"
               name="name"
               class="form-control"
               ng-required
               placeholder="{{'home.enableDPM.dpmBaseURLPlaceholder' | translate}}"
               ng-model="dpmInfoModel.baseURL">
      </div>

      <div class="form-group">
        <label class="control-label" translate="home.enableDPM.dpmUserName">DPM User Name</label>
        <input type="text"
               autocomplete="new-password"
               ng-disabled="isEnableInProgress"
               autofocus
               name="dpmUserID"
               class="form-control"
               required
               pattern="[a-zA-Z_0-9\.]+@[a-zA-Z_0-9\.]+$"
               title="User ID must be <ID>@<Organization ID>, IDs must be a alphanumeric characters, underscores and dots"
               placeholder="{{'home.enableDPM.dpmUserNamePlaceholder' | translate}}"
               ng-model="dpmInfoModel.userID">
      </div>

      <div class="form-group">
        <label class="control-label" translate="home.enableDPM.dpmUserPassword">DPM User Password</label>
        <input type="password"
               autocomplete="new-password"
               ng-disabled="isEnableInProgress"
               name="dpmUserPassword"
               class="form-control"
               required
               placeholder="{{'home.enableDPM.dpmUserPasswordPlaceholder' | translate}}"
               ng-model="dpmInfoModel.userPassword">
      </div>

      <div class="form-group">
        <label class="control-label" translate="global.form.labels">Labels</label>

        <ui-select multiple
                   tagging
                   tagging-label=" - new label"
                   ng-disabled="isEnableInProgress"
                   tagging-tokens=",|ENTER"
                   ng-model="dpmInfoModel.labels">
          <ui-select-match class="ui-select-match">{{$item}}</ui-select-match>
          <ui-select-choices class="ui-select-choices"
                             repeat="listValue in dpmInfoModel.labels | filter:$select.search">
            <div ng-bind-html="listValue | highlight: $select.search"></div>
          </ui-select-choices>
        </ui-select>

      </div>

    </div>

    <div ng-if="(dpmEnabled && !isRestartInProgress)" class="alert alert-success alert-dismissible" role="alert">

      <ul class="clearfix">
        <li>
          <span translate="home.enableDPM.successMessage"></span>
        </li>

        <li>
          <span><a href="javascript:;" ng-click="onCreateDPMUsersClick()">Click here</a> to create a DPM user account for each Data Collector user account.</span>
        </li>

        <li>
          <span>Restart the Data Collector for the changes to take effect. If you started the Data Collector manually, click Restart Data Collector. If you started the Data Collector as a service, click Cancel and then run the following command: sdc service restart</span>
        </li>

      </ul>
    </div>

    <div ng-if="dpmEnabled && !isRestartInProgress && !isStatsLibraryInstalled"
         class="alert alert-info alert-dismissible" role="alert"
         translate="home.enableDPM.installStatsLibraryMessage">
    </div>

    <div class="alert alert-success alert-dismissible" role="alert"
         ng-show="isRestartInProgress"
         translate="home.restart.successMessage">
    </div>

  </div>
  <div class="modal-footer">
    <button type="reset" class="btn btn-default" ng-click="cancel()" ng-if="!isEnableInProgress"
            translate="global.form.cancel">Cancel</button>

    <button class="btn btn-primary" ng-click="onInstallStatisticsLibraryClick()"
            ng-if="!isEnableInProgress && dpmEnabled && !isRestartInProgress && !isStatsLibraryInstalled"
            translate="home.enableDPM.installStatistics">Install Statistics Library</button>

    <button type="submit" class="btn btn-primary" ng-if="!isEnableInProgress && !dpmEnabled"
            translate="home.enableDPM.headerLabel">Enable DPM</button>

    <button class="btn btn-primary" ng-if="isEnableInProgress && !dpmEnabled" disabled
            translate="home.enableDPM.isEnableInProgress">Enabling DPM...</button>

    <button ng-if="!isEnableInProgress && dpmEnabled && !isRestartInProgress"
            ng-click="onCreateDPMUsersClick()"
            class="btn btn-primary" translate="home.createDPMUsers.title">Create DPM Users</button>

    <button ng-if="!isEnableInProgress && dpmEnabled && !isRestartInProgress"
            ng-click="restart()"
            class="btn btn-primary" translate="global.form.restart">Restart</button>
  </div>
</form>
{'fraction_non_alphanumeric': 0.14203212416531313, 'fraction_numerical': 0.0014437827107020393, 'mean_word_length': 2.6266361256544504, 'pattern_counts': {'":': 0, '<': 183, '<?xml version=': 0, '>': 183, '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': '5327965', 'n_tokens_mistral': 3245, 'n_tokens_neox': 3146, 'n_words': 593}