<commit_before> /* *** GOAL: TURN USER'S INPUT INTO OUTPUT ***
 * set variable for entrie form
 * set variable for each element that will return data inside of form
 * wrtie function for each element? that will log the form?
 * add event listener?
 **/

// var form = document.getElementsByClassName('.cbp-mc-form');
// console.log(form);

var inputIds = document.querySelectorAll('input, select, textarea'); // creates array of all id's in input, select & textarea tags
var sendData = document.querySelector(".cbp-mc-submit"); // targets `send your data` button

sendData.addEventListener('click', function(event){ // adds event listener of `click` to button
    for (var i = 0; i < inputIds.length; i++){ // loops through ID array
      output = inputIds[i].value; //return output of each ID | `.value` returns text input
      console.log(output);
    }
    event.preventDefault(); // prevents page from refressing after clicking submit button
});


// for (var i = 0; i < inputIds.length; i++){
//   inputsId[i].addEventListener('input', function(){
//     for (i > 0; inputIds.length; i++){
//       output = inputsId[i].element.value;
//       console.log(output);
//     }
//   });
// }


//
// function data (){
//   for (var i = 0; i < inputIds.length; i++){
//     inputIds[i].addEventListener('input', function(){
//       sendData.addEventListener('click', data);
//       console.log(inputIds[i].value);
//     });
//   }
// }


// output = inputIds[i].value;



//POSSIBLE FOR LOOP STRUCTURE-
// for (var i = 0; i < inputIds.length; i++){
//   inputsId[i].addEventListener('input', function(){
//     for (i > 0; inputIds.length; i++){
//       output = inputsId[i].element.value;
//       console.log(output);
//     }
//   });
// }


//MAYBE USE THIS STUFF?
// console.log(data.value);
// fName.addEventListener('input', data);
//
// function data (){ //fuction to loop through array `inputIds` and return output
//
// }<commit_msg>minor edits to pseudo<commit_after> /* *** GOAL: TURN USER'S INPUT INTO OUTPUT ***
 * set variable for entrie form
 * set variable for each element that will return data inside of form
 * wrtie function for each element? that will log the form?
 * add event listener?
 **/

var inputIds = document.querySelectorAll('input, select, textarea'); // creates array of all id's in input, select & textarea tags
var sendData = document.querySelector(".cbp-mc-submit"); // targets `send your data` button

sendData.addEventListener('click', function(event){ // adds event listener of `click` to submit button
    for (var i = 0; i < inputIds.length; i++){ // loops through ID array/nodelist
      output = inputIds[i].value; //return output of each item in nodelist ... `.value` returns text input
      console.log(output);
    }
    event.preventDefault(); // prevents page from refressing after clicking submit button
});


// for (var i = 0; i < inputIds.length; i++){
//   inputsId[i].addEventListener('input', function(){
//     for (i > 0; inputIds.length; i++){
//       output = inputsId[i].element.value;
//       console.log(output);
//     }
//   });
// }


//
// function data (){
//   for (var i = 0; i < inputIds.length; i++){
//     inputIds[i].addEventListener('input', function(){
//       sendData.addEventListener('click', data);
//       console.log(inputIds[i].value);
//     });
//   }
// }


// output = inputIds[i].value;



//POSSIBLE FOR LOOP STRUCTURE-
// for (var i = 0; i < inputIds.length; i++){
//   inputsId[i].addEventListener('input', function(){
//     for (i > 0; inputIds.length; i++){
//       output = inputsId[i].element.value;
//       console.log(output);
//     }
//   });
// }


//MAYBE USE THIS STUFF?
// console.log(data.value);
// fName.addEventListener('input', data);
//
// function data (){ //fuction to loop through array `inputIds` and return output
//
// }


// var form = document.getElementsByClassName('.cbp-mc-form');
// console.log(form);
{'fraction_non_alphanumeric': 0.1750063500127, 'fraction_numerical': 0.003048006096012192, 'mean_word_length': 2.914512922465209, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, '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': '1437160', 'n_tokens_mistral': 1222, 'n_tokens_neox': 1189, 'n_words': 360}