<commit_before>package de.yannicklem.shoppinglist.core.list.entity;

import com.fasterxml.jackson.annotation.JsonInclude;

import de.yannicklem.shoppinglist.core.OwnedRestEntity;
import de.yannicklem.shoppinglist.core.item.entity.Item;
import de.yannicklem.shoppinglist.core.user.entity.SLUser;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import org.hibernate.annotations.GenericGenerator;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;


@Entity
@Getter
@Setter
@ToString
@EqualsAndHashCode(of = "entityId", callSuper = false)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class ShoppingList extends OwnedRestEntity<Long> {

    @Id
    @GeneratedValue(generator = "useExistingOrGenerate")
    @GenericGenerator(
        name = "useExistingOrGenerate",
        strategy = "de.yannicklem.shoppinglist.core.user.persistence.UseExistingOrGenerateIdGenerator"
    )
    private Long entityId;

    @ManyToMany
    private final Set<SLUser> owners;

    private String name;

    @OneToMany(cascade = CascadeType.ALL)<commit_msg>specified name of collection relation of ShoppingList-Entity<commit_after>package de.yannicklem.shoppinglist.core.list.entity;

import com.fasterxml.jackson.annotation.JsonInclude;

import de.yannicklem.shoppinglist.core.OwnedRestEntity;
import de.yannicklem.shoppinglist.core.item.entity.Item;
import de.yannicklem.shoppinglist.core.user.entity.SLUser;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import org.hibernate.annotations.GenericGenerator;
import org.springframework.hateoas.core.Relation;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;


@Entity
@Getter
@Setter
@ToString
@EqualsAndHashCode(of = "entityId", callSuper = false)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Relation(collectionRelation = "shoppingLists")
public class ShoppingList extends OwnedRestEntity<Long> {

    @Id
    @GeneratedValue(generator = "useExistingOrGenerate")
    @GenericGenerator(
        name = "useExistingOrGenerate",
        strategy = "de.yannicklem.shoppinglist.core.user.persistence.UseExistingOrGenerateIdGenerator"
    )
    private Long entityId;

    @ManyToMany
    private final Set<SLUser> owners;

    private String name;

    @OneToMany(cascade = CascadeType.ALL)
{'fraction_non_alphanumeric': 0.09357997823721437, 'fraction_numerical': 0.0, 'mean_word_length': 5.645783132530121, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6543557', 'n_tokens_mistral': 869, 'n_tokens_neox': 874, 'n_words': 151}