<commit_before>package com.alexrnl.jbetaseries.request.parameters;

/**
 * Parameter which allow to set the note of a show or an episode.<br />
 * @author Alex
 */
public class Note extends Parameter<Integer> {
	/** Name of the note parameter */
	public static final String	PARAMETER_NOTE	= "note";
	
	/**
	 * Constructor #1.<br />
	 * @param note
	 *        the note to set.
	 * @throws IllegalArgumentException
	 *         if the not is outside the range [1;5].
	 */
	public Note (final Integer note) throws IllegalArgumentException {
		super(PARAMETER_NOTE, note);
		if (note < 1 || 5 < note) {
			throw new IllegalArgumentException("The note must be comprise between 1 and 5.");
		}
	}<commit_msg>Fix Sonar violation: create constants for note min/max<commit_after>package com.alexrnl.jbetaseries.request.parameters;

/**
 * Parameter which allow to set the note of a show or an episode.<br />
 * @author Alex
 */
public class Note extends Parameter<Integer> {
	/** Name of the note parameter */
	public static final String	PARAMETER_NOTE	= "note";
	/** The minimum note allowed by the API */
	public static final int		NOTE_MIN		= 1;
	/** The maximum note allowed by the API */
	public static final int		NOTE_MAX		= 5;
	
	/**
	 * Constructor #1.<br />
	 * @param note
	 *        the note to set.
	 * @throws IllegalArgumentException
	 *         if the not is outside the range [1;5].
	 */
	public Note (final Integer note) throws IllegalArgumentException {
		super(PARAMETER_NOTE, note);
		if (note < NOTE_MIN || note > NOTE_MAX) {
			throw new IllegalArgumentException("The note must be comprise between 1 and 5.");
		}
	}
{'fraction_non_alphanumeric': 0.10325752919483712, 'fraction_numerical': 0.008604794099569761, 'mean_word_length': 3.295514511873351, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 10, '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': '258181', 'n_tokens_mistral': 500, 'n_tokens_neox': 462, 'n_words': 185}