<commit_before>package de.st_ddt.crazyutil.databases;

import java.util.Collection;

public interface Database<S extends DatabaseEntry>
{

	public DatabaseType getType();

	public Class<S> getEntryClazz();

	public String getTableName();

	public String[] getColumnNames();

	public void checkTable();

	public boolean isStaticDatabase();

	public boolean hasEntry(String key);

	public S getEntry(String key);

	public Collection<S> getAllEntries();

	public S loadEntry(String key);

	public void loadAllEntries();

	public void saveDatabase();

	public void save(S entry);

	public void saveAll(Collection<S> entries);

	public boolean deleteEntry(String key);
	
	public void deleteAllEntries();
}<commit_msg>CrazyAPI: allow databases to throw errors in checkTable (for mysql databases)<commit_after>package de.st_ddt.crazyutil.databases;

import java.util.Collection;

public interface Database<S extends DatabaseEntry>
{

	public DatabaseType getType();

	public Class<S> getEntryClazz();

	public String getTableName();

	public String[] getColumnNames();

	public void checkTable() throws Exception;

	public boolean isStaticDatabase();

	public boolean hasEntry(String key);

	public S getEntry(String key);

	public Collection<S> getAllEntries();

	public S loadEntry(String key);

	public void loadAllEntries();

	public void saveDatabase();

	public void save(S entry);

	public void saveAll(Collection<S> entries);

	public boolean deleteEntry(String key);

	public void deleteAllEntries();
}
{'fraction_non_alphanumeric': 0.09507978723404255, 'fraction_numerical': 0.0, 'mean_word_length': 5.840909090909091, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4732323', 'n_tokens_mistral': 445, 'n_tokens_neox': 407, 'n_words': 138}