<commit_before>'use strict';
var score = 0;

function Sub() {
  this.alive = true;
}

Sub.prototype.addToBoard = function() {
  // setting physical location of sub on board.
};

Sub.prototype.getLocation = function() {
  var x = Math.floor(Math.random() * 3);
  var y = Math.floor(Math.random() * 3);
  return x, y;
};

function Player() {
  this.name = name;
  this.score = score;
  this.turns = [];
}

Player.prototype.attack = function(coordinates) {
  if(!sub) {
    alert('Miss!');
    turns.push(coordinates);
  } else {
    // Game Over!
  }
};

Player.prototype.updateScore = function() {

};
<commit_msg>Added code to else statement in attack function<commit_after>'use strict';
var score = 0;

function Sub() {
  this.alive = true;
}

Sub.prototype.addToBoard = function() {
  // setting physical location of sub on board.
};

Sub.prototype.getLocation = function() {
  var x = Math.floor(Math.random() * 3);
  var y = Math.floor(Math.random() * 3);
  return x, y;
};

function Player() {
  this.name = name;
  this.score = score;
  this.turns = [];
}

Player.prototype.attack = function(coordinates) {
  if(!sub) {
    alert('Miss!');
    turns.push(coordinates);
  } else {
    // Game Over!
    this.sub.alive = false;
    alert('You Win!');
  }
};

Player.prototype.updateScore = function() {

};

{'fraction_non_alphanumeric': 0.16781083142639205, 'fraction_numerical': 0.004576659038901602, 'mean_word_length': 3.2459546925566345, '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': '5337863', 'n_tokens_mistral': 463, 'n_tokens_neox': 456, 'n_words': 107}