<commit_before>package li.l1t.sic.model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.Valid;

/**
 * Represents an authority assigned to a user. Necessary because Spring doesn't accept users
 * without authorities as existing for some reason.
 *
 * @author <a href="http://xxyy.github.io/">xxyy</a>
 * @since 2016-02-22
 */
@Entity
@Table(name = "sic_authority")
public class UserAuthority {
    @Id
    private int id;

    @JoinColumn(name = "username")
    @ManyToOne
    private User user;

    private String authority;

    public UserAuthority(User user, String authority) {<commit_msg>Remove unnecessary import<commit_after>package li.l1t.sic.model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Represents an authority assigned to a user. Necessary because Spring doesn't accept users
 * without authorities as existing for some reason.
 *
 * @author <a href="http://xxyy.github.io/">xxyy</a>
 * @since 2016-02-22
 */
@Entity
@Table(name = "sic_authority")
public class UserAuthority {
    @Id
    private int id;

    @JoinColumn(name = "username")
    @ManyToOne
    private User user;

    private String authority;

    public UserAuthority(User user, String authority) {
{'fraction_non_alphanumeric': 0.10609171800136892, 'fraction_numerical': 0.012320328542094456, 'mean_word_length': 4.277978339350181, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5038162', 'n_tokens_mistral': 455, 'n_tokens_neox': 436, 'n_words': 126}