<commit_before>div(ng-include='"components/navbar/navbar.html"')



.container




  .row.actions
    .col-sm-6
      span.input-group-btn
        button.btn.btn-primary(type='submit', ng-click='updateDocument()') Update
    .col-sm-6
      span.input-group-btn
        button.btn.btn-success(type='button', ng-click='previewDocument()') Preview (Update first)

  .row
    p.input-group
     div.json-editor


  .row.actions
    .col-sm-6
      span.input-group-btn
        button.btn.btn-primary(type='submit', ng-click='updateDocument()') Update
    .col-sm-6
      span.input-group-btn
        button.btn.btn-success(type='button', ng-click='previewDocument()') Preview (Update first)


  form.document-form.form
    .form-group
      label Document name
      input.form-control(type='text', placeholder='Name', ng-model='document.name')

    .form-group
      label Document info
      input.form-control(type='text', placeholder='Info', ng-model='document.info')

    .form-group
      label Live Google doc id
      input.form-control(type='text', placeholder='LIVE  :: Google Id e.g. 0B84YdCmz0nrQYVBZcHVkTVNTQjg', ng-model='document.liveContentGoogleDocId')

    .form-group
      label Dev Google doc id
      input.form-control(type='text', placeholder='DEV   :: Google Id e.g. 0B84YdCmz0nrQYVBZcHVkTVNTQjg', ng-model='document.devContentGoogleDocId')

    .form-group
      label Document content
      textarea.form-control(type='text', placeholder='Google doc content',class="textarea-lg", ng-model='documentContent')
<commit_msg>Preview changes now opens a new window as the iframe info was being cached - needs to be cleaned up<commit_after>div(ng-include='"components/navbar/navbar.html"')



.container




  .row.actions
    .col-sm-6
      span.input-group-btn
        button.btn.btn-primary(type='submit', ng-click='updateDocument()') Update
    .col-sm-6
      span.input-group-btn
        a(ng-href='/previewdocument/{{document._id}}', target="_blank")
          button.btn.btn-success(type='button') Preview (Update first)

  .row
    p.input-group
     div.json-editor


  .row.actions
    .col-sm-6
      span.input-group-btn
        button.btn.btn-primary(type='submit', ng-click='updateDocument()') Update
    .col-sm-6
      span.input-group-btn
        button.btn.btn-success(type='button', ng-click='previewDocument()') Preview (Update first)


  form.document-form.form
    .form-group
      label Document name
      input.form-control(type='text', placeholder='Name', ng-model='document.name')

    .form-group
      label Document info
      input.form-control(type='text', placeholder='Info', ng-model='document.info')

    .form-group
      label Live Google doc id
      input.form-control(type='text', placeholder='LIVE  :: Google Id e.g. 0B84YdCmz0nrQYVBZcHVkTVNTQjg', ng-model='document.liveContentGoogleDocId')

    .form-group
      label Dev Google doc id
      input.form-control(type='text', placeholder='DEV   :: Google Id e.g. 0B84YdCmz0nrQYVBZcHVkTVNTQjg', ng-model='document.devContentGoogleDocId')

    .form-group
      label Document content
      textarea.form-control(type='text', placeholder='Google doc content',class="textarea-lg", ng-model='documentContent')

{'fraction_non_alphanumeric': 0.14139216904909882, 'fraction_numerical': 0.0074580484773151025, 'mean_word_length': 3.241106719367589, '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': '5887988', 'n_tokens_mistral': 1072, 'n_tokens_neox': 1020, 'n_words': 181}