<commit_before>package com.satsumasoftware.timetable.framework

import org.threeten.bp.LocalDate

class Term(val id: Int, val timetableId: Int, val name: String, val startDate: LocalDate,
           val endDate: LocalDate)<commit_msg>Make a constructor for Term taking Cursor as its argument<commit_after>package com.satsumasoftware.timetable.framework

import android.database.Cursor
import com.satsumasoftware.timetable.db.TermsSchema
import org.threeten.bp.LocalDate

class Term(val id: Int, val timetableId: Int, val name: String, val startDate: LocalDate,
           val endDate: LocalDate) {

    constructor(cursor: Cursor) : this(
            cursor.getInt(cursor.getColumnIndex(TermsSchema._ID)),
            cursor.getInt(cursor.getColumnIndex(TermsSchema.COL_TIMETABLE_ID)),
            cursor.getString(cursor.getColumnIndex(TermsSchema.COL_NAME)),
            LocalDate.of(
                    cursor.getInt(cursor.getColumnIndex(TermsSchema.COL_START_DATE_YEAR)),
                    cursor.getInt(cursor.getColumnIndex(TermsSchema.COL_START_DATE_MONTH)),
                    cursor.getInt(cursor.getColumnIndex(TermsSchema.COL_START_DATE_DAY_OF_MONTH))),
            LocalDate.of(
                    cursor.getInt(cursor.getColumnIndex(TermsSchema.COL_END_DATE_YEAR)),
                    cursor.getInt(cursor.getColumnIndex(TermsSchema.COL_END_DATE_MONTH)),
                    cursor.getInt(cursor.getColumnIndex(TermsSchema.COL_END_DATE_DAY_OF_MONTH))))

}
{'fraction_non_alphanumeric': 0.0888135593220339, 'fraction_numerical': 0.0, 'mean_word_length': 3.5, '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': '1889885', 'n_tokens_mistral': 445, 'n_tokens_neox': 437, 'n_words': 66}