<commit_before>package com.sequenceiq.cloudbreak.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

@Entity
@Table(name = "Blueprint", uniqueConstraints = {
        @UniqueConstraint(columnNames = { "account", "name" })
})
@NamedQueries({
        @NamedQuery(
                name = "Blueprint.findForUser",
                query = "SELECT b FROM Blueprint b "
                        + "WHERE b.owner= :user"),
        @NamedQuery(
                name = "Blueprint.findPublicsInAccount",
                query = "SELECT b FROM Blueprint b "
                        + "WHERE b.account= :account "
                        + "AND b.publicInAccount= true"),
        @NamedQuery(
                name = "Blueprint.findAllInAccount",
                query = "SELECT b FROM Blueprint b "
                        + "WHERE b.account= :account ")
})
public class Blueprint implements ProvisionEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "blueprint_generator")
    @SequenceGenerator(name = "blueprint_generator", sequenceName = "blueprint_table")
    private Long id;

    @Column(nullable = false)
    private String name;

    @Column(length = 1000000, columnDefinition = "TEXT")
    private String blueprintText;

    private String blueprintName;

    private String description;

    private int hostGroupCount;

    private String owner;
    private String account;

    @Enumerated(EnumType.STRING)
    private BlueprintVersion blueprintVersion;

    private boolean publicInAccount;

    public Blueprint() {

    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getName() {
        return name;
    }
<commit_msg>CLOUD-269 default value on entity<commit_after>package com.sequenceiq.cloudbreak.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

@Entity
@Table(name = "Blueprint", uniqueConstraints = {
        @UniqueConstraint(columnNames = { "account", "name" })
})
@NamedQueries({
        @NamedQuery(
                name = "Blueprint.findForUser",
                query = "SELECT b FROM Blueprint b "
                        + "WHERE b.owner= :user"),
        @NamedQuery(
                name = "Blueprint.findPublicsInAccount",
                query = "SELECT b FROM Blueprint b "
                        + "WHERE b.account= :account "
                        + "AND b.publicInAccount= true"),
        @NamedQuery(
                name = "Blueprint.findAllInAccount",
                query = "SELECT b FROM Blueprint b "
                        + "WHERE b.account= :account ")
})
public class Blueprint implements ProvisionEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "blueprint_generator")
    @SequenceGenerator(name = "blueprint_generator", sequenceName = "blueprint_table")
    private Long id;

    @Column(nullable = false)
    private String name;

    @Column(length = 1000000, columnDefinition = "TEXT")
    private String blueprintText;

    private String blueprintName;

    private String description;

    private int hostGroupCount;

    private String owner;
    private String account;

    @Enumerated(EnumType.STRING)
    private BlueprintVersion blueprintVersion = BlueprintVersion.AMBARI16;

    private boolean publicInAccount;

    public Blueprint() {

    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getName() {
        return name;
    }

{'fraction_non_alphanumeric': 0.08868432869330939, 'fraction_numerical': 0.004265828468792097, 'mean_word_length': 2.8174807197943443, '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': '827067', 'n_tokens_mistral': 1177, 'n_tokens_neox': 1135, 'n_words': 289}