<commit_before>var meetupDay = require('./meetup');


function MeetupDayException(message) {
   this.message = message;
   this.name = 'MeetupDayException';
}

describe('meetupDay()', function() {
  it('test_monteenth_of_may_2013', function() {
    expect(meetupDay(2013, 4, 'Monday', 'teenth')).toEqual(new Date(2013, 4, 13));
  });

  it('test_saturteenth_of_february_2013', function() {
    expect(meetupDay(2013, 1, 'Saturday', 'teenth')).toEqual(new Date(2013, 1, 16));
  });

  it('test_first_tuesday_of_may_2013', function() {
    expect(meetupDay(2013, 4, 'Tuesday', '1st')).toEqual(new Date(2013, 4, 7));
  });

  it('test_second_monday_of_april_2013', function() {
    expect(meetupDay(2013, 3, 'Monday', '2nd')).toEqual(new Date(2013, 3, 8));
  });

  it('test_third_thursday_of_september_2013', function() {
    expect(meetupDay(2013, 8, 'Thursday', '3rd')).toEqual(new Date(2013, 8, 19));
  });

  it('test_fourth_sunday_of_march_2013', function() {
    expect(meetupDay(2013, 2, 'Sunday', '4th')).toEqual(new Date(2013, 2, 24));
  });

  it('test_last_thursday_of_october_2013', function() {
    expect(meetupDay(2013, 9, 'Thursday', 'last')).toEqual(new Date(2013, 9, 31));
  });

  it('test_last_wednesday_of_february_2012', function() {
    expect(meetupDay(2012, 1, 'Wednesday', 'last')).toEqual(new Date(2012, 1, 29));
  });

  it('test_last_wednesday_of_december_2014', function() {
    expect(meetupDay(2014, 11, 'Wednesday', 'last')).toEqual(new Date(2014, 11, 31));
  });

  it('test_last_sunday_of_only_four_week_february_2015', function() {
    expect(meetupDay(2015, 1, 'Sunday', 'last')).toEqual(new Date(2015, 1, 22));
  });

  it('test_first_friday_of_december_2012', function() {
    expect(meetupDay(2012, 11, 'Friday', '1st')).toEqual(new Date(2012, 11, 7));
  });

  it('test_fifth_monday_of_march_2015', function() {
    expect(meetupDay(2015, 2, 'Monday', '5th')).toEqual(new Date(2015, 2, 30));
  });

  it('test_nonexistent_fifth_monday_of_february_2015', function() {
    expect(function () { meetupDay(2015, 1, 'Monday', '5th'); }).toThrow();<commit_msg>Disable all tests but first by default in meetup assignment<commit_after>var meetupDay = require('./meetup');


function MeetupDayException(message) {
   this.message = message;
   this.name = 'MeetupDayException';
}

describe('meetupDay()', function() {
  it('test_monteenth_of_may_2013', function() {
    expect(meetupDay(2013, 4, 'Monday', 'teenth')).toEqual(new Date(2013, 4, 13));
  });

  xit('test_saturteenth_of_february_2013', function() {
    expect(meetupDay(2013, 1, 'Saturday', 'teenth')).toEqual(new Date(2013, 1, 16));
  });

  xit('test_first_tuesday_of_may_2013', function() {
    expect(meetupDay(2013, 4, 'Tuesday', '1st')).toEqual(new Date(2013, 4, 7));
  });

  xit('test_second_monday_of_april_2013', function() {
    expect(meetupDay(2013, 3, 'Monday', '2nd')).toEqual(new Date(2013, 3, 8));
  });

  xit('test_third_thursday_of_september_2013', function() {
    expect(meetupDay(2013, 8, 'Thursday', '3rd')).toEqual(new Date(2013, 8, 19));
  });

  xit('test_fourth_sunday_of_march_2013', function() {
    expect(meetupDay(2013, 2, 'Sunday', '4th')).toEqual(new Date(2013, 2, 24));
  });

  xit('test_last_thursday_of_october_2013', function() {
    expect(meetupDay(2013, 9, 'Thursday', 'last')).toEqual(new Date(2013, 9, 31));
  });

  xit('test_last_wednesday_of_february_2012', function() {
    expect(meetupDay(2012, 1, 'Wednesday', 'last')).toEqual(new Date(2012, 1, 29));
  });

  xit('test_last_wednesday_of_december_2014', function() {
    expect(meetupDay(2014, 11, 'Wednesday', 'last')).toEqual(new Date(2014, 11, 31));
  });

  xit('test_last_sunday_of_only_four_week_february_2015', function() {
    expect(meetupDay(2015, 1, 'Sunday', 'last')).toEqual(new Date(2015, 1, 22));
  });

  xit('test_first_friday_of_december_2012', function() {
    expect(meetupDay(2012, 11, 'Friday', '1st')).toEqual(new Date(2012, 11, 7));
  });

  xit('test_fifth_monday_of_march_2015', function() {
    expect(meetupDay(2015, 2, 'Monday', '5th')).toEqual(new Date(2015, 2, 30));
  });

  xit('test_nonexistent_fifth_monday_of_february_2015', function() {
    expect(function () { meetupDay(2015, 1, 'Monday', '5th'); }).toThrow();
{'fraction_non_alphanumeric': 0.19180018850141375, 'fraction_numerical': 0.09849198868991517, 'mean_word_length': 5.9819078947368425, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5071649', 'n_tokens_mistral': 1983, 'n_tokens_neox': 1578, 'n_words': 262}