<commit_before><script>
  //var screenName = localStorage.hasOwnProperty("screenName") ?
  //  localStorage.screenName : "";
  var screenName = "";
  
  while (screenName == "") {
    screenName = prompt("What's your name?");
    //localStorage.screenName = screenName;
  }
  
  wsSend = function(ws, payload) {
    return ws.send(JSON.stringify(payload))
  }

  var ws = new WebSocket("ws://10.1.0.55:9772/yoda")

  ws.onopen = function() {
    wsSend(ws, {"auth": {"user": "yoda", "secret": "pass"}})
  }

  ws.onmessage = function(evt) {
    data = JSON.parse(evt.data);
    if (data.hasOwnProperty("__authenticated")) {<commit_msg>added storing the screen name in local storage<commit_after><script>
  var screenName = localStorage.hasOwnProperty("screenName") ?
    localStorage.screenName : "";
  
  while (screenName == "") {
    screenName = prompt("What's your name?");
    localStorage.screenName = screenName;
  }
  
  wsSend = function(ws, payload) {
    return ws.send(JSON.stringify(payload))
  }

  var ws = new WebSocket("ws://10.1.0.55:9772/yoda")

  ws.onopen = function() {
    wsSend(ws, {"auth": {"user": "yoda", "secret": "pass"}})
  }

  ws.onmessage = function(evt) {
    data = JSON.parse(evt.data);
    if (data.hasOwnProperty("__authenticated")) {
{'fraction_non_alphanumeric': 0.17582417582417584, 'fraction_numerical': 0.015698587127158554, 'mean_word_length': 3.653284671532847, 'pattern_counts': {'":': 6, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6133720', 'n_tokens_mistral': 456, 'n_tokens_neox': 432, 'n_words': 81}