<commit_before>package de.unitrier.st.soposthistory.urls;

import javax.persistence.*;

@Entity
@Table(name="PostVersionUrl")
public class PostVersionUrl{
    private int id;
    private Integer postId;
    private Integer postHistoryId;
    private Integer postBlockVersionId;
    private String protocol;
    private String completeDomain;
    private String rootDomain;
    private String path;
    private String url;

    public PostVersionUrl(){
        this.postHistoryId = null;
        this.protocol = null;
        this.completeDomain = null;
        this.rootDomain = null;
        this.path = null;
        this.url = null;
    }

    public PostVersionUrl(int postId, int postHistoryId, int postBlockVersionId, Link link){
        this.postId = postId;
        this.postHistoryId = postHistoryId;
        this.postBlockVersionId = postBlockVersionId;
        this.protocol = link.getProtocol();
        this.completeDomain = link.getCompleteDomain();
        this.rootDomain = link.getRootDomain();
        this.url = link.getUrl();
    }

    @Id
    @Column(name = "Id")
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "PostId")
    public Integer getPostId() {
        return postId;
    }

    public void setPostId(Integer postId) {
        this.postId = postId;
    }

    @Basic
    @Column(name = "PostHistoryId")
    public Integer getPostHistoryId() {
        return postHistoryId;
    }

    public void setPostHistoryId(Integer postHistoryId) {<commit_msg>Fix bug that caused URL path not to be set<commit_after>package de.unitrier.st.soposthistory.urls;

import javax.persistence.*;

@Entity
@Table(name="PostVersionUrl")
public class PostVersionUrl{
    private int id;
    private Integer postId;
    private Integer postHistoryId;
    private Integer postBlockVersionId;
    private String protocol;
    private String completeDomain;
    private String rootDomain;
    private String path;
    private String url;

    public PostVersionUrl(){
        this.postHistoryId = null;
        this.protocol = null;
        this.completeDomain = null;
        this.rootDomain = null;
        this.path = null;
        this.url = null;
    }

    public PostVersionUrl(int postId, int postHistoryId, int postBlockVersionId, Link link){
        this.postId = postId;
        this.postHistoryId = postHistoryId;
        this.postBlockVersionId = postBlockVersionId;
        this.protocol = link.getProtocol();
        this.completeDomain = link.getCompleteDomain();
        this.rootDomain = link.getRootDomain();
        this.path = link.getPath();
        this.url = link.getUrl();
    }

    @Id
    @Column(name = "Id")
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "PostId")
    public Integer getPostId() {
        return postId;
    }

    public void setPostId(Integer postId) {
        this.postId = postId;
    }

    @Basic
    @Column(name = "PostHistoryId")
    public Integer getPostHistoryId() {
        return postHistoryId;
    }

    public void setPostHistoryId(Integer postHistoryId) {
{'fraction_non_alphanumeric': 0.09148359915738791, 'fraction_numerical': 0.0, 'mean_word_length': 2.616974972796518, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6023759', 'n_tokens_mistral': 965, 'n_tokens_neox': 952, 'n_words': 239}