<commit_before>//get radiobutton value
var value;
var radios = document.forms["donation"].elements["donate"];
var radioForm = document.getElementById("donation");
var billingForm = document.getElementById("paymentInfo");

for(var i = 0; i < 6; i++) {
  radios[i].onclick = function() {
    value = parseInt(this.value);
    console.log(value);
  }
};

var handleRadio = function(event){
  event.preventDefault();
  var other = event.target.otherAmount.value;
  value = parseInt(other);
  console.log(value);
  hideInput();
  var newLabel = document.getElementById("label7");
  newLabel.textContent ="$" + value;
};

//http://jsfiddle.net/T7gE7/4/     ~source sorta
var hideInput = function() {
  var empty = document.getElementById("empty");
  var field = document.getElementById("hidden");
  field.style.display = "none";
  empty.style.display = "none";
};

var showInput = function() {
  document.getElementById("hidden").style.display = "inline";
};
//get info from forms

var Billing = function (creditNum, ccv, firstName, lastName, phone, email, address, city, state, zip) {
  this.creditNum = creditNum;
  this.ccv = ccv;
  this.firstName = firstName;
  this.lastName = lastName;
  this.phone = this.phone;
  this.email = email;
  this.address = address;
  this.city = city;
  this.state = state;
  this.zip = zip;<commit_msg>added array to hold billing objects<commit_after>//get radiobutton value
var value;
var radios = document.forms["donation"].elements["donate"];
var radioForm = document.getElementById("donation");
var billingForm = document.getElementById("paymentInfo");
var information = [];

for(var i = 0; i < 6; i++) {
  radios[i].onclick = function() {
    value = parseInt(this.value);
    console.log(value);
  }
};

var handleRadio = function(event){
  event.preventDefault();
  var other = event.target.otherAmount.value;
  value = parseInt(other);
  console.log(value);
  hideInput();
  var newLabel = document.getElementById("label7");
  newLabel.textContent ="$" + value;
};

//http://jsfiddle.net/T7gE7/4/     ~source sorta
var hideInput = function() {
  var empty = document.getElementById("empty");
  var field = document.getElementById("hidden");
  field.style.display = "none";
  empty.style.display = "none";
};

var showInput = function() {
  document.getElementById("hidden").style.display = "inline";
};
//get info from forms

var Billing = function (creditNum, ccv, firstName, lastName, phone, email, address, city, state, zip) {
  this.creditNum = creditNum;
  this.ccv = ccv;
  this.firstName = firstName;
  this.lastName = lastName;
  this.phone = this.phone;
  this.email = email;
  this.address = address;
  this.city = city;
  this.state = state;
  this.zip = zip;
  information.push(this);
{'fraction_non_alphanumeric': 0.1528895391367959, 'fraction_numerical': 0.0043891733723482075, 'mean_word_length': 4.321011673151751, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2907557', 'n_tokens_mistral': 878, 'n_tokens_neox': 865, 'n_words': 205}