<commit_before>package ca.corefacility.bioinformatics.irida.ria.web.projects.dto;

import ca.corefacility.bioinformatics.irida.model.joins.impl.ProjectSampleJoin;
import ca.corefacility.bioinformatics.irida.ria.web.models.tables.AntTableItem;
import ca.corefacility.bioinformatics.irida.ria.web.projects.dto.samples.ProjectObject;
import ca.corefacility.bioinformatics.irida.ria.web.projects.dto.samples.SampleObject;

public class ProjectSampleTableItem extends AntTableItem {
	private String key;
	private SampleObject sample;
	private ProjectObject project;

	public ProjectSampleTableItem(ProjectSampleJoin join) {
		super(join.getId());
		this.sample = new SampleObject(join.getObject());
		this.project = new ProjectObject(join.getSubject());
	}

	public SampleObject getSample() {
		return sample;
	}

	public ProjectObject getProject() {
		return project;
	}

}<commit_msg>Added owner property<commit_after>package ca.corefacility.bioinformatics.irida.ria.web.projects.dto;

import ca.corefacility.bioinformatics.irida.model.joins.impl.ProjectSampleJoin;
import ca.corefacility.bioinformatics.irida.ria.web.models.tables.AntTableItem;
import ca.corefacility.bioinformatics.irida.ria.web.projects.dto.samples.ProjectObject;
import ca.corefacility.bioinformatics.irida.ria.web.projects.dto.samples.SampleObject;

public class ProjectSampleTableItem extends AntTableItem {
	private final Boolean owner;
	private final SampleObject sample;
	private final ProjectObject project;

	public ProjectSampleTableItem(ProjectSampleJoin join) {
		super(join.getId());
		this.owner = join.isOwner();
		this.sample = new SampleObject(join.getObject());
		this.project = new ProjectObject(join.getSubject());
	}

	public SampleObject getSample() {
		return sample;
	}

	public ProjectObject getProject() {
		return project;
	}

	public Boolean getOwner() {
		return owner;
	}
}
{'fraction_non_alphanumeric': 0.10112359550561797, 'fraction_numerical': 0.0, 'mean_word_length': 5.925925925925926, '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': '2376364', 'n_tokens_mistral': 597, 'n_tokens_neox': 558, 'n_words': 100}