<commit_before>#!/bin/sh
mkdir -p /var/lib/sharelatex/data
chown www-data:www-data /var/lib/sharelatex/data

mkdir -p /var/lib/sharelatex/data/user_files
chown www-data:www-data /var/lib/sharelatex/data/user_files

mkdir -p /var/lib/sharelatex/data/compiles
chown www-data:www-data /var/lib/sharelatex/data/compiles

mkdir -p /var/lib/sharelatex/data/cache
chown www-data:www-data /var/lib/sharelatex/data/cache

mkdir -p /var/lib/sharelatex/data/templates
chown www-data:www-data /var/lib/sharelatex/data/templates

mkdir -p /var/lib/sharelatex/tmp
chown www-data:www-data /var/lib/sharelatex/tmp

mkdir -p /var/lib/sharelatex/tmp/uploads
chown www-data:www-data /var/lib/sharelatex/tmp/uploads

mkdir -p /var/lib/sharelatex/tmp/dumpFolder
chown www-data:www-data /var/lib/sharelatex/tmp/dumpFolder

if [ ! -e "/var/lib/sharelatex/data/db.sqlite" ]; then
       touch /var/lib/sharelatex/data/db.sqlite
fi

chown www-data:www-data /var/lib/sharelatex/data/db.sqlite<commit_msg>added dump folder and template files fix to init script<commit_after>#!/bin/sh
mkdir -p /var/lib/sharelatex/data
chown www-data:www-data /var/lib/sharelatex/data

mkdir -p /var/lib/sharelatex/data/user_files
chown www-data:www-data /var/lib/sharelatex/data/user_files

mkdir -p /var/lib/sharelatex/data/compiles
chown www-data:www-data /var/lib/sharelatex/data/compiles

mkdir -p /var/lib/sharelatex/data/cache
chown www-data:www-data /var/lib/sharelatex/data/cache

mkdir -p /var/lib/sharelatex/data/template_files
chown www-data:www-data /var/lib/sharelatex/data/template_files

mkdir -p /var/lib/sharelatex/tmp/dumpFolder
chown www-data:www-data /var/lib/sharelatex/tmp/dumpFolder

mkdir -p /var/lib/sharelatex/tmp
chown www-data:www-data /var/lib/sharelatex/tmp

mkdir -p /var/lib/sharelatex/tmp/uploads
chown www-data:www-data /var/lib/sharelatex/tmp/uploads

mkdir -p /var/lib/sharelatex/tmp/dumpFolder
chown www-data:www-data /var/lib/sharelatex/tmp/dumpFolder

if [ ! -e "/var/lib/sharelatex/data/db.sqlite" ]; then
       touch /var/lib/sharelatex/data/db.sqlite
fi

chown www-data:www-data /var/lib/sharelatex/data/db.sqlite
{'fraction_non_alphanumeric': 0.14204545454545456, 'fraction_numerical': 0.0, 'mean_word_length': 3.9139534883720932, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 38, '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': '2491688', 'n_tokens_mistral': 868, 'n_tokens_neox': 844, 'n_words': 132}