<commit_before>/**
 * Created by <NAME> on 19-Jun-16.
 * Edited by Siclait on 19-Jun-16
 */
package Entity;

import java.util.UUID;

public class URL {

    public String id;
    public String originalUrl;

    public URL() {
    }

    public URL(String originalUrl) {
        this.originalUrl = originalUrl;
        this.id = UUID.randomUUID().toString().split("-")[0];
    }
}<commit_msg>Create URL POJO Entity<commit_after>/**
 * Created by <NAME> on 19-Jun-16.
 * Edited by Siclait on 19-Jun-16
 */
package Entity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.UUID;

@Entity
public class URL implements Serializable {

    private static final long serialVersionUID = 1L;

    // Attributes
    @Id
    @Column(name = "SHORT")
    private String shortURL;

    @Column(name = "ORIGINAL")
    private String originalURL;

    @ManyToOne  // @Column not allowe iinn many to one relationship
    private User user;

    // Constructor
    public URL() {

    }

    public URL(String originalURL, User user) {

        this.setOriginalURL(originalURL);
        this.setShortURL(UUID.randomUUID().toString().split("-")[0]);
        this.setUser(user);

    }

    public URL(String shortURL, String originalURL, User user) {

        this.setOriginalURL(originalURL);
        this.setShortURL(shortURL);
        this.setUser(user);

    }

    // Getters & Setters
    public String getShortURL() {
        return shortURL;
    }

    public void setShortURL(String shortURL) {
        this.shortURL = shortURL;
    }

    public String getOriginalURL() {
        return originalURL;
    }

    public void setOriginalURL(String originalURL) {
        this.originalURL = originalURL;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
{'fraction_non_alphanumeric': 0.10930735930735931, 'fraction_numerical': 0.010281385281385282, 'mean_word_length': 2.5286259541984735, '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': '2949523', 'n_tokens_mistral': 590, 'n_tokens_neox': 555, 'n_words': 147}