<commit_before>var greeting1 = document.getElementById('greeting');
var res1 = document.getElementById('result1');
var res2 = document.getElementById('result2');
var res3 = document.getElementById('result3');
var res4 = document.getElementById('result4');
var res5 = document.getElementById('result5');

var correct1 = document.getElementById('correctCount') ;

var userName = prompt('Welcome to the guessing game.  What is your name?');
console.log('The user\'s name is ' + userName);
if (userName === '') {
  userName = 'Sloth Bearson';
}

function userGreeting () {
  greeting1.textContent = 'Hello, ' + userName + '!  I have a few questions to ask you.';
}

var userNumCorrect = 0; //number of questions answered correctly

function correctCounter() {
  console.log ('The user got ' + userNumCorrect + ' questions correct.');
  correct1.textContent = userNumCorrect + ' questions correct.';
}

function firstQuestion() {
  var userAnswer1 = prompt('First question!  This is a yes/no question, ' + userName + ', so please answer with Y or N.  Was I born in Alaska?');
  console.log('The user\'s first answer is ' + userAnswer1);

  if (userAnswer1.toUpperCase() === 'Y' || userAnswer1.toUpperCase() === 'YES') {
    userNumCorrect++;
    correctCounter();
    //alert('Good job ' + userName + ', you are right!  I was born in Alaska.  The doctor had me fight a polar bear inside our igloo, as is tradition.  You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.');
    res1.textContent = 'Good job ' + userName + ', you are right!  I was born in Alaska.  The doctor had me fight a polar bear inside our igloo, as is tradition.  You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.';

    console.log('User has ' + userNumCorrect + ' answers correct');
  } else {
    //alert('Too bad ' + userName + ', you are wrong!  I was born in Alaska.  You better bone up on your trivia.  You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.');
    res1.textContent = 'Too bad ' + userName + ', you are wrong!  I was born in Alaska.  You better bone up on your trivia.  You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.';
    console.log('User has ' + userNumCorrect + ' answers correct');
  }
}

function secondQuestion() {
  var userAnswer2 = prompt('Alright ' + userName + ', next question! This is a yes/no question, so please answer with Y or N.  Are my eyes blue?');
  console.log('The user\'s second answer is ' + userAnswer2);

  if (userAnswer2.toUpperCase() === 'Y' || userAnswer2.toUpperCase() === 'YES') {
    userNumCorrect++;
    correctCounter();
    //alert('Great choice ' + userName + '!  My eyes are blue and dark, like a stormy sea. You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.');
    res2.textContent = 'Great choice ' + userName + '!  My eyes are blue and dark, like a stormy sea. You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.';
    console.log('User has ' + userNumCorrect + ' answers correct');
  } else {
    //alert('Rough luck ' + userName +', you are wrong.  You should spend more time staring at my face.  You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.');
    res2.textContent = 'Rough luck ' + userName +', you are wrong.  You should spend more time staring at my face.  You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.';
    console.log('User has ' + userNumCorrect + ' answers correct');
  }
}

function thirdQuestion() {
  var userAnswer3 = prompt('You are doing great ' + userName + ', lets keep moving!  This is another yes/no question, so please answer with Y or N.  Is my favorite animal the slothbear?');
  console.log('The user\'s third answer is ' + userAnswer3);

  if (userAnswer3.toUpperCase() === 'Y' || userAnswer3.toUpperCase() === 'YES') {
    userNumCorrect++;
    correctCounter();
    //alert('Right you are ' + userName + '!  My favorite animal is the slothbear.  Lets make some vacuum noises to celebrate!  You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.');
    res3.textContent = 'Right you are ' + userName + '!  My favorite animal is the slothbear.  Lets make some vacuum noises to celebrate!  You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.';
    console.log('User has ' + userNumCorrect + ' answers correct');
  } else {
    //alert(userName + ', you got this one wrong.  I was going to share my pile of ants with you, but now I am going to keep them all to myself.  You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.');
    res3.textContent = userName + ', you got this one wrong.  I was going to share my pile of ants with you, but now I am going to keep them all to myself.  You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.';
    console.log('User has ' + userNumCorrect + ' answers correct');
  }
}

var myAge = 34;
var userNumGuesses = 0; //number of guesses on the age question

