<commit_before>var renderer = PIXI.autoDetectRenderer(544, 544,{backgroundColor : 0x23be78})
document.body.appendChild(renderer.view)

// create the root of the scene graph
var stage = new PIXI.Container()

// create a texture from an image path
var texture = PIXI.Texture.fromImage('../img/player.png')
var treeTexture = PIXI.Texture.fromImage('../img/tree.png')

var map = new Map

var socket = io('http://localhost:8080')

var myPlayer

socket.on('connect', function() {
  socket.emit('username', prompt("Yo, what's your username?"))
})

socket.on('whoami', function (playerId) {
  console.log('whoami', playerId)
  myPlayer = map.getPlayer(playerId)
})

socket.on('updates', function (updates) {
  console.log('updates', updates)
  var cells = updates.cells<commit_msg>tokens for users<commit_after>var renderer = PIXI.autoDetectRenderer(544, 544,{backgroundColor : 0x23be78})
document.body.appendChild(renderer.view)

// create the root of the scene graph
var stage = new PIXI.Container()

// create a texture from an image path
var texture = PIXI.Texture.fromImage('../img/player.png')
var treeTexture = PIXI.Texture.fromImage('../img/tree.png')

var map = new Map

var socket = io('http://localhost:8080')

var myPlayer

socket.on('connect', function() {
  var token = localStorage['token']
  var username
  if (!token) {
    username = prompt("Yo, what's your username?")
  }
  socket.emit('hello', username, token)
})

socket.on('whoami', function (playerId, token) {
  console.log('whoami', playerId, token)
  myPlayer = map.getPlayer(playerId)
  localStorage['token'] = token
})

socket.on('updates', function (updates) {
  console.log('updates', updates)
  var cells = updates.cells
{'fraction_non_alphanumeric': 0.15053128689492326, 'fraction_numerical': 0.01770956316410862, 'mean_word_length': 4.844827586206897, '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': '6143240', 'n_tokens_mistral': 576, 'n_tokens_neox': 545, 'n_words': 137}