<commit_before>/*
1.) Make variables for all of the elements I will be manipulating
    a. start with the form element and one type within the form
    b. make variable for one of each type of form elements
    c. make them all!

2.) Make functions for every(maybe) form element.
    a. make a function that will console.log for the form
    b. make a function for one
    c. then make function for one of each type of form element
    d. then make them all! muwahahaha


3.) Make eventListeners
    a. make eventListener for form
    b. make eventListeners as needed
*/

// var form = document.getElementByTag('form');
/*
var firstName = document.getElementById('first_name');

var lastName = document.getElementById('last_name');

var email = document.getElementById('email');

var country = document.getElementById("country");

var bio = document.getElementById("bio");

var phone = document.getElementById("phone");

var affilitaion = document.getElementById("affiliations");

var occupation = document.getElementById("occupation");

var catName = document.getElementById("cat_name");

var gadget = document.getElementById("gagdet");

var talent = document.getElementById("talent");

var drink = document.getElementById("drink");

var power = document.getElementById("power");

var weapon = document.getElementById("weapon");

var comments = document.getElementById("comments");
*/
// function logForm () {
//   console.log (this.input);
// }

// var data = {
//   casualName: "firstName.value",
//   sirName: "lastName.value",
//   mail:
// }


/*

var info = [];
info.push(firstName.value);
info.push(lastName.value);

function first () {
  info.push(firstName.value);
}

function last () {
  info.push(lastName.value);
}

function mail () {
  info.push(email.value);
}


function log () {
  // var info = [ ]; //empty array info
  // info.push(this.value); //pushing this.value into info array
  console.log(info); //console.logging array

}
//MISC EVENT LISTENERS THAT NEED THEIR FUNCTIONS UPDATED

// form.addEventListener('submit', logForm, false);

firstName.addEventListener('input', first, false);

lastName.addEventListener('input', last, false);

email.addEventListener('input', mail, false);         //stopped here

country.addEventListener('input', first, false);

bio.addEventListener('input', first, false);

phone.addEventListener('input', first, false);

affiliation.addEventListener('input', first, false);

occupation.addEventListener('input', first, false);

catName.addEventListener('input', first, false);

gadget.addEventListener('input', first, false);

talent.addEventListener('input', first, false);

drink.addEventListener('input', first, false);

power.addEventListener('input', first, false);

weapon.addEventListener('input', first, false);

comments.addEventListener('input', first, false);


*/







// var info = document.getElementsByClassName("cbp-mc-submit-wrap"); //not working (submit button)
var firstName = document.getElementById('first_name');

var lastName = document.getElementById('last_name');

var email = document.getElementById('email');

var country = document.getElementById("country");

var bio = document.getElementById("bio");

var phone = document.getElementById("phone");

var affilitaions = document.getElementById("affiliations");

var occupation = document.getElementById("occupation");

var catName = document.getElementById("cat_name");

var gadget = document.getElementById("gagdet");

var talent = document.getElementById("talent");<commit_msg>made change to some comments<commit_after>/*
1.) Make variables for all of the elements I will be manipulating
    a. start with the form element and one type within the form
    b. make variable for one of each type of form elements
    c. make them all!

2.) Make functions for every(maybe) form element.
    a. make a function that will console.log for the form
    b. make a function for one
    c. then make function for one of each type of form element
    d. then make them all! muwahahaha


3.) Make eventListeners
    a. make eventListener for form
    b. make eventListeners as needed
*/

// var form = document.getElementByTag('form');
/*
var firstName = document.getElementById('first_name');

var lastName = document.getElementById('last_name');

var email = document.getElementById('email');

var country = document.getElementById("country");

var bio = document.getElementById("bio");

var phone = document.getElementById("phone");

var affilitaion = document.getElementById("affiliations");

var occupation = document.getElementById("occupation");

var catName = document.getElementById("cat_name");

var gadget = document.getElementById("gagdet");

var talent = document.getElementById("talent");

var drink = document.getElementById("drink");

var power = document.getElementById("power");

var weapon = document.getElementById("weapon");

var comments = document.getElementById("comments");
*/
// function logForm () {
//   console.log (this.input);
// }

// var data = {
//   casualName: "firstName.value",
//   sirName: "lastName.value",
//   mail:
// }


/*

var info = [];
info.push(firstName.value);
info.push(lastName.value);

function first () {
  info.push(firstName.value);
}

function last () {
  info.push(lastName.value);
}

function mail () {
  info.push(email.value);
}


function log () {
  // var info = [ ]; //empty array info
  // info.push(this.value); //pushing this.value into info array
  console.log(info); //console.logging array

}
//MISC EVENT LISTENERS THAT NEED THEIR FUNCTIONS UPDATED

// form.addEventListener('submit', logForm, false);

firstName.addEventListener('input', first, false);

lastName.addEventListener('input', last, false);

email.addEventListener('input', mail, false);         //stopped here

country.addEventListener('input', first, false);

bio.addEventListener('input', first, false);

phone.addEventListener('input', first, false);

affiliation.addEventListener('input', first, false);

occupation.addEventListener('input', first, false);

catName.addEventListener('input', first, false);

gadget.addEventListener('input', first, false);

talent.addEventListener('input', first, false);

drink.addEventListener('input', first, false);

power.addEventListener('input', first, false);

weapon.addEventListener('input', first, false);

comments.addEventListener('input', first, false);


*/



// WORKING CODE!!!!!!



// var info = document.getElementsByClassName("cbp-mc-submit-wrap"); //not working (submit button)
var firstName = document.getElementById('first_name');

var lastName = document.getElementById('last_name');

var email = document.getElementById('email');

var country = document.getElementById("country");

var bio = document.getElementById("bio");

var phone = document.getElementById("phone");

var affilitaions = document.getElementById("affiliations");

var occupation = document.getElementById("occupation");

var catName = document.getElementById("cat_name");

var gadget = document.getElementById("gagdet");

var talent = document.getElementById("talent");
{'fraction_non_alphanumeric': 0.13877088643443783, 'fraction_numerical': 0.0008496176720475786, 'mean_word_length': 4.851698425849213, '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': '7221974', 'n_tokens_mistral': 1947, 'n_tokens_neox': 1928, 'n_words': 565}