<commit_before>doctype
html(lang='en' ng-app="drawingApp")
head
    meta(charset='utf-8')
    title Desktops and Tablets

    link(rel='stylesheet', href='/stylesheets/drawing-app.css')
    script(type='text/javascript', src='https://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js')

      
  body(ng-controller="DrawingAppCtrl")
    h1 Canvas test
    div.join(ng-show="!joined")
      form.join(ng-model="formJoin", name="formJoin", ng-submit="join(groupName)")
        input(ng-model="groupName", class="groupName", ng-required="true", type="text", ng-minlength="1")
        input(type="submit", value="Join Group", ng-disabled="formJoin.$invalid")
    div.pictionary(ng-hide="!joined" ng-cloak)
      div.canvasDiv
        canvas#canvasSignature(width="600", height="400")
      div.chat
        div.messageEntry
          form.formMessage(ng-model="formMessage", name="formMessage", ng-submit="sendMsg(message)")
            label
              | Enter a message:
            input(ng-model="message", class="message", ng-required="true", type="text", ng-minlength="1")
            input(type="submit", value="Send", ng-disabled="formMessage.$invalid")
        div.messages
          ul
            li(ng-repeat="message in messages track by $index" ng-cloak="true")
              |{{message}}


    script(type='text/javascript' src='/javascripts/Pad.js')    
    script(type='text/javascript', src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js')
    script(type='text/javascript', src='/javascripts/app.js')
    script(type='text/javascript', src='/javascripts/services.js')
    script(type='text/javascript', src='/javascripts/controllers.js')<commit_msg>First part for choosing a username<commit_after>doctype
html(lang='en' ng-app="drawingApp")
head
    meta(charset='utf-8')
    title Desktops and Tablets

    link(rel='stylesheet', href='/stylesheets/drawing-app.css')
    script(type='text/javascript', src='https://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js')

      
  body(ng-controller="DrawingAppCtrl")
    h1 Canvas test
    div.username(ng-show="!pickedUsername")
      form.join(ng-model="usernameForm", name="usernameForm", ng-submit="chooseUsername(name)")
        input(ng-model="username", class="username", ng-required="true", type="text", ng-minlength="1")
        input(type="submit", value="Submit", ng-disabled="usernameForm.$invalid")

    div.join(ng-show="!joined && pickedUsername")
      form.join(ng-model="formJoin", name="formJoin", ng-submit="join(groupName)")
        input(ng-model="groupName", class="groupName", ng-required="true", type="text", ng-minlength="1")
        input(type="submit", value="Join Group", ng-disabled="formJoin.$invalid")
    div.pictionary(ng-hide="!joined" ng-cloak)
      div.canvasDiv
        canvas#canvasSignature(width="600", height="400")
      div.chat
        div.messageEntry
          form.formMessage(ng-model="formMessage", name="formMessage", ng-submit="sendMsg(message)")
            label
              | Enter a message:
            input(ng-model="message", class="message", ng-required="true", type="text", ng-minlength="1")
            input(type="submit", value="Send", ng-disabled="formMessage.$invalid")
        div.messages
          ul
            li(ng-repeat="message in messages track by $index" ng-cloak="true")
              |{{message}}


    script(type='text/javascript' src='/javascripts/Pad.js')    
    script(type='text/javascript', src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js')
    script(type='text/javascript', src='/javascripts/app.js')
    script(type='text/javascript', src='/javascripts/services.js')
    script(type='text/javascript', src='/javascripts/controllers.js')
{'fraction_non_alphanumeric': 0.17809675704412548, 'fraction_numerical': 0.009303561935140883, 'mean_word_length': 3.7333333333333334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '77736', 'n_tokens_mistral': 1190, 'n_tokens_neox': 1151, 'n_words': 161}