<commit_before>alert('Hi! Let\'s play a guessing game about me!');

var userName = prompt('First, tell me what your name is!');
console.log('The user\'s name is ' + userName);
alert('Nice to meet you, ' + userName + '! I\'m going to ask you some questions about me. Please answer Y/N. Let\'s get this game started!');

var answer1 = prompt('Ok ' + userName + ', first question. Am I the oldest child in my family?').toUpperCase();

if (answer1 === 'Y' || answer1 === 'YES') {
  alert('That is correct! Great guess ' + userName + '!');
  console.log('The first answer was correct');
} else if (answer1 === 'N' || answer1 === 'NO'){
  alert('Sorry, that is incorrect. Better luck next time ' + userName + '...');
  console.log('The first answer was wrong');
} else {
  alert('Something went wrong with your answer. Make sure you only answer yes or no.');
  console.log('Something went wrong with the first answer. They said ' + answer1 + '.');
};

var answer2 = prompt('Next question. Did I attend the University of Washington?').toUpperCase();

if (answer2 === 'Y' || answer2 === 'YES') {
  alert('100% correct! Good job ' + userName + '.');
  console.log('The second answer was correct')
} else if (answer2 === 'N' || answer2 === 'NO'){
  alert('Whoops. I actually did go to the UW. Come on ' + userName + ', you\'re better than that!');
  console.log('The second answer was wrong.');
} else {
  alert('Something went wrong with your answer. Make sure you only answer yes or no.');
  console.log('Something went wrong with the second answer. They said ' + answer2 + '.')
};

var answer3 = prompt('Here comes the third question ' + userName + ', hope you\'re ready! Do I like cats more than dogs?').toUpperCase();

if (answer3 === 'N' || answer3 === 'NO') {
  alert('That\'s what I\'m talking about ' + userName + '. Everyone knows dogs are the best.');
  console.log('The third answer was correct.');
} else if (answer3 === 'Y' || answer3 === 'YES') {
  alert('Terrible answer. Cats are the worst. How could you not know that ' + userName + '?');
} else {
  alert('Something went wrong with your answer. Make sure you only answer yes or no.');
  console.log('Something went wrong with the third answer. They said ' + answer3 + '.');
};

var answer4 = prompt('Halfway done. Question number four. Have I ever been to prison?').toUpperCase();

if (answer4 === 'N' || answer4 === 'NO') {
  alert('That is correct. Thank God. I wouldn\'t last a day in there if I\'m being perfectly honest with you ' + userName + '.');
  console.log('The fourth answer was correct.');
} else if (answer4 === 'Y' || answer4 === 'YES') {
  alert('No I haven\'t been to prison! ' + userName + ', I thought we were friends and it turns out you think I\'m a criminal. I\'m genuinely hurt.');
  console.log('The fourth answer was incorrect');
} else {
  alert('Something went wrong with your answer. Make sure you only answer yes or no.');
  console.log('Something went wrong with the fourth answer. They said ' + answer4 + '.');
};

var answer5 = prompt('We\'ve made it to the final yes or no answer. Alright ' + userName + ', for one million dollars. Am I going to be the best damn coder you have ever met?').toUpperCase();

if (answer5 === 'Y' || answer5 === 'YES') {
  alert('That is correct! Thanks ' + userName + ', I knew you believed in me.');
  console.log('The fifth answer was correct.');
} else if (answer5 === 'N' || answer5 === 'NO') {
  alert(userName + ', I really can\'t believe you would say that.');
  console.log('The fifth answer was incorrect.');
} else {
  alert('Something went wrong with your answer. If you haven\'t figured it out at this point ' + userName + ', I really can\'t help you.');
  console.log('Something went wrong with the fifth answer. They said ' + answer5 + '.');
};

var answer6 = prompt('Ok ' + userName + ', do me a favor and answer this one in numbers. How old do you think I am?');
var n = 0;
while (answer6 != '24' && n < 4) {
  if (isNaN(answer6) == true){
    n++;
    alert('Whoops. Looks like you didn\'t answer with a number. Try again using a number.');
    console.log('The answer given for question 6 was not a number. This was guess ' + n + '.');
  }else if(answer6 > '24') {
    n++;
    alert('I\'ve got some bad news. You missed. Try again, but this time guess lower.');
    console.log('The sixth answer was wrong. They said ' + answer6 + ". This was guess " + n + '.')
  } else {
    n++;
    alert('Tough luck, you missed. Try again, but this time guess higher.');
    console.log('The sixth answer was wrong. They said ' + answer6 + '. This was guess ' + n + '.');
  }
  var answer6 = prompt('I\'ll give you another try. How old do you think I am?')
}
if(answer6 === '24') {
  alert('Congratulations ' + userName + '. You nailed it.');
  console.log('The sixth answer was right on try number ' + n + '.');
} else {
  alert('You missed 4 times. I\'m pretty disappointed in you ' + userName +'.');
  console.log('The sixth answer was wrong all four times.');
};<commit_msg>added the correct answer counter<commit_after>var n = 0;
var totalAnswer = 0;
var correctAnswer = 1;
alert('Hi! Let\'s play a guessing game about me!');

var userName = prompt('First, tell me what your name is!');
console.log('The user\'s name is ' + userName);
alert('Nice to meet you, ' + userName + '! I\'m going to ask you some questions about me. Please answer Y/N. Let\'s get this game started!');

var answer1 = prompt('Ok ' + userName + ', first question. Am I the oldest child in my family?').toUpperCase();

