// Path: sequence-miner/src/main/java/sequencemining/sequence/Sequence.java
// public class Sequence extends AbstractSequence implements Serializable {
// 	private static final long serialVersionUID = -2766830126344921771L;
// 
// 	/**
// 	 * Constructor
// 	 */
// 	public Sequence() {
// 		this.items = new ArrayList<>();
// 	}
// 
// 	/**
// 	 * Shallow Copy Constructor
// 	 *
// 	 * @param seq
// 	 *            sequence to shallow copy
// 	 */
// 	public Sequence(final Sequence seq) {
// 		this.items = seq.items;
// 	}
// 
// 	/**
// 	 * Constructor
// 	 *
// 	 * @param items
// 	 *            a list of items that should be added to the new sequence
// 	 */
// 	public Sequence(final List<Integer> items) {
// 		this.items = new ArrayList<>(items);
// 	}
// 
// 	/**
// 	 * Constructor
// 	 *
// 	 * @param items
// 	 *            an array of items that should be added to the new sequence
// 	 */
// 	public Sequence(final Integer... items) {
// 		this.items = new ArrayList<>(Arrays.asList(items));
// 	}
// 
// 	/**
// 	 * Join Constructor
// 	 *
// 	 * @param seqs
// 	 *            two sequences that should be joined
// 	 */
// 	public Sequence(final Sequence seq1, final Sequence seq2) {
// 		this.items = new ArrayList<>(seq1.items);
// 		this.items.addAll(seq2.items);
// 	}
// 
// }
// 
// Path: sequence-miner/src/main/java/sequencemining/transaction/TransactionList.java
// public class TransactionList extends TransactionDatabase {
// 
// 	private final List<Transaction> transactions;
// 
// 	public TransactionList(final List<Transaction> transactions) {
// 		this.transactions = transactions;
// 	}
// 
// 	@Override
// 	public List<Transaction> getTransactionList() {
// 		return transactions;
// 	}
// 
// 	// @Override
// 	// public JavaRDD<Transaction> getTransactionRDD() {
// 	// throw new UnsupportedOperationException("This is a list is not a RDD!!");
// 	// }
// 
// 	@Override
// 	public int size() {
// 		return transactions.size();
// 	}
// 
// 	// @Override
// 	// public void updateTransactionCache(
// 	// final JavaRDD<Transaction> updatedTransactions) {
// 	// throw new UnsupportedOperationException("This is a list is not a RDD!!");
// 	// }
// 
// }


import static org.junit.Assert.assertEquals;
import java.io.File;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import java.util.HashSet;
import org.junit.Test;
import sequencemining.sequence.Sequence;
import sequencemining.transaction.TransactionList;
package sequencemining.main;





public class SupportCountingTest {

	@Test
	public void testSupportCounting() throws IOException {

		final File input = getTestFile("TOY.txt"); // database
// Path: sequence-miner/src/main/java/sequencemining/sequence/Sequence.java
// public class Sequence extends AbstractSequence implements Serializable {
// 	private static final long serialVersionUID = -2766830126344921771L;
// 
// 	/**
// 	 * Constructor
// 	 */
// 	public Sequence() {
// 		this.items = new ArrayList<>();
// 	}
// 
// 	/**
// 	 * Shallow Copy Constructor
// 	 *
// 	 * @param seq
// 	 *            sequence to shallow copy
// 	 */
// 	public Sequence(final Sequence seq) {
// 		this.items = seq.items;
// 	}
// 
// 	/**
// 	 * Constructor
// 	 *
// 	 * @param items
// 	 *            a list of items that should be added to the new sequence
// 	 */
// 	public Sequence(final List<Integer> items) {
// 		this.items = new ArrayList<>(items);
// 	}
// 
// 	/**
// 	 * Constructor
// 	 *
// 	 * @param items
// 	 *            an array of items that should be added to the new sequence
// 	 */
// 	public Sequence(final Integer... items) {
// 		this.items = new ArrayList<>(Arrays.asList(items));
// 	}
// 
// 	/**
// 	 * Join Constructor
// 	 *
// 	 * @param seqs
// 	 *            two sequences that should be joined
// 	 */
// 	public Sequence(final Sequence seq1, final Sequence seq2) {
// 		this.items = new ArrayList<>(seq1.items);
// 		this.items.addAll(seq2.items);
// 	}
// 
// }
// 
// Path: sequence-miner/src/main/java/sequencemining/transaction/TransactionList.java
// public class TransactionList extends TransactionDatabase {
// 
// 	private final List<Transaction> transactions;
// 
// 	public TransactionList(final List<Transaction> transactions) {
// 		this.transactions = transactions;
// 	}
// 
// 	@Override
// 	public List<Transaction> getTransactionList() {
// 		return transactions;
// 	}
// 
// 	// @Override
// 	// public JavaRDD<Transaction> getTransactionRDD() {
// 	// throw new UnsupportedOperationException("This is a list is not a RDD!!");
// 	// }
// 
// 	@Override
// 	public int size() {
// 		return transactions.size();
// 	}
// 
// 	// @Override
// 	// public void updateTransactionCache(
// 	// final JavaRDD<Transaction> updatedTransactions) {
// 	// throw new UnsupportedOperationException("This is a list is not a RDD!!");
// 	// }
// 
// }


// Path: sequence-miner/src/test/java/sequencemining/main/SupportCountingTest.java
import static org.junit.Assert.assertEquals;
import java.io.File;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import java.util.HashSet;
import org.junit.Test;
import sequencemining.sequence.Sequence;
import sequencemining.transaction.TransactionList;

package sequencemining.main;





public class SupportCountingTest {

	@Test
	public void testSupportCounting() throws IOException {

		final File input = getTestFile("TOY.txt"); // database
		final TransactionList transactions = SequenceMining.readTransactions(input);