<commit_before>/*
 * @DynamicFormList.java 1.0 Feb 21, 2013 Sistema Integral de Gestion
 * Hospitalaria
 */
package py.una.med.base.dynamic.forms;

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

/**
 * Formulario dinámico base, es un wrapper de {@link List}, para mantener una
 * lista de {@link Field}
 * 
 * @author <NAME>
 * @since 1.0
 * @version 1.0 Feb 21, 2013
 * 
 */
public class DynamicFormList {

	private List<Field> fields;

	public DynamicFormList() {

		fields = new ArrayList<Field>();
	}

	public void enable() {

		for (Field f : fields) {
			f.enable();
		}
	}

	public void disable() {

		for (Field f : fields) {
			f.disable();
		}

	}

	public void add(Field ... field) {

		for (Field f : field) {
			fields.add(f);
		}
	}

	/**
	 * @return fields
	 */
	public List<Field> getFields() {

		return fields;
	}

	/**
	 * @param fields
	 *            fields para setear
	 */
	public void setFields(List<Field> fields) {

		this.fields = fields;
	}
}<commit_msg>Agrega metodos delegados al DynamicFormList.<commit_after>/*
 * @DynamicFormList.java 1.0 Feb 21, 2013 Sistema Integral de Gestion
 * Hospitalaria
 */
package py.una.med.base.dynamic.forms;

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

/**
 * Formulario dinámico base, es un wrapper de {@link List}, para mantener una
 * lista de {@link Field}
 * 
 * @author <NAME>
 * @since 1.0
 * @version 1.0 Feb 21, 2013
 * 
 */
public class DynamicFormList {

	private List<Field> fields;

	public DynamicFormList() {

		fields = new ArrayList<Field>();
	}

	public void enable() {

		for (Field f : fields) {
			f.enable();
		}
	}

	public void disable() {

		for (Field f : fields) {
			f.disable();
		}

	}

	public void add(Field ... field) {

		for (Field f : field) {
			fields.add(f);
		}
	}

	/**
	 * @return fields
	 */
	public List<Field> getFields() {

		return fields;
	}

	/**
	 * @param fields
	 *            fields para setear
	 */
	public void setFields(List<Field> fields) {

		this.fields = fields;
	}

	public boolean addAll(Collection<? extends Field> arg0) {

		return fields.addAll(arg0);
	}

	public void clear() {

		fields.clear();
	}

	public boolean isEmpty() {

		return fields.isEmpty();
	}

}
{'fraction_non_alphanumeric': 0.14017017465293327, 'fraction_numerical': 0.01701746529332736, 'mean_word_length': 2.885217391304348, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '1218144', 'n_tokens_mistral': 871, 'n_tokens_neox': 755, 'n_words': 215}