<commit_before>#!/bin/bash
# Post installation script. Optimization tasks for production environment.
# Check 'settings.py' file for properties:
#     ONLY_ONE_JS_FILE=True
#     ONLY_ONE_CSS_FILE=True
#     EZWEB_RELEASE='[release_number]'
# [release_number] can be obtained from SVN revision, executing 'svn info' or 'svnversion' commands
# 
# ---------------------------- lighttpd optimizations -------------------------
#
# - Enable "mod_expire"
# - Set expiration time for images and versioned files (js, css)
# 
# $HTTP["url"] =~ "(gif|png|jpg|ico|dat)$" {
#  expire.url = ( "" => "access 2 months" )
# }
#
# $HTTP["url"] =~ "(js|css)$" {
#  expire.url = ( "" => "access 14 days" )
# }
# -------------------------- End lighttpd optimizations -----------------------

set DJANGO_SETTINGS_MODULE=settings

python generate_ezweb_js_file.py
python generate_ezweb_css_file.py<commit_msg>refs #392. Unix compatibility of the script<commit_after>#!/bin/bash
# Post installation script. Optimization tasks for production environment.
# Check 'settings.py' file for properties:
#     ONLY_ONE_JS_FILE=True
#     ONLY_ONE_CSS_FILE=True
#     EZWEB_RELEASE='[release_number]'
# [release_number] can be obtained from SVN revision, executing 'svn info' or 'svnversion' commands
# 
# ---------------------------- lighttpd optimizations -------------------------
#
# - Enable "mod_expire"
# - Set expiration time for images and versioned files (js, css)
# 
# $HTTP["url"] =~ "(gif|png|jpg|ico|dat)$" {
#  expire.url = ( "" => "access 2 months" )
# }
#
# $HTTP["url"] =~ "(js|css)$" {
#  expire.url = ( "" => "access 14 days" )
# }
# -------------------------- End lighttpd optimizations -----------------------

export DJANGO_SETTINGS_MODULE=settings

python generate_ezweb_js_file.py
python generate_ezweb_css_file.py
{'fraction_non_alphanumeric': 0.23548922056384744, 'fraction_numerical': 0.004975124378109453, 'mean_word_length': 2.7551867219917012, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5971813', 'n_tokens_mistral': 589, 'n_tokens_neox': 564, 'n_words': 135}