<commit_before>(function(){
	'use strict';

	var fb = new Firebase('https://tictactoemax.firebaseio.com/');


	fb.child('games/test').once('value',function (snap) {
		var data = snap.val();

        $('.panel').on('click', function (event) {
		  var $panel = $(this);

	      if ($panel.attr("data-move")) {
	      	console.log("already played")
	      } else {
			  $(this).attr('data-move', 'x');
	          $(this).append('<div class="move">x</div>');
	          changeBoardState($panel, data);
		  }
		});
	}); //end fb.child

	function changeBoardState(panel, data) {
      var fbTestGame      = fb.child('games/test'),
	      boardState      = data.boardState,
	      $boardPosition  = panel.attr('id'),
	      boardPosition   = {position: $boardPosition};

	      // fbTestGame.set(boardPosition);

          console.log(fbTestGame);
<commit_msg>commit for index.js merge<commit_after>(function(){
	'use strict';

	var fb = new Firebase('https://tictactoemax.firebaseio.com/');


	fb.child('games/test').once('value',function (snap) {
		var data = snap.val();

        $('.panel').on('click', function (event) {
		  var $panel = $(this);

	      if ($panel.attr("data-move")) {
	      	console.log("already played")
	      } else {
			  $(this).attr('data-move', 'x');
	          $(this).append('<div class="move">x</div>');
	          changeBoardState($panel, data);
		  }
		});
	}); //end fb.child

	function changeBoardState(panel, data) {
      var fbTestGame      = fb.child('games/test/boardState'),
	      boardState      = data.boardState,
	      $boardPosition  = panel.attr('id'),
	      boardPosition   = {position: $boardPosition};

	      // fbTestGame.set(boardPosition);

          console.log(fbTestGame);

{'fraction_non_alphanumeric': 0.18854829381145172, 'fraction_numerical': 0.0, 'mean_word_length': 2.6965811965811968, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '877344', 'n_tokens_mistral': 605, 'n_tokens_neox': 536, 'n_words': 95}