<commit_before>package com.luminis.university.eventmanager

class Event {

    Date eventStart
    Date eventEnd
    Date dateCreated
    String name

    static hasMany = [
            entries : Entry
    ]
    static constraints = {
        name blank: false, minSize: 5
        eventStart nullable: true
        eventEnd nullable: true, validator: { val, obj ->
            if (val < obj.eventStart) {
                return "com.luminis.university.eventmanager.Event.endDate.before.startDate.error"
            }
        }
    }

    static mapping = {
        sort eventStart: "asc"
    }

    def beforeInsert() {
        dateCreated = new Date()
    }

    String toString(){
        name<commit_msg>Alphabetical order of variables applied for Event<commit_after>package com.luminis.university.eventmanager

class Event {

    Date dateCreated
    Date eventStart
    Date eventEnd
    String name

    static hasMany = [
            entries : Entry
    ]
    static constraints = {
        name blank: false, minSize: 5
        eventStart nullable: true
        eventEnd nullable: true, validator: { val, obj ->
            if (val < obj.eventStart) {
                return "com.luminis.university.eventmanager.Event.endDate.before.startDate.error"
            }
        }
    }

    static mapping = {
        sort eventStart: "asc"
    }

    def beforeInsert() {
        dateCreated = new Date()
    }

    String toString(){
        name
{'fraction_non_alphanumeric': 0.08, 'fraction_numerical': 0.001379310344827586, 'mean_word_length': 1.8846918489065607, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2892511', 'n_tokens_mistral': 411, 'n_tokens_neox': 398, 'n_words': 105}