<commit_before>#!/bin/bash

# Install services

## Sidekiq

mkdir -p /etc/service/sidekiq/log
touch /etc/service/sidekiq/down
cat > /etc/service/sidekiq/run <<EOF
#!/bin/sh
exec 2>&1
cd /home/app/code
exec chpst -u app bundle exec sidekiq -e $PASSENGER_APP_ENV
EOF
cat > /etc/service/sidekiq/log/run <<EOF
#!/bin/sh
exec logger -t sidekiq
EOF
chmod +x /etc/service/sidekiq/run /etc/service/sidekiq/log/run

## Clockwork

mkdir -p /etc/service/clockwork/log
touch /etc/service/clockwork/down
cat > /etc/service/clockwork/run <<EOF
#!/bin/sh
exec 2>&1
cd /home/app/code
exec chpst -u app bundle exec clockwork $CLOCKWORK_FILE
EOF
cat > /etc/service/clockwork/log/run <<EOF
#!/bin/sh
exec logger -t clockwork
EOF
chmod +x /etc/service/clockwork/run /etc/service/clockwork/log/run<commit_msg>Remove logger workflow entirly<commit_after>#!/bin/bash

# Install services

## Sidekiq

mkdir -p /etc/service/sidekiq
touch /etc/service/sidekiq/down
cat > /etc/service/sidekiq/run <<EOF
#!/bin/sh
exec 2>&1
cd /home/app/code
exec chpst -u app bundle exec sidekiq -e $PASSENGER_APP_ENV
EOF
chmod +x /etc/service/sidekiq/run

## Clockwork

mkdir -p /etc/service/clockwork
touch /etc/service/clockwork/down
cat > /etc/service/clockwork/run <<EOF
#!/bin/sh
exec 2>&1
cd /home/app/code
exec chpst -u app bundle exec clockwork $CLOCKWORK_FILE
EOF
chmod +x /etc/service/clockwork/run
{'fraction_non_alphanumeric': 0.13772893772893774, 'fraction_numerical': 0.005860805860805861, 'mean_word_length': 3.9136690647482015, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, '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': '5179551', 'n_tokens_mistral': 554, 'n_tokens_neox': 530, 'n_words': 134}