<commit_before>package org.cloudcoder.app.shared.model;

public class RepoProblemRating implements IModelObject<RepoProblemRating> {
	public static final int MIN_VALUE = 1;
	public static final int MAX_VALUE = 5;
	
	private int id;
	private int userId;        // id of user who rated the exercise
	private int repoProblemId; // id of repo exercise
	private int value;         // rating, between MIN_VALUE and MAX_VALUE
	
	private static final ModelObjectField<RepoProblemRating, Integer> ID = new ModelObjectField<RepoProblemRating, Integer>("id", Integer.class, 0, ModelObjectIndexType.IDENTITY) {
		public void set(RepoProblemRating obj, Integer value) { obj.id = value; }
		public Integer get(RepoProblemRating obj) { return obj.id; }
	};
	private static final ModelObjectField<RepoProblemRating, Integer> USER_ID = new ModelObjectField<RepoProblemRating, Integer>("user_id", Integer.class, 0, ModelObjectIndexType.NON_UNIQUE) {
		public void set(RepoProblemRating obj, Integer value) { obj.userId = value; }
		public Integer get(RepoProblemRating obj) { return obj.userId; }
	};
	private static final ModelObjectField<RepoProblemRating, Integer> REPO_PROBLEM_ID = new ModelObjectField<RepoProblemRating, Integer>("repo_problem_id", Integer.class, 0, ModelObjectIndexType.NON_UNIQUE) {
		public void set(RepoProblemRating obj, Integer value) { obj.repoProblemId = value; }
		public Integer get(RepoProblemRating obj) { return obj.repoProblemId; }
	};
	private static final ModelObjectField<RepoProblemRating, Integer> VALUE = new ModelObjectField<RepoProblemRating, Integer>("value", Integer.class, 0) {
		public void set(RepoProblemRating obj, Integer value) { obj.value = value; }
		public Integer get(RepoProblemRating obj) { return obj.value; }
	};
	
	private static final ModelObjectSchema<RepoProblemRating> SCHEMA_V0 = new ModelObjectSchema<RepoProblemRating>("repoproblemrating")
			.add(ID)
			.add(USER_ID)
			.add(REPO_PROBLEM_ID)
			.add(VALUE);
	
	public static final ModelObjectSchema<RepoProblemRating> SCHEMA = SCHEMA_V0;<commit_msg>fix name of db table for RepoProblemRating class<commit_after>package org.cloudcoder.app.shared.model;

public class RepoProblemRating implements IModelObject<RepoProblemRating> {
	public static final int MIN_VALUE = 1;
	public static final int MAX_VALUE = 5;
	
	private int id;
	private int userId;        // id of user who rated the exercise
	private int repoProblemId; // id of repo exercise
	private int value;         // rating, between MIN_VALUE and MAX_VALUE
	
	private static final ModelObjectField<RepoProblemRating, Integer> ID = new ModelObjectField<RepoProblemRating, Integer>("id", Integer.class, 0, ModelObjectIndexType.IDENTITY) {
		public void set(RepoProblemRating obj, Integer value) { obj.id = value; }
		public Integer get(RepoProblemRating obj) { return obj.id; }
	};
	private static final ModelObjectField<RepoProblemRating, Integer> USER_ID = new ModelObjectField<RepoProblemRating, Integer>("user_id", Integer.class, 0, ModelObjectIndexType.NON_UNIQUE) {
		public void set(RepoProblemRating obj, Integer value) { obj.userId = value; }
		public Integer get(RepoProblemRating obj) { return obj.userId; }
	};
	private static final ModelObjectField<RepoProblemRating, Integer> REPO_PROBLEM_ID = new ModelObjectField<RepoProblemRating, Integer>("repo_problem_id", Integer.class, 0, ModelObjectIndexType.NON_UNIQUE) {
		public void set(RepoProblemRating obj, Integer value) { obj.repoProblemId = value; }
		public Integer get(RepoProblemRating obj) { return obj.repoProblemId; }
	};
	private static final ModelObjectField<RepoProblemRating, Integer> VALUE = new ModelObjectField<RepoProblemRating, Integer>("value", Integer.class, 0) {
		public void set(RepoProblemRating obj, Integer value) { obj.value = value; }
		public Integer get(RepoProblemRating obj) { return obj.value; }
	};
	
	private static final ModelObjectSchema<RepoProblemRating> SCHEMA_V0 = new ModelObjectSchema<RepoProblemRating>("repo_problem_rating")
			.add(ID)
			.add(USER_ID)
			.add(REPO_PROBLEM_ID)
			.add(VALUE);
	
	public static final ModelObjectSchema<RepoProblemRating> SCHEMA = SCHEMA_V0;
{'fraction_non_alphanumeric': 0.08790147307413668, 'fraction_numerical': 0.003863801014247766, 'mean_word_length': 5.745928338762215, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '1569036', 'n_tokens_mistral': 1334, 'n_tokens_neox': 1232, 'n_words': 340}