<commit_before>/**
 * 
 */
package gov.nih.nci.calab.dto.characterization.composition;

import gov.nih.nci.calab.domain.nano.characterization.Characterization;
import gov.nih.nci.calab.domain.nano.characterization.physical.composition.CarbonNanotubeComposition;

/**
 * This class represents properties of a Carbon Nanotube composition to be shown
 * in the view page.
 * 
 * @author zeng, pansu
 * 
 */
public class CarbonNanotubeBean extends CompositionBean {
	private String chirality;

	private String growthDiameter;

	private String averageLength;

	private String wallType;

	public CarbonNanotubeBean() {
		super();
	}

	public String getAverageLength() {
		return averageLength;
	}

	public void setAverageLength(String averageLength) {
		this.averageLength = averageLength;
	}

	public String getGrowthDiameter() {
		return growthDiameter;
	}

	public void setGrowthDiameter(String growthDiameter) {
		this.growthDiameter = growthDiameter;
	}

	public String getChirality() {
		return chirality;
	}

	public void setChirality(String chirality) {
		this.chirality = chirality;
	}

	public String getWallType() {
		return wallType;
	}

	public void setWallType(String wallType) {
		this.wallType = wallType;
	}

	public Characterization getDomainObj() {

		CarbonNanotubeComposition doComp = new CarbonNanotubeComposition();
		if (averageLength.length() > 0) {
			doComp.setAverageLength(new Float(averageLength));
		}
		if (chirality.length() > 0) {
			doComp.setChirality(new Float(chirality));
		}
		doComp.setSource(getCharacterizationSource());

		if (growthDiameter.length() > 0) {
			doComp.setGrowthDiameter(new Float(growthDiameter));
		}
		doComp.setWallType(wallType);
		doComp.setClassification(getCharacterizationClassification());
		doComp.setIdentificationName(getViewTitle());
		for (ComposingElementBean element : getComposingElements()) {
			doComp.getComposingElementCollection().add(element.getDomainObj());
		}
		return doComp;
	}
}<commit_msg>added setDescription<commit_after>/**
 * 
 */
package gov.nih.nci.calab.dto.characterization.composition;

import gov.nih.nci.calab.domain.nano.characterization.Characterization;
import gov.nih.nci.calab.domain.nano.characterization.physical.composition.CarbonNanotubeComposition;

/**
 * This class represents properties of a Carbon Nanotube composition to be shown
 * in the view page.
 * 
 * @author zeng, pansu
 * 
 */
public class CarbonNanotubeBean extends CompositionBean {
	private String chirality;

	private String growthDiameter;

	private String averageLength;

	private String wallType;

	public CarbonNanotubeBean() {
		super();
	}

	public String getAverageLength() {
		return averageLength;
	}

	public void setAverageLength(String averageLength) {
		this.averageLength = averageLength;
	}

	public String getGrowthDiameter() {
		return growthDiameter;
	}

	public void setGrowthDiameter(String growthDiameter) {
		this.growthDiameter = growthDiameter;
	}

	public String getChirality() {
		return chirality;
	}

	public void setChirality(String chirality) {
		this.chirality = chirality;
	}

	public String getWallType() {
		return wallType;
	}

	public void setWallType(String wallType) {
		this.wallType = wallType;
	}

	public Characterization getDomainObj() {

		CarbonNanotubeComposition doComp = new CarbonNanotubeComposition();
		if (averageLength.length() > 0) {
			doComp.setAverageLength(new Float(averageLength));
		}
		if (chirality.length() > 0) {
			doComp.setChirality(new Float(chirality));
		}
		
		if (growthDiameter.length() > 0) {
			doComp.setGrowthDiameter(new Float(growthDiameter));
		}
		doComp.setWallType(wallType);
		doComp.setSource(getCharacterizationSource());		
		doComp.setClassification(getCharacterizationClassification());
		doComp.setIdentificationName(getViewTitle());
		doComp.setDescription(getDescription());
		for (ComposingElementBean element : getComposingElements()) {
			doComp.getComposingElementCollection().add(element.getDomainObj());
		}
		return doComp;
	}
}
{'fraction_non_alphanumeric': 0.1005, 'fraction_numerical': 0.0015, 'mean_word_length': 5.080547112462006, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2279885', 'n_tokens_mistral': 1427, 'n_tokens_neox': 1237, 'n_words': 248}