if (answer1 === 'Y' || answer1 === 'YES') {
  alert('That is correct! Great guess ' + userName + '!');
  console.log('The first answer was correct');
  var totalAnswer = totalAnswer += correctAnswer;
  console.log('correct answers: ' + totalAnswer);
} else if (answer1 === 'N' || answer1 === 'NO'){
  alert('Sorry, that is incorrect. Better luck next time ' + userName + '...');
  console.log('The first answer was wrong');
} else {
  alert('Something went wrong with your answer. Make sure you only answer yes or no.');
  console.log('Something went wrong with the first answer. They said ' + answer1 + '.');
};
var answer2 = prompt('Next question. Did I attend the University of Washington?').toUpperCase();

if (answer2 === 'Y' || answer2 === 'YES') {
  alert('100% correct! Good job ' + userName + '.');
  console.log('The second answer was correct');
  var totalAnswer = totalAnswer += correctAnswer;
  console.log('correct answers: ' + totalAnswer);
} else if (answer2 === 'N' || answer2 === 'NO'){
  alert('Whoops. I actually did go to the UW. Come on ' + userName + ', you\'re better than that!');
  console.log('The second answer was wrong.');
} else {
  alert('Something went wrong with your answer. Make sure you only answer yes or no.');
  console.log('Something went wrong with the second answer. They said ' + answer2 + '.')
};

var answer3 = prompt('Here comes the third question ' + userName + ', hope you\'re ready! Do I like cats more than dogs?').toUpperCase();

if (answer3 === 'N' || answer3 === 'NO') {
  alert('That\'s what I\'m talking about ' + userName + '. Everyone knows dogs are the best.');
  console.log('The third answer was correct.');
  var totalAnswer = totalAnswer += correctAnswer;
  console.log('correct answers: ' + totalAnswer);
} else if (answer3 === 'Y' || answer3 === 'YES') {
  alert('Terrible answer. Cats are the worst. How could you not know that ' + userName + '?');
} else {
  alert('Something went wrong with your answer. Make sure you only answer yes or no.');
  console.log('Something went wrong with the third answer. They said ' + answer3 + '.');
};

var answer4 = prompt('Halfway done. Question number four. Have I ever been to prison?').toUpperCase();

if (answer4 === 'N' || answer4 === 'NO') {
  alert('That is correct. Thank God. I wouldn\'t last a day in there if I\'m being perfectly honest with you ' + userName + '.');
  console.log('The fourth answer was correct.');
  var totalAnswer = totalAnswer += correctAnswer;
  console.log('correct answers: ' + totalAnswer);
} else if (answer4 === 'Y' || answer4 === 'YES') {
  alert('No I haven\'t been to prison! ' + userName + ', I thought we were friends and it turns out you think I\'m a criminal. I\'m genuinely hurt.');
  console.log('The fourth answer was incorrect');
} else {
  alert('Something went wrong with your answer. Make sure you only answer yes or no.');
  console.log('Something went wrong with the fourth answer. They said ' + answer4 + '.');
};

var answer5 = prompt('We\'ve made it to the final yes or no answer. Alright ' + userName + ', for one million dollars. Am I going to be the best damn coder you have ever met?').toUpperCase();

if (answer5 === 'Y' || answer5 === 'YES') {
  alert('That is correct! Thanks ' + userName + ', I knew you believed in me.');
  console.log('The fifth answer was correct.');
  var totalAnswer = totalAnswer += correctAnswer;
  console.log('correct answers: ' + totalAnswer);
} else if (answer5 === 'N' || answer5 === 'NO') {
  alert(userName + ', I really can\'t believe you would say that.');
  console.log('The fifth answer was incorrect.');
} else {
  alert('Something went wrong with your answer. If you haven\'t figured it out at this point ' + userName + ', I really can\'t help you.');
  console.log('Something went wrong with the fifth answer. They said ' + answer5 + '.');
};

var answer6 = prompt('Ok ' + userName + ', do me a favor and answer this one in numbers. How old do you think I am?');
while (answer6 != '24' && n < 4) {
  if (isNaN(answer6) == true){
    n++;
    alert('Whoops. Looks like you didn\'t answer with a number. Try again using a number.');
    console.log('The answer given for question 6 was not a number. This was guess ' + n + '.');
  }else if(answer6 > '24') {
    n++;
    alert('I\'ve got some bad news. You missed. Try again, but this time guess lower.');
    console.log('The sixth answer was wrong. They said ' + answer6 + ". This was guess " + n + '.')
  } else {
    n++;
    alert('Tough luck, you missed. Try again, but this time guess higher.');
    console.log('The sixth answer was wrong. They said ' + answer6 + '. This was guess ' + n + '.');
  }
  var answer6 = prompt('I\'ll give you another try. How old do you think I am?')
}
if(answer6 === '24') {
  alert('Congratulations ' + userName + '. You nailed it.');
  console.log('The sixth answer was right on try number ' + n + '.');
  var totalAnswer = totalAnswer += correctAnswer;
  console.log('correct answers: ' + totalAnswer);
} else {
  alert('You missed 4 times. I\'m pretty disappointed in you ' + userName +'.');
  console.log('The sixth answer was wrong all four times.');
};
if (totalAnswer == 6) {
  alert('You got ' + totalAnswer + ' out of 6 ' + userName + '. You should definitely not know that much about me');
} else if (3 < totalAnswer < 6) {
  alert('You got ' + totalAnswer + ' out of 6 ' + userName + '. Way to go!');
} else {
  alert('You only got ' + totalAnswer + ' out of 6 ' + userName + '. I thought you cared more about me than that.')
};
{'fraction_non_alphanumeric': 0.1543399638336347, 'fraction_numerical': 0.009945750452079566, 'mean_word_length': 3.6222315085666525, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': 2, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '426648', 'n_tokens_mistral': 3296, 'n_tokens_neox': 3279, 'n_words': 1408}