<commit_before>// CloudCoder - a web-based pedagogical programming environment
// Copyright (C) 2011-2012, <NAME> <<EMAIL>>
// Copyright (C) 2011-2012, <NAME> <<EMAIL>>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

package org.cloudcoder.app.shared.model;

import java.io.Serializable;

/**
 * A record indicating that a {@link User} (student) started a
 * {@link Quiz} and may currently be working on one.
 * 
 * @author <NAME>
 */
public class StartedQuiz implements Serializable, IModelObject<StartedQuiz> {
	private static final long serialVersionUID = 1L;
	
	public static final ModelObjectField<StartedQuiz, Integer> ID = new ModelObjectField<StartedQuiz, Integer>("id", Integer.class, 0, ModelObjectIndexType.IDENTITY) {
		public void set(StartedQuiz obj, Integer value) { obj.setId(value); }
		public Integer get(StartedQuiz obj) { return obj.getId(); }
	};

	public static final ModelObjectField<StartedQuiz, Integer> USER_ID = new ModelObjectField<StartedQuiz, Integer>("user_id", Integer.class, 0, ModelObjectIndexType.NON_UNIQUE) {
		public void set(StartedQuiz obj, Integer value) { obj.setUserId(value); }
		public Integer get(StartedQuiz obj) { return obj.getUserId(); }
	};

	public static final ModelObjectField<StartedQuiz, Integer> QUIZ_ID = new ModelObjectField<StartedQuiz, Integer>("quiz_id", Integer.class, 0, ModelObjectIndexType.NON_UNIQUE) {
		public void set(StartedQuiz obj, Integer value) { obj.setQuizId(value); }
		public Integer get(StartedQuiz obj) { return obj.getQuizId(); }
	};

	public static final ModelObjectField<StartedQuiz, Long> START_TIME = new ModelObjectField<StartedQuiz, Long>("start_time", Long.class, 0) {
		public void set(StartedQuiz obj, Long value) { obj.setStartTime(value); }
		public Long get(StartedQuiz obj) { return obj.getStartTime(); }
	};
	
	public static final ModelObjectSchema<StartedQuiz> SCHEMA_V0 = new ModelObjectSchema<StartedQuiz>("started_quiz")
			.add(ID)
			.add(USER_ID)
			.add(QUIZ_ID)
			.add(START_TIME);
	
	public static final ModelObjectSchema<StartedQuiz> SCHEMA = SCHEMA_V0;

	private int id;
	private int userId;
	private int quizId;
	private long startTime;
	
	public StartedQuiz() {
		
	}
	
	@Override
	public ModelObjectSchema<? super StartedQuiz> getSchema() {
		return SCHEMA;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public int getId() {
		return id;
	}
	
	public void setUserId(int userId) {
		this.userId = userId;
	}
	
	public int getUserId() {
		return userId;
	}
	
	public void setQuizId(int quizId) {
		this.quizId = quizId;
	}
	
	public int getQuizId() {
		return quizId;
	}
	
	public void setStartTime(long startTime) {
		this.startTime = startTime;
	}
	
	public long getStartTime() {
		return startTime;
	}
}<commit_msg>added javadoc comments for StartedQuiz<commit_after>// CloudCoder - a web-based pedagogical programming environment
// Copyright (C) 2011-2012, <NAME> <<EMAIL>>
// Copyright (C) 2011-2012, <NAME> <<EMAIL>>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

package org.cloudcoder.app.shared.model;

import java.io.Serializable;

/**
 * A record indicating that a {@link User} (student) started a
 * {@link Quiz} and may currently be working on one.
 * 
 * @author <NAME>
 */
public class StartedQuiz implements Serializable, IModelObject<StartedQuiz> {
	private static final long serialVersionUID = 1L;
	
	public static final ModelObjectField<StartedQuiz, Integer> ID = new ModelObjectField<StartedQuiz, Integer>("id", Integer.class, 0, ModelObjectIndexType.IDENTITY) {
		public void set(StartedQuiz obj, Integer value) { obj.setId(value); }
		public Integer get(StartedQuiz obj) { return obj.getId(); }
	};

	public static final ModelObjectField<StartedQuiz, Integer> USER_ID = new ModelObjectField<StartedQuiz, Integer>("user_id", Integer.class, 0, ModelObjectIndexType.NON_UNIQUE) {
		public void set(StartedQuiz obj, Integer value) { obj.setUserId(value); }
		public Integer get(StartedQuiz obj) { return obj.getUserId(); }
	};

	public static final ModelObjectField<StartedQuiz, Integer> QUIZ_ID = new ModelObjectField<StartedQuiz, Integer>("quiz_id", Integer.class, 0, ModelObjectIndexType.NON_UNIQUE) {
		public void set(StartedQuiz obj, Integer value) { obj.setQuizId(value); }
		public Integer get(StartedQuiz obj) { return obj.getQuizId(); }
	};

	public static final ModelObjectField<StartedQuiz, Long> START_TIME = new ModelObjectField<StartedQuiz, Long>("start_time", Long.class, 0) {
		public void set(StartedQuiz obj, Long value) { obj.setStartTime(value); }
		public Long get(StartedQuiz obj) { return obj.getStartTime(); }
	};
	
	public static final ModelObjectSchema<StartedQuiz> SCHEMA_V0 = new ModelObjectSchema<StartedQuiz>("started_quiz")
			.add(ID)
			.add(USER_ID)
			.add(QUIZ_ID)
			.add(START_TIME);
	
	public static final ModelObjectSchema<StartedQuiz> SCHEMA = SCHEMA_V0;

	private int id;
	private int userId;
	private int quizId;
	private long startTime;
	
	/**
	 * Constructor.
	 */
	public StartedQuiz() {
		
	}
	
	@Override
	public ModelObjectSchema<? super StartedQuiz> getSchema() {
		return SCHEMA;
	}
	
	/**
	 * Set the unique id.
	 * @param id the unique id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	
	/**
	 * @return the unique id
	 */
	public int getId() {
		return id;
	}
	
	/**
	 * Set the user id of the user who has started a quiz.
	 * 
	 * @param userId the user id
	 */
	public void setUserId(int userId) {
		this.userId = userId;
	}
	
	/**
	 * @return the user id of the user who started a quiz
	 */
	public int getUserId() {
		return userId;
	}
	
	/**
	 * Set the unique id of the quiz.
	 * 
	 * @param quizId the unique id of the quiz
	 */
	public void setQuizId(int quizId) {
		this.quizId = quizId;
	}
	
	/**
	 * @return the unique id of the quiz
	 */
	public int getQuizId() {
		return quizId;
	}
	
	/**
	 * Set time when the quiz was started.
	 * 
	 * @param startTime time when the quiz was started
	 */
	public void setStartTime(long startTime) {
		this.startTime = startTime;
	}
	
	/**
	 * @return time when the quiz was started
	 */
	public long getStartTime() {
		return startTime;
	}
}
{'fraction_non_alphanumeric': 0.10509120609855704, 'fraction_numerical': 0.006534168254832562, 'mean_word_length': 4.046016483516484, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1375547', 'n_tokens_mistral': 2495, 'n_tokens_neox': 2313, 'n_words': 768}