<commit_before>#!/bin/bash

cyberDojoHome=/var/www/cyber-dojo

echo "setting up the runner"
echo "..setting config/bootstrap_config.json"
configFilename=$cyberDojoHome/config/cyber-dojo.json
cp $cyberDojoHome/config/runner_bootstrap_config.json $configFilename
chmod 444 $configFilename
chown www-data:www-data $configFilename

$cyberDojoHome/lib/docker_runner_refresh.rb
$cyberDojoHome/lib/docker_machine_runner_refresh.rb

echo "setting up the exercises"
$cyberDojoHome/exercises/refresh_cache.rb

echo "setting up the languages"
$cyberDojoHome/languages/refresh_cache.rb<commit_msg>refactoring<commit_after>#!/bin/bash

cyberDojoHome=/var/www/cyber-dojo

echo "setting up the runner"
echo "..setting config/runner_bootstrap_config.json"
configFilename=$cyberDojoHome/config/cyber-dojo.json
chmod --silent 666 $configFilename
cp $cyberDojoHome/config/runner_bootstrap_config.json $configFilename
chmod 444 $configFilename
chown www-data:www-data $configFilename

$cyberDojoHome/lib/docker_runner_refresh.rb
$cyberDojoHome/lib/docker_machine_runner_refresh.rb

echo "setting up the exercises"
$cyberDojoHome/exercises/refresh_cache.rb

echo "setting up the languages"
$cyberDojoHome/languages/refresh_cache.rb
{'fraction_non_alphanumeric': 0.09504132231404959, 'fraction_numerical': 0.00743801652892562, 'mean_word_length': 7.3517241379310345, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '5285472', 'n_tokens_mistral': 434, 'n_tokens_neox': 414, 'n_words': 71}