<commit_before>/*******************************************************************************
 * Copyright (c) 2014 <NAME> (<EMAIL>).
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * <NAME> - initial idea and concept
 * 
 *******************************************************************************/
package org.qa82.analyzer.server.dto;

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

import org.qa82.analyzer.core.bean.InformationNeedDescription;
import org.qa82.analyzer.core.bean.ParametersTypes;

public class InformationNeedDescriptionDto {

	private InformationTypeDto exptectedInformationType;

	private List<InformationTypeDto> parametersTypes;

	/**
	 * Empty constructor for serialization.
	 */
	public InformationNeedDescriptionDto() {
		super();
	}

	public InformationNeedDescriptionDto(InformationTypeDto exptectedInformationType, List<InformationTypeDto> parametersTypes) {
		super();
		this.exptectedInformationType = exptectedInformationType;
		this.parametersTypes = parametersTypes;
	}

	public InformationNeedDescriptionDto(InformationNeedDescription need) {
		setExptectedInformationType(new InformationTypeDto(need.getExpectedInformationType()));
		List<InformationTypeDto> informationTypeDtos = new ArrayList<InformationTypeDto>();
		need.getParametersTypes().forEach((type) -> informationTypeDtos.add(new InformationTypeDto(type)));
		setParametersTypes(informationTypeDtos);
	}

	public InformationTypeDto getExptectedInformationType() {
		return exptectedInformationType;
	}

	public void setExptectedInformationType(InformationTypeDto exptectedInformationType) {
		this.exptectedInformationType = exptectedInformationType;
	}

	public List<InformationTypeDto> getParametersTypes() {
		return parametersTypes;
	}

	public void setParametersTypes(List<InformationTypeDto> parametersTypes) {
		this.parametersTypes = parametersTypes;
	}

	public InformationNeedDescription convertToInformationNeed() {
		ParametersTypes parametersTypes = new ParametersTypes();
		getParametersTypes().forEach((type) -> parametersTypes.add(type.convertToInformationType()));
		InformationNeedDescription informationNeed = new InformationNeedDescription(getExptectedInformationType().convertToInformationType(), parametersTypes);
		return informationNeed;
	}

}<commit_msg>Fixed typo in name of an instance variable and all dependent methods.<commit_after>/*******************************************************************************
 * Copyright (c) 2014 <NAME> (<EMAIL>).
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * <NAME> - initial idea and concept
 * 
 *******************************************************************************/
package org.qa82.analyzer.server.dto;

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

import org.qa82.analyzer.core.bean.InformationNeedDescription;
import org.qa82.analyzer.core.bean.ParametersTypes;

public class InformationNeedDescriptionDto {

	private InformationTypeDto expectedInformationType;

	private List<InformationTypeDto> parametersTypes;

	/**
	 * Empty constructor for serialization.
	 */
	public InformationNeedDescriptionDto() {
		super();
	}

	public InformationNeedDescriptionDto(InformationTypeDto expectedInformationType, List<InformationTypeDto> parametersTypes) {
		super();
		this.expectedInformationType = expectedInformationType;
		this.parametersTypes = parametersTypes;
	}

	public InformationNeedDescriptionDto(InformationNeedDescription need) {
		setExpectedInformationType(new InformationTypeDto(need.getExpectedInformationType()));
		List<InformationTypeDto> informationTypeDtos = new ArrayList<InformationTypeDto>();
		need.getParametersTypes().forEach((type) -> informationTypeDtos.add(new InformationTypeDto(type)));
		setParametersTypes(informationTypeDtos);
	}

	public InformationTypeDto getExpectedInformationType() {
		return expectedInformationType;
	}

	public void setExpectedInformationType(InformationTypeDto expectedInformationType) {
		this.expectedInformationType = expectedInformationType;
	}

	public List<InformationTypeDto> getParametersTypes() {
		return parametersTypes;
	}

	public void setParametersTypes(List<InformationTypeDto> parametersTypes) {
		this.parametersTypes = parametersTypes;
	}

	public InformationNeedDescription convertToInformationNeed() {
		ParametersTypes parametersTypes = new ParametersTypes();
		getParametersTypes().forEach((type) -> parametersTypes.add(type.convertToInformationType()));
		InformationNeedDescription informationNeed = new InformationNeedDescription(getExpectedInformationType().convertToInformationType(), parametersTypes);
		return informationNeed;
	}

}
{'fraction_non_alphanumeric': 0.14164361912287635, 'fraction_numerical': 0.005531410509679968, 'mean_word_length': 7.313628899835797, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6893173', 'n_tokens_mistral': 1285, 'n_tokens_neox': 1235, 'n_words': 269}