<commit_before>import {expect} from 'chai'
import findAllAvailableYears from '../../src/helpers/find-all-available-years'

describe('findAllAvailableYears', () => {
	it('takes a list of schedules and finds the first open year', () => {
		const schedules = [
			{'id': 3, 'year': 2012},
			{'id': 6, 'year': 2013},
			{'id': 1, 'year': 2015},
		]

		expect(findAllAvailableYears(schedules)).to.deep.equal([2014])
	})

	it('accomodates a matriculation date before the schedules', () => {
		const schedules = [
			{'id': 3, 'year': 2014},
			{'id': 6, 'year': 2013},
			{'id': 1, 'year': 2015},
		]
		const matriculation = 2012

		expect(findAllAvailableYears(schedules, matriculation)).to.deep.equal([2012])
	})

	it('does not add the matriculation year if it is already in the list of schedules', () => {
		const schedules = [
			{'id': 3, 'year': 2014},
			{'id': 6, 'year': 2013},
			{'id': 1, 'year': 2015},
		]
		const matriculation = 2013

		expect(findAllAvailableYears(schedules, matriculation)).to.deep.equal([])
	})
})
<commit_msg>Disable test for findAllAvailableYears<commit_after>import {expect} from 'chai'
import findAllAvailableYears from '../../src/helpers/find-all-available-years'

xdescribe('findAllAvailableYears', () => {
	it('takes a list of schedules and finds the first open year', () => {
		const schedules = [
			{'id': 3, 'year': 2012},
			{'id': 6, 'year': 2013},
			{'id': 1, 'year': 2015},
		]

		expect(findAllAvailableYears(schedules)).to.deep.equal([2014])
	})

	it('accomodates a matriculation date before the schedules', () => {
		const schedules = [
			{'id': 3, 'year': 2014},
			{'id': 6, 'year': 2013},
			{'id': 1, 'year': 2015},
		]
		const matriculation = 2012

		expect(findAllAvailableYears(schedules, matriculation)).to.deep.equal([2012])
	})

	it('does not add the matriculation year if it is already in the list of schedules', () => {
		const schedules = [
			{'id': 3, 'year': 2014},
			{'id': 6, 'year': 2013},
			{'id': 1, 'year': 2015},
		]
		const matriculation = 2013

		expect(findAllAvailableYears(schedules, matriculation)).to.deep.equal([])
	})
})

{'fraction_non_alphanumeric': 0.19011406844106463, 'fraction_numerical': 0.05798479087452472, 'mean_word_length': 4.134146341463414, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3387199', 'n_tokens_mistral': 909, 'n_tokens_neox': 710, 'n_words': 193}