<commit_before>package mpicbg.spim.data.sequence;

import static mpicbg.spim.data.sequence.XmlKeys.TIMEPOINTS_RANGE_FIRST;
import static mpicbg.spim.data.sequence.XmlKeys.TIMEPOINTS_PATTERN_TYPE;
import static mpicbg.spim.data.sequence.XmlKeys.TIMEPOINTS_RANGE_LAST;
import static mpicbg.spim.data.sequence.XmlKeys.TIMEPOINTS_RANGE_TYPE;
import static mpicbg.spim.data.sequence.XmlKeys.TIMEPOINTS_TAG;
import static mpicbg.spim.data.sequence.XmlKeys.TIMEPOINTS_TYPE_ATTRIBUTE_NAME;
import static mpicbg.spim.data.sequence.XmlKeys.TIMEPOINTS_PATTERN_STRING;

import java.text.ParseException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import mpicbg.spim.data.XmlHelpers;

import org.w3c.dom.Document;
import org.w3c.dom.Element;

/**
 * TODO
 *
 * @author <NAME> <<EMAIL>>
 */
public class XmlIoTimePoints extends XmlIoTimePointsAbstract< TimePoint >
{
	/*
	public static enum TimepointsDefType
	{
		RANGE( "range" );

		private final String name;

		public String getName()
		{
			return name;
		}

		private TimepointsDefType( final String name )
		{
			this.name = name;
		}
	}
	*/
	
	/**
	 * Load a list of {@link TimePoint}s from the given DOM element.
	 *
	 * @param element
	 *            a {@value XmlKeys#TIMEPOINTS_TAG} DOM element.
	 * @return list of timepoints loaded from xml.
	 */
	@Override
	public TimePoints< TimePoint > fromXml( final Element timepoints )
	{
		final String type = timepoints.getAttribute( TIMEPOINTS_TYPE_ATTRIBUTE_NAME );<commit_msg>removed commented stuff<commit_after>package mpicbg.spim.data.sequence;

import static mpicbg.spim.data.sequence.XmlKeys.TIMEPOINTS_RANGE_FIRST;
import static mpicbg.spim.data.sequence.XmlKeys.TIMEPOINTS_PATTERN_TYPE;
import static mpicbg.spim.data.sequence.XmlKeys.TIMEPOINTS_RANGE_LAST;
import static mpicbg.spim.data.sequence.XmlKeys.TIMEPOINTS_RANGE_TYPE;
import static mpicbg.spim.data.sequence.XmlKeys.TIMEPOINTS_TAG;
import static mpicbg.spim.data.sequence.XmlKeys.TIMEPOINTS_TYPE_ATTRIBUTE_NAME;
import static mpicbg.spim.data.sequence.XmlKeys.TIMEPOINTS_PATTERN_STRING;

import java.text.ParseException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import mpicbg.spim.data.XmlHelpers;

import org.w3c.dom.Document;
import org.w3c.dom.Element;

/**
 * TODO
 *
 * @author <NAME> <<EMAIL>>
 */
public class XmlIoTimePoints extends XmlIoTimePointsAbstract< TimePoint >
{	
	/**
	 * Load a list of {@link TimePoint}s from the given DOM element.
	 *
	 * @param element
	 *            a {@value XmlKeys#TIMEPOINTS_TAG} DOM element.
	 * @return list of timepoints loaded from xml.
	 */
	@Override
	public TimePoints< TimePoint > fromXml( final Element timepoints )
	{
		final String type = timepoints.getAttribute( TIMEPOINTS_TYPE_ATTRIBUTE_NAME );
{'fraction_non_alphanumeric': 0.09759598134194475, 'fraction_numerical': 0.0014352350197344816, 'mean_word_length': 4.808333333333334, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7057831', 'n_tokens_mistral': 965, 'n_tokens_neox': 955, 'n_words': 194}