<commit_before>#!/bin/sh

curl -kfsSL "$SMAUG_CONFIG" -o /etc/smaug.json && PORT_OAUTH=8001 PORT_CONFIG=8002 PORT_ADMIN=8003 node /opt/smaug/src/main.js -f /etc/smaug.json<commit_msg>automatically run db migrations before start<commit_after>#!/bin/sh

set -euf

curl -kfsSL "$SMAUG_CONFIG" -o /etc/smaug.json && cd /opt/smaug && npm run migrate && PORT_OAUTH=8001 PORT_CONFIG=8002 PORT_ADMIN=8003 node /opt/smaug/src/main.js -f /etc/smaug.json
{'fraction_non_alphanumeric': 0.14672686230248308, 'fraction_numerical': 0.05417607223476298, 'mean_word_length': 4.620253164556962, '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': '2718915', 'n_tokens_mistral': 198, 'n_tokens_neox': 187, 'n_words': 37}