<commit_before>
var jamapi = {
  getMusic (location, radius) {
    var JamBaseData = []
    var startDate = new Date()
    var dd = startDate.getDate()
    var mm = startDate.getMonth() + 1 // January is 0!

    var yyyy = startDate.getFullYear()
    if (dd < 10) {
      dd = '0' + dd
    }
    if (mm < 10) {
      mm = '0' + mm
    }
    var startDate = yyyy + '-' + mm + '-' + dd
    var endDate = '2017-06-14'

    var url = `http://api.jambase.com/events?zipCode=${location}&radius=${radius}&startDate=${startDate}T20%3A00%3A00&endDate=${endDate}T20%3A00%3A00&page=0&api_key=<KEY>`

    console.log(url)
    return fetch(url).then(res => res.json())
    .then((jsonRes) => {
      for (var i = 0; i < (jsonRes.Events).length; i++) {
        JamBaseData.push({artistName: jsonRes.Events[i].Artists, date: jsonRes.Events[i].Date, ticketUrl: jsonRes.Events[i].TicketUrl, venueName: jsonRes.Events[i].Venue.Name, address: jsonRes.Events[i].Venue.Address, city: jsonRes.Events[i].Venue.City, state: jsonRes.Events[i].Venue.StateCode, zipcode: jsonRes.Events[i].Venue.ZipCode})
      }
      console.log(JamBaseData)
      return JamBaseData
    })
  }
}
module.exports = jamapi<commit_msg>Working key<commit_after>
var jamapi = {
  getMusic (location, radius) {
    var JamBaseData = []
    var startDate = new Date()
    var dd = startDate.getDate()
    var mm = startDate.getMonth() + 1 // January is 0!

    var yyyy = startDate.getFullYear()
    if (dd < 10) {
      dd = '0' + dd
    }
    if (mm < 10) {
      mm = '0' + mm
    }
    var startDate = yyyy + '-' + mm + '-' + dd
    var endDate = '2017-06-14'

    var url = `http://api.jambase.com/events?zipCode=${location}&radius=${radius}&startDate=${startDate}T20%3A00%3A00&endDate=${endDate}T20%3A00%3A00&page=0&api_key=<KEY>`

    console.log(url)
    return fetch(url).then(res => res.json())
    .then((jsonRes) => {
      for (var i = 0; i < (jsonRes.Events).length; i++) {
        JamBaseData.push({artistName: jsonRes.Events[i].Artists, date: jsonRes.Events[i].Date, ticketUrl: jsonRes.Events[i].TicketUrl, venueName: jsonRes.Events[i].Venue.Name, address: jsonRes.Events[i].Venue.Address, city: jsonRes.Events[i].Venue.City, state: jsonRes.Events[i].Venue.StateCode, zipcode: jsonRes.Events[i].Venue.ZipCode})
      }
      console.log(JamBaseData)
      return JamBaseData
    })
  }
}
module.exports = jamapi
{'fraction_non_alphanumeric': 0.17157275021026072, 'fraction_numerical': 0.028595458368376788, 'mean_word_length': 3.2330960854092528, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '494998', 'n_tokens_mistral': 939, 'n_tokens_neox': 881, 'n_words': 162}