<commit_before>import abc

class StatementsBaseAbstract(metaclass=abc.ABCMeta):
	@staticmethod
	@abc.abstractmethod
	def get_database_encoding(database):
		raise NotImplementedError('You must define get_server_encoding method')

	@abc.abstractmethod
	def get_server_version():
		raise NotImplementedError('You must define get_server_encoding method')

class PostgresqlStatements(StatementsBaseAbstract):

	def get_database_encoding(database):
		stmt = "SELECT pg_encoding_to_char(encoding) FROM pg_database WHERE datname='{}'".format(database)
		return stmt

	def get_server_version():
		stmt = "SELECT version()"
		return stmt

class StatementsChooser(object):
	for_ = {"postgresql+psycopg2": PostgresqlStatements}
<commit_msg>	modified:   db/statements.py<commit_after>import abc

class StatementsBaseAbstract(metaclass=abc.ABCMeta):
	@staticmethod
	@abc.abstractmethod
	def get_database_encoding(database):
		raise NotImplementedError('You must define get_server_encoding method')

	@staticmethod
	@abc.abstractmethod
	def get_server_version():
		raise NotImplementedError('You must define get_server_encoding method')

class PostgresqlStatements(StatementsBaseAbstract):

	def get_database_encoding(database):
		stmt = "SELECT pg_encoding_to_char(encoding) FROM pg_database WHERE datname='{}'".format(database)
		return stmt

	def get_server_version():
		stmt = "SELECT version()"
		return stmt

class StatementsChooser(object):
	for_ = {"postgresql+psycopg2": PostgresqlStatements}

{'fraction_non_alphanumeric': 0.08876933422999328, 'fraction_numerical': 0.0013449899125756557, 'mean_word_length': 7.701754385964913, 'pattern_counts': {'":': 2, '<': 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': '3660155', 'n_tokens_mistral': 473, 'n_tokens_neox': 451, 'n_words': 99}