<commit_before>package org.randomcoder.db;

import java.io.Serializable;
import java.lang.reflect.Field;
import java.util.*;

import javax.persistence.*;

import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.lang.builder.*;

/**
 * JPA entity representing a user.
 */
@NamedQueries({ @NamedQuery(name = "User.All", query = "from User u order by u.userName"),
		@NamedQuery(name = "User.CountAll", query = "select count(u.id) from User u"),
		@NamedQuery(name = "User.Enabled", query = "from User u where u.enabled = true order by u.userName"),
		@NamedQuery(name = "User.ByUserName", query = "from User u where u.userName = ?"),
		@NamedQuery(name = "User.ByUserNameEnabled", query = "from User u where u.userName = ? and u.enabled = true") })
@Entity
@Table(name = "users")
@SequenceGenerator(name = "users", sequenceName = "users_seq", allocationSize = 1)
public class User implements Serializable
{
	private static final long serialVersionUID = 2227663675676869070L;

	private Long id;
	private String userName;
	private String password;
	private String emailAddress;
	private String website;
	private boolean enabled;
	private Date lastLoginDate;

	private List<Role> roles;

	/**
	 * Gets the id of this user.
	 * 
	 * @return user id<commit_msg>Added @Cache annotation to User<commit_after>package org.randomcoder.db;

import java.io.Serializable;
import java.lang.reflect.Field;
import java.util.*;

import javax.persistence.*;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OrderBy;
import javax.persistence.Table;

import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.lang.builder.*;
import org.hibernate.annotations.*;
import org.hibernate.annotations.Cache;

/**
 * JPA entity representing a user.
 */
@NamedQueries({ @NamedQuery(name = "User.All", query = "from User u order by u.userName"),
		@NamedQuery(name = "User.CountAll", query = "select count(u.id) from User u"),
		@NamedQuery(name = "User.Enabled", query = "from User u where u.enabled = true order by u.userName"),
		@NamedQuery(name = "User.ByUserName", query = "from User u where u.userName = ?"),
		@NamedQuery(name = "User.ByUserNameEnabled", query = "from User u where u.userName = ? and u.enabled = true") })
@Entity
@Table(name = "users")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@SequenceGenerator(name = "users", sequenceName = "users_seq", allocationSize = 1)
public class User implements Serializable
{
	private static final long serialVersionUID = 2227663675676869070L;

	private Long id;
	private String userName;
	private String password;
	private String emailAddress;
	private String website;
	private boolean enabled;
	private Date lastLoginDate;

	private List<Role> roles;

	/**
	 * Gets the id of this user.
	 * 
	 * @return user id
{'fraction_non_alphanumeric': 0.12182387747998608, 'fraction_numerical': 0.013922728854855551, 'mean_word_length': 4.950310559006211, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3302072', 'n_tokens_mistral': 916, 'n_tokens_neox': 867, 'n_words': 261}