<commit_before>var camera, scene;
var MTS = 1e7;
var PI = Math.PI;
var shipName;
var z0, x0;
var lifeSocket;

var tile38Host = "localhost";
var tile38 = "ws://" + tile38Host+ ":9851";

var socketHost = "localhost";
socketHost = "ws://" + socketHost + ":8080";

init();
animate();

function init() {
  camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 1, 10000);

  scene = new THREE.Scene();

  renderer = new THREE.WebGLRenderer();
  renderer.setSize(window.innerWidth * 0.9, window.innerHeight * 0.8);

  var container = document.getElementById("three-container");
  container.appendChild(renderer.domElement);

  setKeys();

  lifeSocket = new WebSocket(socketHost);
  var collisionSocket = new WebSocket(socketHost);

  lifeSocket.onopen = function (event) {
    lifeSocket.send(JSON.stringify({message:"init"}));
    lifeSocket.send(JSON.stringify({message:"scan rocks"}));
  }

  lifeSocket.onmessage = function(event) {
    var data  = JSON.parse(event.data);
    if ( data.message == "init" ) {
      var angle = data.name;<commit_msg>websocket server with static ip<commit_after>var camera, scene;
var MTS = 1e7;
var PI = Math.PI;
var shipName;
var z0, x0;
var lifeSocket;

var socketHost = "192.168.3.11";
socketHost = "ws://" + socketHost + ":8080";

init();
animate();

function init() {
  camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 1, 10000);

  scene = new THREE.Scene();

  renderer = new THREE.WebGLRenderer();
  renderer.setSize(window.innerWidth * 0.9, window.innerHeight * 0.8);

  var container = document.getElementById("three-container");
  container.appendChild(renderer.domElement);

  setKeys();

  lifeSocket = new WebSocket(socketHost);
  var collisionSocket = new WebSocket(socketHost);

  lifeSocket.onopen = function (event) {
    lifeSocket.send(JSON.stringify({message:"init"}));
    lifeSocket.send(JSON.stringify({message:"scan rocks"}));
  }

  lifeSocket.onmessage = function(event) {
    var data  = JSON.parse(event.data);
    if ( data.message == "init" ) {
      var angle = data.name;
{'fraction_non_alphanumeric': 0.14947468958930277, 'fraction_numerical': 0.028175740210124166, 'mean_word_length': 4.371794871794871, 'pattern_counts': {'":': 3, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '3157217', 'n_tokens_mistral': 721, 'n_tokens_neox': 662, 'n_words': 157}