<commit_before>'use strict';

//global variables
var hours = ['6am: ', '7am: ', '8am: ', '9am: ', '10am: ', '11am: ', '12pm: ', '1pm: ', '2pm: ', '3pm: ', '4pm: ', '5pm: ', '6pm: ', '7pm: ', '8pm: '];

//store information stored as an object
var firstAndPike = {
  minHourlyCust: 23,
  maxHourlyCust: 65,
  avgCookies: 6.3,
  location: [],
  customers: function() {   //average number of customers per hour
    var people = Math.floor(Math.random() * (this.maxHourlyCust - this.minHourlyCust) + this.minHourlyCust);
    console.log(people);
    return people;
  },
  cookiesPerHour: function() {    //amount of cookies sold per hour
    for(var i = 0; i < hours.length; i ++){
      var amount = Math.floor(this.customers() * this.avgCookies);
      console.log(amount);
      this.location.push(amount);
    }
    return this.location;
  },

  print: function() {   //print to sales.html
    var businessList = document.getElementById('pike');
    this.cookiesPerHour();
    console.log(this.location);
    for(var i = 0; i < this.location.length; i ++) {
      var listEl = document.createElement('li');
      listEl.textContent = hours[i] + this.location[i];
      businessList.appendChild(listEl);
    }
  }
};
firstAndPike.print();

//store information stored as an object
var seatac = {
  minHourlyCust: 23,
  maxHourlyCust: 65,
  avgCookies: 6.3,
  location: [],
  customers: function() {   //average number of customers per hour
    var people = Math.floor(Math.random() * (this.maxHourlyCust - this.minHourlyCust) + this.minHourlyCust);
    console.log(people);
    return people;
  },
  cookiesPerHour: function() {    //amount of cookies sold per hour
    for(var i = 0; i < hours.length; i ++){
      var amount = Math.floor(this.customers() * this.avgCookies);
      console.log(amount);
      this.location.push(amount);
    }
    return this.location;
  },

  print: function() {   //print to sales.html
    var businessList = document.getElementById('seatac');
    this.cookiesPerHour();
    console.log(this.location);
    for(var i = 0; i < this.location.length; i ++) {
      var listEl = document.createElement('li');
      listEl.textContent = hours[i] + this.location[i];
      businessList.appendChild(listEl);
    }
  }
};
seatac.print();

//store information stored as an object
var seattleCenter = {
  minHourlyCust: 23,
  maxHourlyCust: 65,
  avgCookies: 6.3,
  location: [],
  customers: function() {   //average number of customers per hour
    var people = Math.floor(Math.random() * (this.maxHourlyCust - this.minHourlyCust) + this.minHourlyCust);
    console.log(people);
    return people;
  },
  cookiesPerHour: function() {    //amount of cookies sold per hour
    for(var i = 0; i < hours.length; i ++){
      var amount = Math.floor(this.customers() * this.avgCookies);
      console.log(amount);
      this.location.push(amount);
    }
    return this.location;
  },

  print: function() {   //print to sales.html
    var businessList = document.getElementById('seattleCenter');
    this.cookiesPerHour();
    console.log(this.location);
    for(var i = 0; i < this.location.length; i ++) {
      var listEl = document.createElement('li');
      listEl.textContent = hours[i] + this.location[i];
      businessList.appendChild(listEl);
    }
  }
};
seattleCenter.print();<commit_msg>added final two stores to the sales.html file<commit_after>'use strict';

//global variables
var hours = ['6am: ', '7am: ', '8am: ', '9am: ', '10am: ', '11am: ', '12pm: ', '1pm: ', '2pm: ', '3pm: ', '4pm: ', '5pm: ', '6pm: ', '7pm: ', '8pm: '];

//store information stored as an object
var firstAndPike = {
  minHourlyCust: 23,
  maxHourlyCust: 65,
  avgCookies: 6.3,
  location: [],
  customers: function() {   //average number of customers per hour
    var people = Math.floor(Math.random() * (this.maxHourlyCust - this.minHourlyCust) + this.minHourlyCust);
    console.log(people);
    return people;
  },
  cookiesPerHour: function() {    //amount of cookies sold per hour
    for(var i = 0; i < hours.length; i ++){
      var amount = Math.floor(this.customers() * this.avgCookies);
      console.log(amount);
      this.location.push(amount);
    }
    return this.location;
  },

  print: function() {   //print to sales.html
    var businessList = document.getElementById('pike');
    this.cookiesPerHour();
    console.log(this.location);
    for(var i = 0; i < this.location.length; i ++) {
      var listEl = document.createElement('li');
      listEl.textContent = hours[i] + this.location[i];
      businessList.appendChild(listEl);
    }
  }
};
firstAndPike.print();

