<commit_before>'use strict';

var firstAndPikeUl = document.getElementById('firstandpike');
var capitolHillUl = document.getElementById('capitolhill');
var seattleCenterUl = document.getElementById('seattlecenter');
var alkiUl = document.getElementById('alki');
var seatacAirportUl = document.getElementById('seatacairport');

var storeHours = ['6am','7am','8am','9am','10am','11am','12pm','1pm','2pm','3pm','4pm','5pm','6pm','7pm','8pm'];


function Store(title){
  this.title = title;
  this.cookieBasket = 0;
  this.locationResults = [];
  this.hoursOpen = 15;
  this.minHourlyCust = minHourlyCust;
  this.maxHourlyCust = maxHourlyCust;
  this.avgCookiesPurch = avgCookiesPurch;
}

Store.prototype.randomCustNum = function(){
  return Math.floor(Math.random()* (65 - 23 + 1)) + 23;
};

Store.prototype.cookiesPerHour = function(){
  var locationLi;
  for (var i = 0; i < 15; i++) {
    var totalCookiesPerHour = Math.floor(this.avgCookiesPurch * this.randomCustNum());
    this.locationResults.push(storeHours[i] + ' = ' + totalCookiesPerHour);
    this.cookieBasket = totalCookiesPerHour + this.cookieBasket;
};<commit_msg>instantiated each object<commit_after>'use strict';

var firstAndPikeUl = document.getElementById('firstandpike');
var capitolHillUl = document.getElementById('capitolhill');
var seattleCenterUl = document.getElementById('seattlecenter');
var alkiUl = document.getElementById('alki');
var seatacAirportUl = document.getElementById('seatacairport');

var storeHours = ['6am','7am','8am','9am','10am','11am','12pm','1pm','2pm','3pm','4pm','5pm','6pm','7pm','8pm'];


function Store(title, minHourlyCust, maxHourlyCust, avgCookiesPurch){
  this.title = title;
  this.cookieBasket = 0;
  this.locationResults = [];
  this.hoursOpen = 15;
  this.minHourlyCust = minHourlyCust;
  this.maxHourlyCust = maxHourlyCust;
  this.avgCookiesPurch = avgCookiesPurch;
}

Store.prototype.randomCustNum = function(){
  return Math.floor(Math.random()* (this.maxHourlyCust - this.minHourlyCust + 1)) + this.minHourlyCust;
};

Store.prototype.cookiesPerHour = function(){
  var locationLi;
  for (var i = 0; i < 15; i++) {
    var totalCookiesPerHour = Math.floor(this.avgCookiesPurch * this.randomCustNum());
    this.locationResults.push(storeHours[i] + ' = ' + totalCookiesPerHour);
    this.cookieBasket = totalCookiesPerHour + this.cookieBasket;
  }
};

var firstAndPike = new Store('1st and Pike', 23, 65, 6.3);
var seattleCenter = new Store('Seattle Center', 11, 38, 3.7);
var capitolHill = new Store('Capitol Hill', 20, 38, 2.3);
var alki = new Store('Alki', 2, 16, 4.6);
var seatacAirport = new Store('Seatac Airport');
{'fraction_non_alphanumeric': 0.15825426944971538, 'fraction_numerical': 0.030360531309297913, 'mean_word_length': 5.955145118733509, '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': '1236507', 'n_tokens_mistral': 1009, 'n_tokens_neox': 929, 'n_words': 168}