<commit_before>package gov.nih.nci.cananolab.dto.particle.characterization;

import gov.nih.nci.cananolab.domain.common.DerivedBioAssayData;
import gov.nih.nci.cananolab.domain.common.DerivedDatum;
import gov.nih.nci.cananolab.dto.common.LabFileBean;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;

/**
 * View bean for DerivedBioAssayData
 * 
 * @author pansu
 * 
 */
public class DerivedBioAssayDataBean {
	private DerivedBioAssayData domainBioAssayData = new DerivedBioAssayData();

	private LabFileBean labFileBean = new LabFileBean();

	private List<DerivedDatum> datumList = new ArrayList<DerivedDatum>();

	public DerivedBioAssayDataBean() {

	}

	public DerivedBioAssayDataBean(DerivedBioAssayData derivedBioAssayData) {
		domainBioAssayData = derivedBioAssayData;
		labFileBean = new LabFileBean(domainBioAssayData.getLabFile());
		datumList.addAll(domainBioAssayData.getDerivedDatumCollection());
		// TODO sort the datum list
	}

	public DerivedBioAssayData getDomainBioAssayData() {
		return domainBioAssayData;
	}

	public LabFileBean getLabFileBean() {
		return labFileBean;
	}

	public List<DerivedDatum> getDatumList() {
		if (domainBioAssayData.getDerivedDatumCollection() != null) {<commit_msg>updated constructor to take care of nullpointer<commit_after>package gov.nih.nci.cananolab.dto.particle.characterization;

import gov.nih.nci.cananolab.domain.common.DerivedBioAssayData;
import gov.nih.nci.cananolab.domain.common.DerivedDatum;
import gov.nih.nci.cananolab.dto.common.LabFileBean;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;

/**
 * View bean for DerivedBioAssayData
 * 
 * @author pansu
 * 
 */
public class DerivedBioAssayDataBean {
	private DerivedBioAssayData domainBioAssayData = new DerivedBioAssayData();

	private LabFileBean labFileBean = new LabFileBean();

	private List<DerivedDatum> datumList = new ArrayList<DerivedDatum>();

	public DerivedBioAssayDataBean() {

	}

	public DerivedBioAssayDataBean(DerivedBioAssayData derivedBioAssayData) {
		domainBioAssayData = derivedBioAssayData;
		if (domainBioAssayData.getLabFile() != null) {
			labFileBean = new LabFileBean(domainBioAssayData.getLabFile());
		}
		if (domainBioAssayData.getDerivedDatumCollection() != null) {
			datumList.addAll(domainBioAssayData.getDerivedDatumCollection());
		}
		// TODO sort the datum list
	}

	public DerivedBioAssayData getDomainBioAssayData() {
		return domainBioAssayData;
	}

	public LabFileBean getLabFileBean() {
		return labFileBean;
	}

	public List<DerivedDatum> getDatumList() {
		if (domainBioAssayData.getDerivedDatumCollection() != null) {
{'fraction_non_alphanumeric': 0.09458948164964057, 'fraction_numerical': 0.0, 'mean_word_length': 5.939632545931759, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4267996', 'n_tokens_mistral': 990, 'n_tokens_neox': 875, 'n_words': 152}