<commit_before>/*global $,cyberDojo*/

var cyberDojo = (function(cd, $) {
  "use strict";

  cd.dialog_basics = function() {
    
    var indent = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";    
    var setup =
      cd.divPanel(''
        + '10. Click <span id="setup" class="button">setup</span>, '
        + 'choose a <span class="filename">language</span>, '
        + 'choose an exercise, '
        + 'click <span id="ok" class="button">ok</span><br/>'
        + indent + "You'll get an id, e.g.,"
        + "<span id='kata_id_input'>&nbsp;3AF65A28F9&nbsp;</span>"
    );
    var enter =
      cd.divPanel(''
        + '20. At <em>each</em> computer, '
        + 'enter the <span id="kata_id_input">&nbsp;3AF65A28F9&nbsp;</span> id,<br/>'
        + indent + '(the first 5 chars of the id are usually enough) '
        + 'and click <div id="start_coding" class="button">start</div><br/>'
    );
    var animal =
      cd.divPanel(''
        + '30. Each computer will be assigned an animal (e.g. panda)'
    );
    var limit =
      cd.divPanel(''
        + '40. Code for a set amount of time '
        + 'e.g. 30/45/60 minutes.'
      );      
    var retro =
      cd.divPanel(''
        + '50. When time is up everyone uses the '
        + '<span id="review_coding" class="button">review</span> dashboard and '
        + 'diff pages to review<br>'
        + indent + 'what they did and chooses what aspects to focus '
        + 'on improving in the next iteration.'
      );
    var repeat =
      cd.divPanel(''
        + '60. goto 10<br/>'
        + indent + 'Start again, doing '
        + 'the <em>same</em> exercise, '
        + 'in the <em>same</em> language.'
        );      
    var basics = $(cd.makeTable(setup,enter,animal,limit,retro,repeat));
      
    return cd.dialog(basics.html(), 800, 'basics');<commit_msg>tweaked the basics dialog now only first 6 chars of id is shown<commit_after>/*global $,cyberDojo*/

var cyberDojo = (function(cd, $) {
  "use strict";

  cd.dialog_basics = function() {
    
    var indent = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";    
    var setup =
      cd.divPanel(''
        + '10. Click <span id="setup" class="button">setup</span>, '
        + 'choose a <span class="filename">language</span>, '
        + 'choose an exercise, '
        + 'click <span id="ok" class="button">ok</span><br/>'
        + indent + "You'll get an id, e.g.,"
        + "<span id='kata_id_input'>&nbsp;3AF65A&nbsp;</span>"
    );
    var enter =
      cd.divPanel(''
        + '20. At <em>each</em> computer, '
        + 'enter the <span id="kata_id_input">&nbsp;3AF65A&nbsp;</span> id, '
        + 'and click <div id="start_coding" class="button">start</div><br/>'
    );
    var animal =
      cd.divPanel(''
        + '30. Each computer will be assigned an animal (e.g. panda)'
    );
    var limit =
      cd.divPanel(''
        + '40. Code for a set amount of time '
        + 'e.g. 30/45/60 minutes.'
      );      
    var retro =
      cd.divPanel(''
        + '50. When time is up use the '
        + '<span id="review_coding" class="button">review</span> dashboard '
        + 'to review everyones<br>'
        + indent + 'code and choose what aspects to focus '
        + 'on improving in the next iteration.'
      );
    var repeat =
      cd.divPanel(''
        + '60. goto 10<br/>'
        + indent + 'Start again, doing '
        + 'the <em>same</em> exercise, '
        + 'in the <em>same</em> language.'
        );      
    var basics = $(cd.makeTable(setup,enter,animal,limit,retro,repeat));
      
    return cd.dialog(basics.html(), 800, 'basics');
{'fraction_non_alphanumeric': 0.17028985507246377, 'fraction_numerical': 0.01839464882943144, 'mean_word_length': 2.210196779964222, 'pattern_counts': {'":': 0, '<': 52, '<?xml version=': 0, '>': 52, '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': '3101463', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1188, 'n_words': 303}