<commit_before>package sg.ncl.adapter.deterlab.dtos.entities;

import org.apache.commons.lang3.RandomStringUtils;
import org.junit.Test;

import java.util.Random;

import static org.hamcrest.Matchers.*;
import static org.junit.Assert.assertThat;

/**
 * @author <NAME>
 */
public class DeterLabUserEntityTest {

    @Test
    public void testGetId() throws Exception {
        final DeterLabUserEntity deterLabUserEntity = new DeterLabUserEntity();

        assertThat(deterLabUserEntity.getId(), is(nullValue()));
    }

    @Test
    public void testSetId() throws Exception {
        final DeterLabUserEntity deterLabUserEntity = new DeterLabUserEntity();
        final String one = RandomStringUtils.randomAlphabetic(20);
        deterLabUserEntity.setId(one);

        assertThat(deterLabUserEntity.getId(), is(equalTo(one)));
    }

    @Test
    public void testGetNclId() throws Exception {
        final DeterLabUserEntity deterLabUserEntity = new DeterLabUserEntity();

        assertThat(deterLabUserEntity.getNclUserId(), is(nullValue()));<commit_msg>DEV-522 Clean up  seeding script<commit_after>package sg.ncl.adapter.deterlab.dtos.entities;

import org.apache.commons.lang3.RandomStringUtils;
import org.junit.Test;

import java.util.Random;

import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.nullValue;
import static org.junit.Assert.assertThat;

/**
 * @author <NAME>
 */
public class DeterLabUserEntityTest {

    @Test
    public void testGetId() throws Exception {
        final DeterLabUserEntity deterLabUserEntity = new DeterLabUserEntity();

        assertThat(deterLabUserEntity.getId(), is(nullValue()));
    }

    @Test
    public void testSetId() throws Exception {
        final DeterLabUserEntity deterLabUserEntity = new DeterLabUserEntity();
        final Long one = new Random().nextLong();
        deterLabUserEntity.setId(one);

        assertThat(deterLabUserEntity.getId(), is(equalTo(one)));
    }

    @Test
    public void testGetNclId() throws Exception {
        final DeterLabUserEntity deterLabUserEntity = new DeterLabUserEntity();

        assertThat(deterLabUserEntity.getNclUserId(), is(nullValue()));
{'fraction_non_alphanumeric': 0.10085547050877983, 'fraction_numerical': 0.0031517334533993696, 'mean_word_length': 4.073059360730594, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3961933', 'n_tokens_mistral': 688, 'n_tokens_neox': 657, 'n_words': 136}