<commit_before>(function() {

  var gameId =  document.querySelector('#gameId');
  var gameIdQuery = document.querySelector('#gameIdQuery');
  var tictactoe = document.querySelector('#tictactoe');
  var output = document.querySelector('#output');
  var whosTurn = document.getElementById('whosTurn');

  var gameid = '';
  var rand = (Math.random() * 9999).toFixed(0);

  gameid = (getGameId()) ? getGameId() : rand;

  gameId.textContent = gameid; 

  var oppoenetUrl = 'https://pubnub.github.io/api-guide-with-tictactoe/plain.html?id=' +gameid;
  gameIdQuery.innerHTML = '<a href="' +oppoenetUrl+ '" target="_blank">' +oppoenetUrl+ '</a>';

  var channel = 'tictactoe--'+ gameid;
  console.log('Channel: '+channel);

  var uuid = PUBNUB.uuid();
  
  var pubnub = PUBNUB.init({
      subscribe_key: 'sub-c-182105ac-0001-11e5-8fd4-0619f8945a4f',
      publish_key: 'pub-c-ce04f67b-0f26-43ce-8be2-192e9821d1a3',
      uuid: uuid
  });

  function displayOutput(m) {
    if(!m) return;
    return '<li><strong>' +  m.player + '</strong>: ' + m.position + '</li>';
  }

  /*
   * Tic-tac-toe
   * Based on http://jsfiddle.net/5wKfF/378/
   * Multiplayer feature with PubNub
   */


  var mySign = 'X'; 

  pubnub.subscribe({
    channel: channel,
    connect: play,<commit_msg>Change url<commit_after>(function() {

  var gameId =  document.querySelector('#gameId');
  var gameIdQuery = document.querySelector('#gameIdQuery');
  var tictactoe = document.querySelector('#tictactoe');
  var output = document.querySelector('#output');
  var whosTurn = document.getElementById('whosTurn');

  var gameid = '';
  var rand = (Math.random() * 9999).toFixed(0);

  gameid = (getGameId()) ? getGameId() : rand;

  gameId.textContent = gameid; 

  var oppoenetUrl = 'http://pubnub.github.io/api-guide-with-tictactoe/plain.html?id=' +gameid;
  gameIdQuery.innerHTML = '<a href="' +oppoenetUrl+ '" target="_blank">' +oppoenetUrl+ '</a>';

  var channel = 'tictactoe--'+ gameid;
  console.log('Channel: '+channel);

  var uuid = PUBNUB.uuid();
  
  var pubnub = PUBNUB.init({
      subscribe_key: 'sub-c-182105ac-0001-11e5-8fd4-0619f8945a4f',
      publish_key: 'pub-c-ce04f67b-0f26-43ce-8be2-192e9821d1a3',
      uuid: uuid
  });

  function displayOutput(m) {
    if(!m) return;
    return '<li><strong>' +  m.player + '</strong>: ' + m.position + '</li>';
  }

  /*
   * Tic-tac-toe
   * Based on http://jsfiddle.net/5wKfF/378/
   * Multiplayer feature with PubNub
   */


  var mySign = 'X'; 

  pubnub.subscribe({
    channel: channel,
    connect: play,
{'fraction_non_alphanumeric': 0.17531446540880502, 'fraction_numerical': 0.041666666666666664, 'mean_word_length': 3.6105072463768115, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 1, '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': '1809492', 'n_tokens_mistral': 1026, 'n_tokens_neox': 949, 'n_words': 166}