<commit_before>package ca.corefacility.bioinformatics.irida.ria.web.models.export;

import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;

import ca.corefacility.bioinformatics.irida.model.NcbiExportSubmission;
import ca.corefacility.bioinformatics.irida.ria.web.models.project.ProjectMinimalModel;
import ca.corefacility.bioinformatics.irida.ria.web.models.user.UserMinimalModel;

public class NcbiSubmissionModel {
	private final Long id;
	private final ProjectMinimalModel project;
	private final String state;
	private final UserMinimalModel submitter;
	private final Date createdDate;
	private final String organization;
	private final String bioProject;
	private final String ncbiNamespace;
	private final Date releaseDate;
	private final List<NcbiBioSampleFilesModel> bioSampleFiles;

	public NcbiSubmissionModel(NcbiExportSubmission submission) {
		this.id = submission.getId();
		this.project = new ProjectMinimalModel(submission.getProject());
		this.state = submission.getUploadState().name();
		this.submitter = new UserMinimalModel(submission.getSubmitter());
		this.createdDate = submission.getCreatedDate();
		this.organization = submission.getOrganization();
		this.bioProject = submission.getBioProjectId();
		this.ncbiNamespace = submission.getNcbiNamespace();
		this.releaseDate = submission.getReleaseDate();
		this.bioSampleFiles = submission.getBioSampleFiles()
				.stream()
				.map(NcbiBioSampleFilesModel::new)
				.collect(Collectors.toList());
	}

	public Long getId() {
		return id;
	}

	public ProjectMinimalModel getProject() {
		return project;
	}<commit_msg>Updated JavaDoc<commit_after>package ca.corefacility.bioinformatics.irida.ria.web.models.export;

import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;

import ca.corefacility.bioinformatics.irida.model.NcbiExportSubmission;
import ca.corefacility.bioinformatics.irida.ria.web.models.project.ProjectMinimalModel;
import ca.corefacility.bioinformatics.irida.ria.web.models.user.UserMinimalModel;

/**
 * Describes an NCBI SRA Submission for the UI
 */
public class NcbiSubmissionModel {
	private final Long id;
	private final ProjectMinimalModel project;
	private final String state;
	private final UserMinimalModel submitter;
	private final Date createdDate;
	private final String organization;
	private final String bioProject;
	private final String ncbiNamespace;
	private final Date releaseDate;
	private final List<NcbiBioSampleFilesModel> bioSampleFiles;

	public NcbiSubmissionModel(NcbiExportSubmission submission) {
		this.id = submission.getId();
		this.project = new ProjectMinimalModel(submission.getProject());
		this.state = submission.getUploadState().name();
		this.submitter = new UserMinimalModel(submission.getSubmitter());
		this.createdDate = submission.getCreatedDate();
		this.organization = submission.getOrganization();
		this.bioProject = submission.getBioProjectId();
		this.ncbiNamespace = submission.getNcbiNamespace();
		this.releaseDate = submission.getReleaseDate();
		this.bioSampleFiles = submission.getBioSampleFiles().stream().map(NcbiBioSampleFilesModel::new).collect(Collectors.toList());
	}

	public Long getId() {
		return id;
	}

	public ProjectMinimalModel getProject() {
		return project;
	}
{'fraction_non_alphanumeric': 0.0951219512195122, 'fraction_numerical': 0.0, 'mean_word_length': 6.1326086956521735, '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': '5330680', 'n_tokens_mistral': 1026, 'n_tokens_neox': 956, 'n_words': 196}