//store information stored as an object
var seatac = {
  minHourlyCust: 23,
  maxHourlyCust: 65,
  avgCookies: 6.3,
  location: [],
  customers: function() {   //average number of customers per hour
    var people = Math.floor(Math.random() * (this.maxHourlyCust - this.minHourlyCust) + this.minHourlyCust);
    console.log(people);
    return people;
  },
  cookiesPerHour: function() {    //amount of cookies sold per hour
    for(var i = 0; i < hours.length; i ++){
      var amount = Math.floor(this.customers() * this.avgCookies);
      console.log(amount);
      this.location.push(amount);
    }
    return this.location;
  },

  print: function() {   //print to sales.html
    var businessList = document.getElementById('seatac');
    this.cookiesPerHour();
    console.log(this.location);
    for(var i = 0; i < this.location.length; i ++) {
      var listEl = document.createElement('li');
      listEl.textContent = hours[i] + this.location[i];
      businessList.appendChild(listEl);
    }
  }
};
seatac.print();

//store information stored as an object
var seattleCenter = {
  minHourlyCust: 23,
  maxHourlyCust: 65,
  avgCookies: 6.3,
  location: [],
  customers: function() {   //average number of customers per hour
    var people = Math.floor(Math.random() * (this.maxHourlyCust - this.minHourlyCust) + this.minHourlyCust);
    console.log(people);
    return people;
  },
  cookiesPerHour: function() {    //amount of cookies sold per hour
    for(var i = 0; i < hours.length; i ++){
      var amount = Math.floor(this.customers() * this.avgCookies);
      console.log(amount);
      this.location.push(amount);
    }
    return this.location;
  },

  print: function() {   //print to sales.html
    var businessList = document.getElementById('seattleCenter');
    this.cookiesPerHour();
    console.log(this.location);
    for(var i = 0; i < this.location.length; i ++) {
      var listEl = document.createElement('li');
      listEl.textContent = hours[i] + this.location[i];
      businessList.appendChild(listEl);
    }
  }
};
seattleCenter.print();

//store information stored as an object
var capitalHill = {
  minHourlyCust: 23,
  maxHourlyCust: 65,
  avgCookies: 6.3,
  location: [],
  customers: function() {   //average number of customers per hour
    var people = Math.floor(Math.random() * (this.maxHourlyCust - this.minHourlyCust) + this.minHourlyCust);
    console.log(people);
    return people;
  },
  cookiesPerHour: function() {    //amount of cookies sold per hour
    for(var i = 0; i < hours.length; i ++){
      var amount = Math.floor(this.customers() * this.avgCookies);
      console.log(amount);
      this.location.push(amount);
    }
    return this.location;
  },

  print: function() {   //print to sales.html
    var businessList = document.getElementById('capitalHill');
    this.cookiesPerHour();
    console.log(this.location);
    for(var i = 0; i < this.location.length; i ++) {
      var listEl = document.createElement('li');
      listEl.textContent = hours[i] + this.location[i];
      businessList.appendChild(listEl);
    }
  }
};
capitalHill.print();

//store information stored as an object
var alki = {
  minHourlyCust: 23,
  maxHourlyCust: 65,
  avgCookies: 6.3,
  location: [],
  customers: function() {   //average number of customers per hour
    var people = Math.floor(Math.random() * (this.maxHourlyCust - this.minHourlyCust) + this.minHourlyCust);
    console.log(people);
    return people;
  },
  cookiesPerHour: function() {    //amount of cookies sold per hour
    for(var i = 0; i < hours.length; i ++){
      var amount = Math.floor(this.customers() * this.avgCookies);
      console.log(amount);
      this.location.push(amount);
    }
    return this.location;
  },

  print: function() {   //print to sales.html
    var businessList = document.getElementById('alki');
    this.cookiesPerHour();
    console.log(this.location);
    for(var i = 0; i < this.location.length; i ++) {
      var listEl = document.createElement('li');
      listEl.textContent = hours[i] + this.location[i];
      businessList.appendChild(listEl);
    }
  }
};
alki.print();
{'fraction_non_alphanumeric': 0.1500858614768174, 'fraction_numerical': 0.011448196908986834, 'mean_word_length': 3.1540656205420827, 'pattern_counts': {'":': 0, '<': 19, '<?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': '1380654', 'n_tokens_mistral': 3023, 'n_tokens_neox': 2925, 'n_words': 672}