<commit_before>import React, {PropTypes} from 'react'
import cx from 'classnames'
import expandYear from '../../../helpers/expand-year'

import findFirstAvailableYear from '../../../helpers/find-first-available-year'
import map from 'lodash/map'
import sortBy from 'lodash/sortBy'
import groupBy from 'lodash/groupBy'

import Button from '../../../components/button'
import Year from './year'

import './course-table.scss'

export default function CourseTable(props) {
	const { student } = props
	const { schedules, matriculation, graduation } = student

	const nextAvailableYear = findFirstAvailableYear(schedules, matriculation)
	const canAddYear = (graduation > nextAvailableYear)

	const nextYearButton = canAddYear && (
		<Button
			className='add-year'
			key='add-year'
			type='flat'
			title='Add Year'
			onClick={props.addYear}
		><commit_msg>log student<commit_after>import React, {PropTypes} from 'react'
import cx from 'classnames'
import expandYear from '../../../helpers/expand-year'

import findFirstAvailableYear from '../../../helpers/find-first-available-year'
import map from 'lodash/map'
import sortBy from 'lodash/sortBy'
import groupBy from 'lodash/groupBy'

import Button from '../../../components/button'
import Year from './year'

import './course-table.scss'

export default function CourseTable(props) {
	const { student } = props
	const { schedules, matriculation, graduation } = student
	console.log(student)

	const nextAvailableYear = findFirstAvailableYear(schedules, matriculation)
	const canAddYear = (graduation > nextAvailableYear)

	const nextYearButton = canAddYear && (
		<Button
			className='add-year'
			key='add-year'
			type='flat'
			title='Add Year'
			onClick={props.addYear}
		>
{'fraction_non_alphanumeric': 0.13136574074074073, 'fraction_numerical': 0.0, 'mean_word_length': 4.386292834890965, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2892688', 'n_tokens_mistral': 543, 'n_tokens_neox': 514, 'n_words': 140}