<commit_before>package uk.gov.dvla.domain.authentication.nino;

import uk.gov.dvla.domain.authentication.DriverAuthToken;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class NinoAuthenticationToken extends DriverAuthToken {
    private String nino;
    private String deceasedIndicator;
    private String coreMatchIndicator;
    private String addressMatchIndicator;

    private String secretMatchIndicator;


    private static final String yes = "Y";
    private static final String no = "N";

    public NinoAuthenticationToken() {
    }

    public NinoAuthenticationToken(String dln, String postcode, String nino, Date dob, String surname, String forename1, String forename2) {

        this.dln = dln;
        this.postCode = postcode;
        this.nino = nino;
        this.dob = dob;
        this.surname = surname;
        this.forename1 = forename1;
        this.forename2 = forename2;

    }

    public NinoAuthenticationToken(String dln, String postcode, String nino, Date dob, String surname,
                                   String deceasedIndicator, String coreMatchIndicator, List<String> warningCodes) {

        this.dln = dln;
        this.postCode = postcode;
        this.nino = nino;
        this.dob = dob;
        this.surname = surname;
        this.deceasedIndicator = deceasedIndicator;
        this.coreMatchIndicator = coreMatchIndicator;

    }

    public NinoAuthenticationToken(DriverAuthToken driverAuthToken) {
        this(driverAuthToken.getDln(), driverAuthToken.getPostCode(), null, driverAuthToken.getDob(), driverAuthToken.getSurname(), driverAuthToken.getForename1(), driverAuthToken.getForename2());
    }

    public String getNino() {
        return nino;
    }

    public void setNino(String nino) {
        this.nino = nino;
    }

    public String getDeceasedIndicator() {
        return deceasedIndicator;
    }

    public void setDeceasedIndicator(String deceasedIndicator) {
        this.deceasedIndicator = deceasedIndicator;
    }

    public String getCoreMatchIndicator() {
        return coreMatchIndicator;
    }

    public void setCoreMatchIndicator(String coreMatchIndicator) {
        this.coreMatchIndicator = coreMatchIndicator;
    }

    public boolean isNotDeceased() {
        return isNullOrNullLiteral(getDeceasedIndicator()) || getDeceasedIndicator().equalsIgnoreCase(no);
    }

    public boolean isCoreMatch() {
        return isNullOrNullLiteral(getCoreMatchIndicator()) || getCoreMatchIndicator().equalsIgnoreCase(yes);
    }

    public boolean isAddressMatch() {
        return isNullOrNullLiteral(getAddressMatchIndicator()) || getAddressMatchIndicator().equalsIgnoreCase(yes);
    }

    public String getAddressMatchIndicator() {
        return addressMatchIndicator;
    }

    public void setAddressMatchIndicator(String addressMatchIndicator) {
        this.addressMatchIndicator = addressMatchIndicator;
    }

    public String getSecretMatchIndicator() {
        return secretMatchIndicator;
    }

    public void setSecretMatchIndicator(String secretMatchIndicator) {
        this.secretMatchIndicator = secretMatchIndicator;
    }

    private static boolean isNullOrNullLiteral(String indicator) {
        return indicator == null || indicator.equalsIgnoreCase("null");<commit_msg>Fix bugs around logic to create the authToke from files, make changes to the dummy data in accordance with the testers data<commit_after>package uk.gov.dvla.domain.authentication.nino;

import uk.gov.dvla.domain.authentication.DriverAuthToken;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class NinoAuthenticationToken extends DriverAuthToken {
    private String nino;
    private String deceasedIndicator;
    private String coreMatchIndicator;
    private String addressMatchIndicator;

    private String secretMatchIndicator;


    private static final String yes = "Y";
    private static final String no = "N";

    public NinoAuthenticationToken() {
    }

    public NinoAuthenticationToken(String dln, String postcode, String nino, Date dob, String surname, String forename1, String forename2) {

        this.dln = dln;
        this.postCode = postcode;
        this.nino = nino;
        this.dob = dob;
        this.surname = surname;
        this.forename1 = forename1;
        this.forename2 = forename2;

    }

    public NinoAuthenticationToken(String dln, String postcode, String nino, Date dob, String surname,
                                   String deceasedIndicator, String coreMatchIndicator, List<String> warningCodes) {

        this.dln = dln;
        this.postCode = postcode;
        this.nino = nino;
        this.dob = dob;
        this.surname = surname;
        this.deceasedIndicator = deceasedIndicator;
        this.coreMatchIndicator = coreMatchIndicator;

    }

    public NinoAuthenticationToken(DriverAuthToken driverAuthToken) {
        this(driverAuthToken.getDln(), driverAuthToken.getPostCode(), null, driverAuthToken.getDob(), driverAuthToken.getSurname(), driverAuthToken.getForename1(), driverAuthToken.getForename2());
    }

    public String getNino() {
        return nino;
    }

    public void setNino(String nino) {
        this.nino = nino;
    }

    public String getDeceasedIndicator() {
        return deceasedIndicator;
    }

    public void setDeceasedIndicator(String deceasedIndicator) {
        this.deceasedIndicator = deceasedIndicator;
    }

    public String getCoreMatchIndicator() {
        return coreMatchIndicator;
    }

    public void setCoreMatchIndicator(String coreMatchIndicator) {
        this.coreMatchIndicator = coreMatchIndicator;
    }

    public boolean isNotDeceased() {
        return isNullOrNullLiteral(getDeceasedIndicator()) || getDeceasedIndicator().equalsIgnoreCase(no);
    }

    public boolean isCoreMatch() {
        return isNullOrNullLiteral(getCoreMatchIndicator()) || getCoreMatchIndicator().equalsIgnoreCase(yes);
    }

    public String getAddressMatchIndicator() {
        return addressMatchIndicator;
    }

    public void setAddressMatchIndicator(String addressMatchIndicator) {
        this.addressMatchIndicator = addressMatchIndicator;
    }

    private static boolean isNullOrNullLiteral(String indicator) {
        return indicator == null || indicator.equalsIgnoreCase("null");
{'fraction_non_alphanumeric': 0.07726199842643587, 'fraction_numerical': 0.0025177025963808025, 'mean_word_length': 3.312075983717775, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6545487', 'n_tokens_mistral': 1728, 'n_tokens_neox': 1725, 'n_words': 395}