<commit_before>package com.bls.patronage.db.model;

import java.util.UUID;

public class Flashcard extends IdentifiableEntity {
    private final String question;
    private final String answer;
    private final UUID deckID;

    public Flashcard(String question, String answer, UUID deckID) {
        this.question = question;
        this.answer = answer;
        this.deckID = deckID;
    }

    public Flashcard(String id, String question, String answer, UUID deckID) {
        super(id);
        this.question = question;
        this.answer = answer;
        this.deckID = deckID;
    }

    public Flashcard(UUID id, String question, String answer, UUID deckID) {
        super(id);
        this.question = question;
        this.answer = answer;
        this.deckID = deckID;
    }

    public Flashcard(String id, UUID deckID) {
        super(id);
        this.deckID = deckID;
        question = null;
        answer = null;
    }

    public Flashcard(UUID id, UUID deckID) {
        super(id);
        this.deckID = deckID;
        question = null;
        answer = null;
    }

    public String getQuestion() {
        return question;
    }

    public String getAnswer() {
        return answer;
    }

    public UUID getDeckID() {
        return deckID;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Flashcard flashcard = (Flashcard) o;

        if (getQuestion() != null ? !getQuestion().equals(flashcard.getQuestion()) : flashcard.getQuestion() != null)
            return false;
        if (getAnswer() != null ? !getAnswer().equals(flashcard.getAnswer()) : flashcard.getAnswer() != null)
            return false;
        return getDeckID().equals(flashcard.getDeckID());

    }
<commit_msg>Making Flashcard more flexible<commit_after>package com.bls.patronage.db.model;

import java.util.UUID;

public class Flashcard extends IdentifiableEntity {
    private final String question;
    private final String answer;
    private final UUID deckID;

    public Flashcard(String question, String answer, UUID deckID) {
        this.question = question;
        this.answer = answer;
        this.deckID = deckID;
    }

    public Flashcard(String question, String answer, String deckID) {
        this.question = question;
        this.answer = answer;
        this.deckID = UUID.fromString(deckID);
    }

    public Flashcard(String id, String question, String answer, UUID deckID) {
        super(id);
        this.question = question;
        this.answer = answer;
        this.deckID = deckID;
    }

    public Flashcard(String id, String question, String answer, String deckID) {
        super(id);
        this.question = question;
        this.answer = answer;
        this.deckID = UUID.fromString(deckID);
    }

    public Flashcard(UUID id, String question, String answer, UUID deckID) {
        super(id);
        this.question = question;
        this.answer = answer;
        this.deckID = deckID;
    }

    public Flashcard(UUID id, String question, String answer, String deckID) {
        super(id);
        this.question = question;
        this.answer = answer;
        this.deckID = UUID.fromString(deckID);
    }

    public Flashcard(UUID id, UUID deckID) {
        super(id);
        this.question = null;
        this.answer = null;
        this.deckID = deckID;
    }

    public Flashcard(UUID id, String deckID) {
        super(id);
        this.question = null;
        this.answer = null;
        this.deckID = UUID.fromString(deckID);
    }

    public Flashcard(String id, UUID deckID) {
        super(id);
        this.question = null;
        this.answer = null;
        this.deckID = deckID;
    }

    public Flashcard(String id, String deckID) {
        super(id);
        this.question = null;
        this.answer = null;
        this.deckID = UUID.fromString(deckID);
    }

    public String getQuestion() {
        return question;
    }

    public String getAnswer() {
        return answer;
    }

    public UUID getDeckID() {
        return deckID;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Flashcard flashcard = (Flashcard) o;

        if (getQuestion() != null ? !getQuestion().equals(flashcard.getQuestion()) : flashcard.getQuestion() != null)
            return false;
        if (getAnswer() != null ? !getAnswer().equals(flashcard.getAnswer()) : flashcard.getAnswer() != null)
            return false;
        return getDeckID().equals(flashcard.getDeckID());

    }

{'fraction_non_alphanumeric': 0.10602512241856504, 'fraction_numerical': 0.0, 'mean_word_length': 2.23331039229181, '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': '6541139', 'n_tokens_mistral': 1381, 'n_tokens_neox': 1348, 'n_words': 360}