<commit_before><commit_msg>Add periodic db update script for jenkins<commit_after>#!/bin/bash -ex
# Needs DEIS_CONTROLLER URL, DEIS_USERNAME, DEIS_PASSWORD,
# DEIS_PROFILE, and DEIS_APPLICATION environment variables.
#
# To set them go to Job -> Configure -> Build Environment -> Inject
# passwords and Inject env variables
#

deis login $DEIS_CONTROLLER --username=$DEIS_USERNAME --password=$<PASSWORD>
deis run -a $DEIS_APPLICATION -- '\
./manage.py rnasync; \
./manage.py cron update_ical_feeds; \
./manage.py update_product_details; \
./manage.py update_externalfiles; \
./manage.py update_security_advisories; \
./manage.py cron update_tweets;'
{'fraction_non_alphanumeric': 0.11556240369799692, 'fraction_numerical': 0.0, 'mean_word_length': 4.8558558558558556, 'pattern_counts': {'":': 0, '<': 4, '<?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': '3381560', 'n_tokens_mistral': 231, 'n_tokens_neox': 218, 'n_words': 56}