<commit_before>###################################################################
#
# Copyright (c) 2013 Miing.org <<EMAIL>>
# 
# This software is licensed under the GNU Affero General Public 
# License version 3 (AGPLv3), as published by the Free Software 
# Foundation, and may be copied, distributed, and modified under 
# those terms.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# file LICENSE for more details.
#
###################################################################


from .postgresql import (
	pgsql_createuser,
	pgsql_dropdb,
	pgsql_createdb,
	pgsql_dropuser,
)
from .django import syncdb grantuser


def setup_pgsql_database():
	"""Setup PostgreSQL database"""
	pgsql_createuser()
	pgsql_createdb()
	syncdb()
	grantuser()
	
	
def drop_pgsql_database():
	"""Clean PostgreSQL database"""
	pgsql_dropdb()
	pgsql_dropuser()<commit_msg>Fix 'cant import from .django'<commit_after>###################################################################
#
# Copyright (c) 2013 Miing.org <<EMAIL>>
# 
# This software is licensed under the GNU Affero General Public 
# License version 3 (AGPLv3), as published by the Free Software 
# Foundation, and may be copied, distributed, and modified under 
# those terms.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# file LICENSE for more details.
#
###################################################################


from .postgresql import (
	pgsql_createuser,
	pgsql_dropdb,
	pgsql_createdb,
	pgsql_dropuser,
)
from .django import syncdb, grantuser


def setup_pgsql_database():
	"""Setup PostgreSQL database"""
	pgsql_createuser()
	pgsql_createdb()
	syncdb()
	grantuser()
	
	
def drop_pgsql_database():
	"""Clean PostgreSQL database"""
	pgsql_dropdb()
	pgsql_dropuser()
{'fraction_non_alphanumeric': 0.20452310717797442, 'fraction_numerical': 0.0058997050147492625, 'mean_word_length': 5.783333333333333, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6569625', 'n_tokens_mistral': 604, 'n_tokens_neox': 579, 'n_words': 205}