function fourthQuestion() {
  while (userAnswer4 != myAge) {
    userNumGuesses++;

    var userAnswer4 = prompt('Oh man ' + userName + ', I am having so much fun.  I am going to ask you another question.  How old do you think I am?  Please enter a number.');
    console.log('The user\'s fourth answer is ' + userAnswer4);

    userAnswer4 = parseInt(userAnswer4);<commit_msg>removing final soft equals<commit_after>var greeting1 = document.getElementById('greeting');
var res1 = document.getElementById('result1');
var res2 = document.getElementById('result2');
var res3 = document.getElementById('result3');
var res4 = document.getElementById('result4');
var res5 = document.getElementById('result5');

var correct1 = document.getElementById('correctCount') ;

var userName = prompt('Welcome to the guessing game.  What is your name?');
console.log('The user\'s name is ' + userName);
if (userName === '') {
  userName = '<NAME>';
}

function userGreeting () {
  greeting1.textContent = 'Hello, ' + userName + '!  I have a few questions to ask you.';
}

var userNumCorrect = 0; //number of questions answered correctly

function correctCounter() {
  console.log ('The user got ' + userNumCorrect + ' questions correct.');
  correct1.textContent = userNumCorrect + ' questions correct.';
}

function firstQuestion() {
  var userAnswer1 = prompt('First question!  This is a yes/no question, ' + userName + ', so please answer with Y or N.  Was I born in Alaska?');
  console.log('The user\'s first answer is ' + userAnswer1);

  if (userAnswer1.toUpperCase() === 'Y' || userAnswer1.toUpperCase() === 'YES') {
    userNumCorrect++;
    correctCounter();
    //alert('Good job ' + userName + ', you are right!  I was born in Alaska.  The doctor had me fight a polar bear inside our igloo, as is tradition.  You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.');
    res1.textContent = 'Good job ' + userName + ', you are right!  I was born in Alaska.  The doctor had me fight a polar bear inside our igloo, as is tradition.  You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.';

    console.log('User has ' + userNumCorrect + ' answers correct');
  } else {
    //alert('Too bad ' + userName + ', you are wrong!  I was born in Alaska.  You better bone up on your trivia.  You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.');
    res1.textContent = 'Too bad ' + userName + ', you are wrong!  I was born in Alaska.  You better bone up on your trivia.  You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.';
    console.log('User has ' + userNumCorrect + ' answers correct');
  }
}

function secondQuestion() {
  var userAnswer2 = prompt('Alright ' + userName + ', next question! This is a yes/no question, so please answer with Y or N.  Are my eyes blue?');
  console.log('The user\'s second answer is ' + userAnswer2);

  if (userAnswer2.toUpperCase() === 'Y' || userAnswer2.toUpperCase() === 'YES') {
    userNumCorrect++;
    correctCounter();
    //alert('Great choice ' + userName + '!  My eyes are blue and dark, like a stormy sea. You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.');
    res2.textContent = 'Great choice ' + userName + '!  My eyes are blue and dark, like a stormy sea. You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.';
    console.log('User has ' + userNumCorrect + ' answers correct');
  } else {
    //alert('Rough luck ' + userName +', you are wrong.  You should spend more time staring at my face.  You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.');
    res2.textContent = 'Rough luck ' + userName +', you are wrong.  You should spend more time staring at my face.  You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.';
    console.log('User has ' + userNumCorrect + ' answers correct');
  }
}

function thirdQuestion() {
  var userAnswer3 = prompt('You are doing great ' + userName + ', lets keep moving!  This is another yes/no question, so please answer with Y or N.  Is my favorite animal the slothbear?');
  console.log('The user\'s third answer is ' + userAnswer3);

  if (userAnswer3.toUpperCase() === 'Y' || userAnswer3.toUpperCase() === 'YES') {
    userNumCorrect++;
    correctCounter();
    //alert('Right you are ' + userName + '!  My favorite animal is the slothbear.  Lets make some vacuum noises to celebrate!  You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.');
    res3.textContent = 'Right you are ' + userName + '!  My favorite animal is the slothbear.  Lets make some vacuum noises to celebrate!  You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.';
    console.log('User has ' + userNumCorrect + ' answers correct');
  } else {
    //alert(userName + ', you got this one wrong.  I was going to share my pile of ants with you, but now I am going to keep them all to myself.  You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.');
    res3.textContent = userName + ', you got this one wrong.  I was going to share my pile of ants with you, but now I am going to keep them all to myself.  You have answered ' + userNumCorrect + ' questions correctly.  Nice Job.';
    console.log('User has ' + userNumCorrect + ' answers correct');
  }
}

var myAge = 34;
var userNumGuesses = 0; //number of guesses on the age question

function fourthQuestion() {
  while (userAnswer4 !== myAge) {
    userNumGuesses++;

    var userAnswer4 = prompt('Oh man ' + userName + ', I am having so much fun.  I am going to ask you another question.  How old do you think I am?  Please enter a number.');
    console.log('The user\'s fourth answer is ' + userAnswer4);

    userAnswer4 = parseInt(userAnswer4);
{'fraction_non_alphanumeric': 0.11813212267210228, 'fraction_numerical': 0.007597516909107755, 'mean_word_length': 3.6465777012483858, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '5534336', 'n_tokens_mistral': 3176, 'n_tokens_neox': 3059, 'n_words': 1235}