<commit_before>form(name='createLab' role='form' ng-submit='save()')
  .modal-header
    button.close(type="button" data-dismiss="modal" aria-label="Close" ng-click='cancel()')
      span(aria-hidden="true") &times;
    h4.modal-title
      | Create Lab

  .modal-body
    .form-group
      label.control-label
        | Lab Display Name
      input.form-control(type='text' ng-model='lab.display_name' placeholder='Name' required='' focus-me='true')
      slug(from='lab.display_name' to='lab.slug')
      input(type='hidden' ng-model='lab.slug' required='')
    p(style={color: '#aaa'})
      i.fa.fa-fw.fa-info-circle
      span(ng-if='!lab.slug')
        | Please start typing...
      span(ng-if='lab.slug')
        | This lab's API name will be:&nbsp;
        samp
          | {{ lab.slug }}

  .modal-footer
    button.btn.btn-default(type='button' ng-click='cancel()')
      | Cancel
    button.btn.btn-success(type='button' ng-click='save()' ng-disabled='createLab.$invalid || working')
      | Create Lab<commit_msg>Show API error when creating lab in UI<commit_after>form(name='createLab' role='form' ng-submit='save()')
  .modal-header
    button.close(type="button" data-dismiss="modal" aria-label="Close" ng-click='cancel()')
      span(aria-hidden="true") &times;
    h4.modal-title
      | Create Lab

  .modal-body
    .form-group
      label.control-label
        | Lab Display Name
      input.form-control(type='text' ng-model='lab.display_name' placeholder='Name' required='' focus-me='true')
      slug(from='lab.display_name' to='lab.slug')
      input(type='hidden' ng-model='lab.slug' required='')
    p(style={color: '#aaa'})
      i.fa.fa-fw.fa-info-circle
      span(ng-if='!lab.slug')
        | Please start typing...
      span(ng-if='lab.slug')
        | This lab's API name will be:&nbsp;
        samp
          | {{ lab.slug }}
    .alert.alert-danger(ng-if='error')
      | {{ error }}

  .modal-footer
    button.btn.btn-default(type='button' ng-click='cancel()')
      | Cancel
    button.btn.btn-success(type='button' ng-click='save()' ng-disabled='createLab.$invalid || working')
      | Create Lab
{'fraction_non_alphanumeric': 0.18164794007490637, 'fraction_numerical': 0.0009363295880149813, 'mean_word_length': 2.97951582867784, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4264801', 'n_tokens_mistral': 722, 'n_tokens_neox': 714, 'n_words': 118}