<commit_before>添加数据库
sudo -u $USER createdb -O malauser maladb
createdb --username=dev --owner=dev --host=postgres1.cfnazcjcqque.rds.cn-north-1.amazonaws.com.cn dev

删除数据库
sudo -u $USER dropdb maladb
dropdb --username=dev --host=postgres1.cfnazcjcqque.rds.cn-north-1.amazonaws.com.cn dev

确保没有用户连上
http://dba.stackexchange.com/questions/11893/force-drop-db-while-others-may-be-connected

服务器上的代码目录
/opt/jenkins/mala/server/server

使用特定的settings来做单元测试
python manage.py test --settings=server.custom_settings.unittest_settings

pip包更新  
pip install -r pip_install.txt --upgrade<commit_msg>TWEB-20: reset doc file<commit_after>添加数据库
sudo -u $USER createdb -O malauser maladb
createdb --username=dev --owner=dev --host=postgres1.cfnazcjcqque.rds.cn-north-1.amazonaws.com.cn dev

删除数据库
sudo -u $USER dropdb maladb
dropdb --username=dev --host=postgres1.cfnazcjcqque.rds.cn-north-1.amazonaws.com.cn dev

确保没有用户连上
http://dba.stackexchange.com/questions/11893/force-drop-db-while-others-may-be-connected

服务器上的代码目录
/opt/jenkins/mala/server/server

使用特定的settings来做单元测试
python manage.py test --settings=server.custom_settings.unittest_settings

pip包更新
pip install -r pip_install.txt --upgrade
{'fraction_non_alphanumeric': 0.11844331641285956, 'fraction_numerical': 0.01692047377326565, 'mean_word_length': 4.770731707317073, 'pattern_counts': {'":': 0, '<': 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': '5179977', 'n_tokens_mistral': 517, 'n_tokens_neox': 517, 'n_words': 78}