<commit_before>package org.project.openbaton.catalogue.mano.common;

import org.project.openbaton.catalogue.mano.record.VirtualNetworkFunctionRecord;
import org.project.openbaton.catalogue.util.IdGenerator;

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

/**
 * Created by lto on 08/06/15.
 */
@Entity
public class VNFRecordDependency implements Serializable {

    @Id
    private String id = IdGenerator.createUUID();
    @Version
    private int version = 0;

    @OneToOne(cascade = {CascadeType.REFRESH/*, CascadeType.MERGE*/}, fetch = FetchType.EAGER)
    private VirtualNetworkFunctionRecord source;
    @OneToOne(cascade = {CascadeType.REFRESH/*, CascadeType.MERGE*/}, fetch = FetchType.EAGER)
    private VirtualNetworkFunctionRecord target;

    @ElementCollection(fetch = FetchType.EAGER)
    private Set<String> parameters;

    public VNFRecordDependency() {
    }

    @Override
    public String toString() {
        return "VNFRecordDependency{" +
                "id='" + id + '\'' +
                ", version=" + version +
                ", source=" + source.getName() + "(" + source.getId() + ")" +
                ", target=" + target + "(" + target.getId() + ")" +
                ", parameters=" + parameters +
                '}';
    }

    public Set<String> getParameters() {
        return parameters;
    }

    public void setParameters(Set<String> parameters) {
        this.parameters = parameters;
    }

    public String getId() {
        return id;
    }

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

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public VirtualNetworkFunctionRecord getSource() {
        return source;
    }

    public void setSource(VirtualNetworkFunctionRecord source) {
        this.source = source;
    }

    public VirtualNetworkFunctionRecord getTarget() {
        return target;
    }

    public void setTarget(VirtualNetworkFunctionRecord target) {
        this.target = target;
    }
}<commit_msg>starting working with more dependencies<commit_after>package org.project.openbaton.catalogue.mano.common;

import org.project.openbaton.catalogue.mano.record.VirtualNetworkFunctionRecord;
import org.project.openbaton.catalogue.util.IdGenerator;

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

/**
 * Created by lto on 08/06/15.
 */
@Entity
public class VNFRecordDependency implements Serializable {

    @Id
    private String id = IdGenerator.createUUID();
    @Version
    private int version = 0;

    @OneToOne(cascade = {CascadeType.REFRESH/*, CascadeType.MERGE*/}, fetch = FetchType.EAGER)
    private VirtualNetworkFunctionRecord source;
    @OneToOne(cascade = {CascadeType.REFRESH/*, CascadeType.MERGE*/}, fetch = FetchType.EAGER)
    private VirtualNetworkFunctionRecord target;

    @ElementCollection(fetch = FetchType.EAGER)
    private Set<String> parameters;
    private Status status;

    public VNFRecordDependency() {
    }

    @Override
    public String toString() {
        return "VNFRecordDependency{" +
                "id='" + id + '\'' +
                ", version=" + version +
                ", source=" + source.getName() + "(" + source.getId() + ")" +
                ", target=" + target + "(" + target.getId() + ")" +
                ", parameters=" + parameters +
                '}';
    }

    public Set<String> getParameters() {
        return parameters;
    }

    public void setParameters(Set<String> parameters) {
        this.parameters = parameters;
    }

    public String getId() {
        return id;
    }

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

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public VirtualNetworkFunctionRecord getSource() {
        return source;
    }

    public void setSource(VirtualNetworkFunctionRecord source) {
        this.source = source;
    }

    public VirtualNetworkFunctionRecord getTarget() {
        return target;
    }

    public void setTarget(VirtualNetworkFunctionRecord target) {
        this.target = target;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public Status getStatus() {
        return status;
    }
}
{'fraction_non_alphanumeric': 0.11045854980799638, 'fraction_numerical': 0.003162412468940592, 'mean_word_length': 2.5680902497985496, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6207479', 'n_tokens_mistral': 1288, 'n_tokens_neox': 1237, 'n_words': 276}