<commit_before>
Setting up the TKP database
===========================

Before running download the skymodel files from somewhere and
make symlinks, something like this::

 $ ln -s /scratch/catfiles/NVSS-all_strip.csv catfiles/nvss/nvss.csv
 $ ln -s /scratch/catfiles/VLSS-all_strip.csv catfiles/vlss/vlss.csv
 $ ln -s /scratch/catfiles/WENSS-all_strip.csv catfiles/wenss/wenss.csv

then run the setup script to populate your database::
 
  $ ./setup


Upgrading your database
=======================

If you already have a database and want to upgrade to a later version
run the upgrade script::

  $ ./upgrade -h
<commit_msg>Missed one<commit_after>
Setting up the TKP database
===========================

Before running download the skymodel files from somewhere and
make symlinks, something like this::

 $ ln -s /scratch/catfiles/NVSS-all_strip.csv catfiles/nvss/nvss.csv
 $ ln -s /scratch/catfiles/VLSS-all_strip.csv catfiles/vlss/vlss.csv
 $ ln -s /scratch/catfiles/WENSS-all_strip.csv catfiles/wenss/wenss.csv

then run the setup script to populate your database::
 
  $ ./setup.sh


Upgrading your database
=======================

If you already have a database and want to upgrade to a later version
run the upgrade script::

  $ ./upgrade.py -h

{'fraction_non_alphanumeric': 0.1556791104050834, 'fraction_numerical': 0.0, 'mean_word_length': 4.163934426229508, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7277190', 'n_tokens_mistral': 415, 'n_tokens_neox': 384, 'n_words': 131}