<commit_before>package de.unibremen.opensores.model;

import java.util.ArrayList;
import java.util.List;
import javax.persistence.*;

/**
 * Entity bean for the Course class.
 *
 * @author <NAME>, <NAME>, <NAME>
 */
@Entity
@Table(name = "COURSES")
public class Course {

    @Id
    @GeneratedValue
    private Long courseId;

    @Column(nullable = false)
    private String name;

    @Column(nullable = false)
    private String number;

    @Column(nullable = false)
    private Boolean requiresConformation;

    @Column(columnDefinition = "LONG VARCHAR")
    private String emailTemplate;

    @Column
    private Integer minGroupSize;

    @Column
    private Integer maxGroupSize;

    @OneToMany(mappedBy = "course", cascade = CascadeType.MERGE)
    private List<Student> students = new ArrayList<>();

    @OneToMany(mappedBy = "groupId")
    private List<Group> groups = new ArrayList<>();

    @OneToMany(mappedBy = "course", cascade = CascadeType.MERGE)
    private List<Lecturer> lecturers;

    /*
    @Column(name = "tutors")
    private List<PrivilegedUser> tutors;

    @Column(name = "semester")
    private Semester semester;
    */

    public String getName() {
        return name;
    }

    public String getNumber() {
        return number;
    }

    public boolean requiresConformation() {
        return requiresConformation;
    }

    public String getEmailTemplate() {<commit_msg>fixed lecturers relation in course<commit_after>package de.unibremen.opensores.model;

import java.util.ArrayList;
import java.util.List;
import javax.persistence.*;

/**
 * Entity bean for the Course class.
 *
 * @author <NAME>, <NAME>, <NAME>
 */
@Entity
@Table(name = "COURSES")
public class Course {

    @Id
    @GeneratedValue
    private Long courseId;

    @Column(nullable = false)
    private String name;

    @Column(nullable = false)
    private String number;

    @Column(nullable = false)
    private Boolean requiresConformation;

    @Column(columnDefinition = "LONG VARCHAR")
    private String emailTemplate;

    @Column
    private Integer minGroupSize;

    @Column
    private Integer maxGroupSize;

    @OneToMany(mappedBy = "course", cascade = CascadeType.MERGE)
    private List<Student> students = new ArrayList<>();

    @OneToMany(mappedBy = "groupId")
    private List<Group> groups = new ArrayList<>();

    @OneToMany(mappedBy = "course", cascade = CascadeType.MERGE)
    private List<Lecturer> lecturers = new ArrayList<>();

    /*
    @Column(name = "tutors")
    private List<PrivilegedUser> tutors;

    @Column(name = "semester")
    private Semester semester;
    */

    public String getName() {
        return name;
    }

    public String getNumber() {
        return number;
    }

    public boolean requiresConformation() {
        return requiresConformation;
    }

    public String getEmailTemplate() {
{'fraction_non_alphanumeric': 0.10847575863271712, 'fraction_numerical': 0.0, 'mean_word_length': 3.230088495575221, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 22, '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': '7316885', 'n_tokens_mistral': 869, 'n_tokens_neox': 822, 'n_words': 224}