<commit_before>package no.skotbuvel.portal.membership

import no.skotbuvel.portal.DbUtil
import org.jooq.TransactionalRunnable
import org.jooq.no.skotbuvel.portal.Sequences
import org.jooq.no.skotbuvel.portal.tables.Membership.MEMBERSHIP
import java.sql.Date
import java.time.ZoneId
import java.time.ZonedDateTime

class MembershipRepository {

    fun save(membershipRegistration: MembershipRegistration, createdBy: String) {
        val dslContext = DbUtil.dslContext()

        dslContext.transaction(TransactionalRunnable {
            dslContext.insertInto(MEMBERSHIP,
                    MEMBERSHIP.ID,
                    MEMBERSHIP.ORIGINAL_ID,
                    MEMBERSHIP.ACTIVE,
                    MEMBERSHIP.PERSON_ID,
                    MEMBERSHIP.MEMBERSHIP_TYPE_ID,
                    MEMBERSHIP.PAYMENT_DATE,
                    MEMBERSHIP.CREATED_BY,
                    MEMBERSHIP.CREATED_DATE
            ).values(
                    dslContext.nextval(Sequences.MEMBERSHIP_ID_SEQ).toInt(),
                    dslContext.currval(Sequences.MEMBERSHIP_ID_SEQ).toInt(),
                    true,
                    membershipRegistration.personId,
                    membershipRegistration.membershipTypeId,
                    Date.valueOf(membershipRegistration.paymentDate),
                    createdBy,
                    ZonedDateTime.now(ZoneId.of("Europe/Oslo")).toOffsetDateTime()
            )
                    .execute()
        })

    }
}<commit_msg>Changed import<commit_after>package no.skotbuvel.portal.membership

import no.skotbuvel.portal.DbUtil
import org.jooq.TransactionalRunnable
import org.jooq.no.skotbuvel.portal.Sequences.MEMBERSHIP_ID_SEQ
import org.jooq.no.skotbuvel.portal.tables.Membership.MEMBERSHIP
import java.sql.Date
import java.time.ZoneId
import java.time.ZonedDateTime

class MembershipRepository {

    fun save(membershipRegistration: MembershipRegistration, createdBy: String) {
        val dslContext = DbUtil.dslContext()

        dslContext.transaction(TransactionalRunnable {
            dslContext.insertInto(MEMBERSHIP,
                    MEMBERSHIP.ID,
                    MEMBERSHIP.ORIGINAL_ID,
                    MEMBERSHIP.ACTIVE,
                    MEMBERSHIP.PERSON_ID,
                    MEMBERSHIP.MEMBERSHIP_TYPE_ID,
                    MEMBERSHIP.PAYMENT_DATE,
                    MEMBERSHIP.CREATED_BY,
                    MEMBERSHIP.CREATED_DATE
            ).values(
                    dslContext.nextval(MEMBERSHIP_ID_SEQ).toInt(),
                    dslContext.currval(MEMBERSHIP_ID_SEQ).toInt(),
                    true,
                    membershipRegistration.personId,
                    membershipRegistration.membershipTypeId,
                    Date.valueOf(membershipRegistration.paymentDate),
                    createdBy,
                    ZonedDateTime.now(ZoneId.of("Europe/Oslo")).toOffsetDateTime()
            )
                    .execute()
        })

    }
}
{'fraction_non_alphanumeric': 0.07403685092127303, 'fraction_numerical': 0.0, 'mean_word_length': 1.873917228103946, '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': '140308', 'n_tokens_mistral': 876, 'n_tokens_neox': 837, 'n_words': 93}