<commit_before>package seq;

import java.util.*;
import java.io.*;

import org.biojava.bio.*;
import org.biojava.bio.seq.*;
import org.biojava.bio.seq.impl.*;
import org.biojava.bio.symbol.*;

public class SimpleAssemblyTest {
    public static void main(String[] args) throws Exception {
	Feature.Template temp = new Feature.Template();
	temp.type = "test";
	temp.source = "SATest";
	temp.annotation = Annotation.EMPTY_ANNOTATION;
	temp.location = new RangeLocation(2, 3);

	SymbolList dna1 = DNATools.createDNA("GATTACA");
	Sequence seq1 = new SimpleSequence(dna1, "seq1", "seq1",
					   Annotation.EMPTY_ANNOTATION);
	seq1.createFeature(temp);
	SymbolList dna2 = DNATools.createDNA("ACGA");
	Sequence seq2 = new SimpleSequence(dna2, "seq2", "seq2",
					   Annotation.EMPTY_ANNOTATION);
	Feature f = seq2.createFeature(temp);
	temp.location = new PointLocation(3);
	temp.type = "sub-test";
	f.createFeature(temp);
	
	Sequence contig = new SimpleAssembly(20, "contig", "contig");
	
	ComponentFeature.Template cft = new ComponentFeature.Template();
	cft.type = "fragment";
	cft.source = "SATest";
	cft.annotation = Annotation.EMPTY_ANNOTATION;
	
	cft.location = new RangeLocation(1, 1 + seq1.length() - 1);
	cft.componentSequence = seq1;
	cft.componentLocation = new RangeLocation(1, seq1.length());
	contig.createFeature(cft);

	cft.location = new RangeLocation(10, 10 + seq2.length() - 1);
	// cft.strand = StrandedFeature.NEGATIVE;
	cft.componentSequence = seq2;
	cft.componentLocation = new RangeLocation(1, seq2.length());
	contig.createFeature(cft);

	System.out.println(contig.seqString());
	printFeatures(contig);
    }

    public static void printFeatures(FeatureHolder fh) {
	printFeatures(fh, new PrintWriter(new OutputStreamWriter(System.out)), "");
    }
<commit_msg>Agressive testing of subList.<commit_after>package seq;

import java.util.*;
import java.io.*;

import org.biojava.bio.*;
import org.biojava.bio.seq.*;
import org.biojava.bio.seq.impl.*;
import org.biojava.bio.symbol.*;

public class SimpleAssemblyTest {
    public static void main(String[] args) throws Exception {
	Feature.Template temp = new Feature.Template();
	temp.type = "test";
	temp.source = "SATest";
	temp.annotation = Annotation.EMPTY_ANNOTATION;
	temp.location = new RangeLocation(2, 3);

	SymbolList dna1 = DNATools.createDNA("GATTACA");
	Sequence seq1 = new SimpleSequence(dna1, "seq1", "seq1",
					   Annotation.EMPTY_ANNOTATION);
	seq1.createFeature(temp);
	SymbolList dna2 = DNATools.createDNA("ACGA");
	Sequence seq2 = new SimpleSequence(dna2, "seq2", "seq2",
					   Annotation.EMPTY_ANNOTATION);
	Feature f = seq2.createFeature(temp);
	temp.location = new PointLocation(3);
	temp.type = "sub-test";
	f.createFeature(temp);
	
	Sequence contig = new SimpleAssembly(20, "contig", "contig");
	
	ComponentFeature.Template cft = new ComponentFeature.Template();
	cft.type = "fragment";
	cft.source = "SATest";
	cft.annotation = Annotation.EMPTY_ANNOTATION;
	cft.strand = StrandedFeature.POSITIVE;
	
	cft.location = new RangeLocation(1, 1 + seq1.length() - 1);
	cft.componentSequence = seq1;
	cft.componentLocation = new RangeLocation(1, seq1.length());
	contig.createFeature(cft);

	cft.location = new RangeLocation(10, 10 + seq2.length() - 1);
	cft.strand = StrandedFeature.NEGATIVE;
	cft.componentSequence = seq2;
	cft.componentLocation = new RangeLocation(1, seq2.length());
	contig.createFeature(cft);

	System.out.println(contig.seqString());
	System.out.println(contig.subList(1, 1).seqString());
	System.out.println(contig.subList(1, 5).seqString());
	System.out.println(contig.subList(3, 9).seqString());
	System.out.println(contig.subList(3, 11).seqString());
	System.out.println(contig.subList(10, 12).seqString());
	printFeatures(contig);
    }

    public static void printFeatures(FeatureHolder fh) {
	printFeatures(fh, new PrintWriter(new OutputStreamWriter(System.out)), "");
    }

{'fraction_non_alphanumeric': 0.14344367462150373, 'fraction_numerical': 0.02027200410572235, 'mean_word_length': 5.081123244929797, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6323797', 'n_tokens_mistral': 1389, 'n_tokens_neox': 1310, 'n_words': 261}