<commit_before>import reject from 'lodash/reject'
import groupBy from 'lodash/groupBy'
import flatten from 'lodash/flatten'
import map from 'lodash/map'
import filter from 'lodash/filter'
import sortBy from 'lodash/sortBy'
import maxBy from 'lodash/maxBy'

function convertRevisionToYear(rev) {
	// The +1 is because the year is the beginning of the academic year, but
	// the graduation is the end.
	return Number(rev.split('-')[0]) + 1
}

// Matricated in: 2014
// Graduates in:  2018

// Physics (2011-12)<commit_msg>add some logging<commit_after>import reject from 'lodash/reject'
import groupBy from 'lodash/groupBy'
import flatten from 'lodash/flatten'
import map from 'lodash/map'
import filter from 'lodash/filter'
import sortBy from 'lodash/sortBy'

function convertRevisionToYear(rev) {
	// The +1 is because the year is the beginning of the academic year, but
	// the graduation is the end.
	if (!rev) {
		console.error(rev)
	}
	return Number((rev || '').split('-')[0]) + 1
}

// Matricated in: 2014
// Graduates in:  2018

// Physics (2011-12)
{'fraction_non_alphanumeric': 0.11848341232227488, 'fraction_numerical': 0.03222748815165877, 'mean_word_length': 4.28, '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': '5193668', 'n_tokens_mistral': 393, 'n_tokens_neox': 345, 'n_words': 121}