<commit_before>How to deploy locally


> pip3 install py-postgresql


Update version number in setup.py:
    version=<major>.<minor>.<maintenance>.<build>

First cd into project folder
> rm -rf build/ dist/
> pip3 uninstall picdb  # if version did not change
> pip3 install .




pyinstaller: create_app.sh

See also pyinstaller-hooks for patches required for tcl and tk

--> PicDB.spec:
- data files added
- hidden imports added
- hooks added


# run tests and coverage
paver testcov

# static analysis
paver analyze

# prepare distribution
paver sdist

# re-build documentaion
paver docs_rebuild

# build the app bundle
paver build_app

# remove app from dist folder
paver clean_app
<commit_msg>minor change<commit_after>How to deploy locally


> pip3 install py-postgresql


Update version number in setup.py:
    version=<major>.<minor>.<maintenance>.<build>

First cd into project folder
> rm -rf build/ dist/
> pip3 uninstall picdb  # if version did not change
> pip3 install .



pyinstaller: create_app.sh

See also pyinstaller-hooks for patches required for tcl and tk

--> PicDB.spec:
- data files added
- hidden imports added
- hooks added


# run tests and coverage
paver testcov

# static analysis
paver analyze

# prepare distribution
paver sdist

# re-build documentaion
paver docs_rebuild

# build the app bundle
paver build_app

# remove app from dist folder
paver clean_app

{'fraction_non_alphanumeric': 0.06465517241379311, 'fraction_numerical': 0.004310344827586207, 'mean_word_length': 3.92226148409894, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 21, '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': '2902511', 'n_tokens_mistral': 444, 'n_tokens_neox': 429, 'n_words': 169}