<commit_before>//my JS will go here//
var allHours = ['6:00am', '7:00am', '8:00am', '9:00am', '10:00am', '11:00am', '12:00pm', '1:00pm', '2:00pm', '3:00pm', '4:00pm', '5:00pm', '6:00pm', '7:00pm', '8:00pm']



//building my pikeplace obect//
var pike = {
  storeName: 'Pike Place Market',
  hours: allHours,
  customerHours: [],
  cupsEachHour: [],
  beansEachHour: [],
  minHr: 14,
  maxHr: 55,
  cupCust: 1.2,
  lbCust: 3.7,
  dailyCups: 0,
  dailyBeans: 0,

  custHour: function() {
    for (var i = 0; i < this.hours.length; i ++) {
      this.customerHours[i] = Math.floor(Math.random() * (this.maxHr - this.minHr +1)) + this.minHr;
    }
  },
  cupsPerHr: function() {
    for (var i = 0; i < this.hours.length; i ++) {
    this.cupsEachHour[i] = this.customerHours[i] * this.cupCust;
    this.dailyCups += this.cupsEachHour[i];
    this.dailyBeans += this.cupsEachHour[i]/20;
  }
  },
  beanHr: function() {
    for (var i = 0; i < this.hours.length; i ++) {
    this.beansEachHour[i] = this.customerHours[i] * this.lbCust;
    this.dailyBeans += this.beansEachHour[i];
  }
},
  populate: function() {
    this.custHour();
    this.cupsPerHr();
    this.beanHr();

//Creates Title Box for the list
    var h2El = document.createElement('h2');
    h2El.textContent = this.storeName;
    document.body.appendChild(h2El);

//Populate list to website
    for (var i = 0; i < this.hours.length; i ++) {
      var paragraphEl = document.createElement('p');
      paragraphEl.textContent = this.hours[i] + ':' + this.beansEachHour[i].toFixed(1) + ' lbs [' + this.customerHours[i].toFixed(1) + ' customers, ' + this.cupsEachHour[i].toFixed(1) + ' cups (' + (this.cupsEachHour[i]/20).toFixed(1) + ' lbs), ' + this.beansEachHour[i].toFixed(1) + ' lbs to-go]'
      document.body.appendChild(paragraphEl);
    }
  },

      // //populate to website
      // var paragraphEl = document.createElement('p');
      // paragraphEl.textContent = this.hours[j] + ': ' + this.totLbs.toFixed(1) + ' lbs [' + this.customerNumHr.toFixed(1) + ' customers, ' + this.cupHr.toFixed(1) + ' cups (' + this.lbsCupsHr.toFixed(1) + ' lbs), ' + this.beanHr.toFixed(1) + ' lbs to go]';
      // document.body.appendChild(paragraphEl);

      }

pike.populate();

pike.custHour();
console.log(pike.customerHours);
pike.cupsPerHr();
console.log(pike.cupsEachHour);<commit_msg>built Store constructor<commit_after>//my JS will go here//
var allHours = ['6:00am', '7:00am', '8:00am', '9:00am', '10:00am', '11:00am', '12:00pm', '1:00pm', '2:00pm', '3:00pm', '4:00pm', '5:00pm', '6:00pm', '7:00pm', '8:00pm']

