<commit_before>package com.taig.dna;

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

/**
 * A list of {@link Nucleotide Nucleotides} that allows to perform domain specific operations in order to analyze the
 * DNA sequence.
 */
public class Sequence extends ArrayList<Nucleotide>
{
	public Sequence()
	{
		super();
	}

	public Sequence( int i )
	{
		super( i );
	}

	public Sequence( Collection<? extends Nucleotide> nucleotides )
	{
		super( nucleotides );
	}

	/**
	 * Create a Sequence with a String resource (e.g. "ggaa").
	 *
	 * @param sequence The DNA sequence represented as String.
	 * @throws NullPointerException     If the given String sequence is <code>null</code>.
	 * @throws IllegalArgumentException If one of the characters in the given sequence can not be converted to a {@link
	 *                                  Nucleotide} object.
	 */
	public Sequence( String sequence )
	{
		for( char abbreviation : sequence.toCharArray() )
		{
			Nucleotide.newInstance( abbreviation );
		}
	}
}<commit_msg>Added toString method.<commit_after>package com.taig.dna;

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

/**
 * A list of {@link Nucleotide Nucleotides} that allows to perform domain specific operations in order to analyze the
 * DNA sequence.
 */
public class Sequence extends ArrayList<Nucleotide>
{
	public Sequence()
	{
		super();
	}

	public Sequence( int i )
	{
		super( i );
	}

	public Sequence( Collection<? extends Nucleotide> nucleotides )
	{
		super( nucleotides );
	}

	/**
	 * Create a Sequence with a String resource (e.g. "ggaa").
	 *
	 * @param sequence The DNA sequence represented as String.
	 * @throws NullPointerException     If the given String sequence is <code>null</code>.
	 * @throws IllegalArgumentException If one of the characters in the given sequence can not be converted to a {@link
	 *                                  Nucleotide} object.
	 */
	public Sequence( String sequence )
	{
		for( char abbreviation : sequence.toCharArray() )
		{
			Nucleotide.newInstance( abbreviation );
		}
	}

	/**
	 * Convert the Sequence to a String representation without spaces consisting of the {@link Nucleotide Nucleotides}
	 * abbreviations (uppercase).
	 *
	 * @return The Sequence's current state represented as String resource.
	 */
	@Override
	public String toString()
	{
		StringBuilder sequence = new StringBuilder();

		for( Nucleotide nucleotide : this )
		{
			sequence.append( nucleotide );
		}

		return sequence.toString();
	}
}
{'fraction_non_alphanumeric': 0.09556177528988405, 'fraction_numerical': 0.0, 'mean_word_length': 3.306368330464716, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2622164', 'n_tokens_mistral': 800, 'n_tokens_neox': 665, 'n_words': 252}