<commit_before>var cheerio = require('cheerio')
  , request = require('request')
  , url = 'http://www.musicfarm.com/all-shows/'
  , shows = []

function musicfarm (done) {
  request(url, function(err, response, body) {
    var $ = cheerio.load(body)
    $('.list-view-item').each(function(i, elem) {
      var $$ = cheerio.load(elem)
      var date = $$('.dates').text().trim()
      date = normalizeDate(date)
      var show = {
        venue: 'Music Farm',
        venueUrl: 'http://www.musicfarm.com/venues/music-farm-charleston/upcoming-shows/',
        title: $$('.headliners').text().trim(),
        url: 'http://www.musicfarm.com'+$$('.headliners').children().attr('href'),
        date: date,
        age: $$('.age-restriction').text().trim()
      }
      shows.push(show)
    })
    console.log(shows)
    done(null, shows)
  })
}

musicfarm(function(){})

function normalizeDate(date) {
  date = date.split(',').join('')
  date = date.split(' ')
  date = date.slice(1)
  switch(date[0]) {
    case 'January': date[0] = '01' 
      break;
    case 'February': date[0] = '02' 
      break;
    case 'March': date[0] = '03' <commit_msg>added price to music farm<commit_after>var cheerio = require('cheerio')
  , request = require('request')
  , url = 'http://www.musicfarm.com/all-shows/'
  , shows = []

function musicfarm (done) {
  request(url, function(err, response, body) {
    var $ = cheerio.load(body)
    $('.list-view-item').each(function(i, elem) {
      var $$ = cheerio.load(elem)
      var date = $$('.dates').text().trim()
      date = normalizeDate(date)
      var show = {
        venue: 'Music Farm',
        venueUrl: 'http://www.musicfarm.com/venues/music-farm-charleston/upcoming-shows/',
        title: $$('.headliners').text().trim(),
        url: 'http://www.musicfarm.com'+$$('.headliners').children().attr('href'),
        date: date,
        price: $$('.price-range').text().trim(),
        age: $$('.age-restriction').text().trim()
      }
      shows.push(show)
    })
    done(null, shows)
  })
}

function normalizeDate(date) {
  date = date.split(',').join('')
  date = date.split(' ')
  date = date.slice(1)
  switch(date[0]) {
    case 'January': date[0] = '01' 
      break;
    case 'February': date[0] = '02' 
      break;
    case 'March': date[0] = '03' 
{'fraction_non_alphanumeric': 0.20972644376899696, 'fraction_numerical': 0.009552757273122015, 'mean_word_length': 2.7832512315270934, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '3180145', 'n_tokens_mistral': 835, 'n_tokens_neox': 803, 'n_words': 142}