<commit_before>package de.tudresden.inf.lat.tabula.table;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;

/**
 * This is the default implementation of a table map.
 *
 */
public class TableMapImpl implements TableMap {

	private final Map<String, Table> map = new TreeMap<>();

	/**
	 * Returns the identifiers of the stored tables.<commit_msg>Add copy constructor to implementation of table map<commit_after>package de.tudresden.inf.lat.tabula.table;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;

/**
 * This is the default implementation of a table map.
 *
 */
public class TableMapImpl implements TableMap {

	private final Map<String, Table> map = new TreeMap<>();

	/**
	 * Constructs a new table map.
	 */
	public TableMapImpl() {
	}

	/**
	 * Constructs a new table map using another one.
	 * 
	 * @param otherTableMap
	 *            other table map
	 */
	public TableMapImpl(TableMap otherTableMap) {
		otherTableMap.getTableIds().forEach(tableId -> put(tableId, otherTableMap.getTable(tableId)));
	}

	/**
	 * Returns the identifiers of the stored tables.
{'fraction_non_alphanumeric': 0.11006825938566553, 'fraction_numerical': 0.0, 'mean_word_length': 3.847107438016529, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '6650365', 'n_tokens_mistral': 364, 'n_tokens_neox': 344, 'n_words': 108}