//Building my constructor
var Store = function(storeName, minHr, maxHr, cupCust, lbCust){
  this.storeName = storeName;
  this.hours = allHours;
  this.customerHours = [];
  this.cupsEachHour = [];
  this.beansEachHour = [];
  this.minHr = minHr;
  this.maxHr = maxHr;
  this.cupCust = cupCust;
  this.lbCust = lbCust;
  this.dailyCups = 0;
  this.dailyBeans = 0;

  custHour = function() {
    for (var i = 0; i < this.hours.length; i ++) {
      this.customerHours[i] = Math.floor(Math.random() * (this.maxHr - this.minHr +1)) + this.minHr;
    }
  };
  cupsPerHr = function() {
    for (var i = 0; i < this.hours.length; i ++) {
    this.cupsEachHour[i] = this.customerHours[i] * this.cupCust;
    this.dailyCups += this.cupsEachHour[i];
    this.dailyBeans += this.cupsEachHour[i]/20;
  }
};
  beanHr = function() {
    for (var i = 0; i < this.hours.length; i ++) {
    this.beansEachHour[i] = this.customerHours[i] * this.lbCust;
    this.dailyBeans += this.beansEachHour[i];
  }
};
  populate = function() {
    this.custHour();
    this.cupsPerHr();
    this.beanHr();

//Creates Title Box for the list
    var h2El = document.createElement('h2');
    h2El.textContent = this.storeName;
    document.body.appendChild(h2El);

//Populate list to website
    for (var i = 0; i < this.hours.length; i ++) {
      var paragraphEl = document.createElement('p');
      paragraphEl.textContent = this.hours[i] + ':' + this.beansEachHour[i].toFixed(1) + ' lbs [' + this.customerHours[i].toFixed(1) + ' customers, ' + this.cupsEachHour[i].toFixed(1) + ' cups (' + (this.cupsEachHour[i]/20).toFixed(1) + ' lbs), ' + this.beansEachHour[i].toFixed(1) + ' lbs to-go]'
      document.body.appendChild(paragraphEl);
    }
  };
};

//building my pikeplace obect//
var pike = {
  storeName: 'Pike Place Market',
  hours: allHours,
  customerHours: [],
  cupsEachHour: [],
  beansEachHour: [],
  minHr: 14,
  maxHr: 55,
  cupCust: 1.2,
  lbCust: 3.7,
  dailyCups: 0,
  dailyBeans: 0,

  custHour: function() {
    for (var i = 0; i < this.hours.length; i ++) {
      this.customerHours[i] = Math.floor(Math.random() * (this.maxHr - this.minHr +1)) + this.minHr;
    }
  },
  cupsPerHr: function() {
    for (var i = 0; i < this.hours.length; i ++) {
    this.cupsEachHour[i] = this.customerHours[i] * this.cupCust;
    this.dailyCups += this.cupsEachHour[i];
    this.dailyBeans += this.cupsEachHour[i]/20;
  }
  },
  beanHr: function() {
    for (var i = 0; i < this.hours.length; i ++) {
    this.beansEachHour[i] = this.customerHours[i] * this.lbCust;
    this.dailyBeans += this.beansEachHour[i];
  }
},
  populate: function() {
    this.custHour();
    this.cupsPerHr();
    this.beanHr();

//Creates Title Box for the list
    var h2El = document.createElement('h2');
    h2El.textContent = this.storeName;
    document.body.appendChild(h2El);

//Populate list to website
    for (var i = 0; i < this.hours.length; i ++) {
      var paragraphEl = document.createElement('p');
      paragraphEl.textContent = this.hours[i] + ':' + this.beansEachHour[i].toFixed(1) + ' lbs [' + this.customerHours[i].toFixed(1) + ' customers, ' + this.cupsEachHour[i].toFixed(1) + ' cups (' + (this.cupsEachHour[i]/20).toFixed(1) + ' lbs), ' + this.beansEachHour[i].toFixed(1) + ' lbs to-go]'
      document.body.appendChild(paragraphEl);
    }
  },
};

pike.populate();

pike.custHour();
console.log(pike.customerHours);
pike.cupsPerHr();
console.log(pike.cupsEachHour);
{'fraction_non_alphanumeric': 0.18771784232365146, 'fraction_numerical': 0.02937759336099585, 'mean_word_length': 3.3985401459854017, 'pattern_counts': {'":': 0, '<': 15, '<?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': '2033766', 'n_tokens_mistral': 2546, 'n_tokens_neox': 2419, 'n_words': 429}