<commit_before>#!/bin/bash

# Run a celery worker interactively with debug output

set -e

STOP_SERVICE="(sudo service celery stop || /bin/true)"
CHANGE_DIR="cd /opt/app/"
RUN_CELERY="envdir /etc/nyc-trees.d/env celery -A 'nyc_trees.celery:app' worker --autoreload -l debug"

vagrant ssh app -c "$STOP_SERVICE && $CHANGE_DIR && $RUN_CELERY"
<commit_msg>Fix file permission issues when running the celery worker interactively<commit_after>#!/bin/bash

# Run a celery worker interactively with debug output

set -e

STOP_SERVICE="(sudo service celery stop || /bin/true)"
CHANGE_DIR="cd /opt/app/"
RUN_CELERY="sudo -u celery envdir /etc/nyc-trees.d/env celery -A 'nyc_trees.celery:app' worker --autoreload -l debug"

vagrant ssh app -c "$STOP_SERVICE && $CHANGE_DIR && $RUN_CELERY"

{'fraction_non_alphanumeric': 0.12965340179717585, 'fraction_numerical': 0.0, 'mean_word_length': 4.735294117647059, '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': '3063007', 'n_tokens_mistral': 292, 'n_tokens_neox': 278, 'n_words': 80}