<commit_before>package studentcapture.feedback;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * This model takes care of the feedback of an assignment. It is used to gather
 * all information possible.
 *
 * @author Group6
 * @version 0.1
 * @see studentcapture.datalayer.database.Submission
 */
public class FeedbackModel {
    @NotNull @Min(1)
    private int studentID;
    @NotNull @Min(1)
    private int assignmentID;
    @Min(1) @Max(10)
    private String courseID;

    @Min(1) @Max(6)
    private String courseCode;

    private String grade, feedbackText;

    public void setTeacherID(String teacherID) {
        this.teacherID = teacherID;
    }

    private String teacherID;


    /**<commit_msg>Update the validation to work correctly on strings<commit_after>package studentcapture.feedback;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * This model takes care of the feedback of an assignment. It is used to gather
 * all information possible.
 *
 * @author Group6
 * @version 0.1
 * @see studentcapture.datalayer.database.Submission
 */
public class FeedbackModel {
    @NotNull @Min(1)
    private int studentID;

    @NotNull @Min(1)
    private int assignmentID;

    @Size(min=1, max=10)
    private String courseID;

    @Size(min=1, max=6)
    private String courseCode;

    private String grade, feedbackText;

    public void setTeacherID(String teacherID) {
        this.teacherID = teacherID;
    }

    private String teacherID;


    /**
{'fraction_non_alphanumeric': 0.0912863070539419, 'fraction_numerical': 0.011855364552459988, 'mean_word_length': 3.6246575342465754, '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': '1084124', 'n_tokens_mistral': 507, 'n_tokens_neox': 482, 'n_words': 145}