<commit_before>#!/bin/bash -e

fs_mount_path=$(ctx source node properties fs_mount_path)
filesys=$(ctx source instance runtime-properties filesys)
fs_type=$(ctx source node properties fs_type)
ever_mounted=$(ctx source instance runtime-properties ever_mounted)

ctx logger info "Checking whether docker is installed"
which docker
docker_installed=$?

if [ ! -d ${fs_mount_path} ]; then
    sudo mkdir -p ${fs_mount_path}
elif [ ${docker_installed} -ge 0 ]; then
    ctx logger info "Stopping docker service"
    sudo service docker stop
    if [ -z ${ever_mounted} ]; then
        docker_files=/tmp/cfy_docker_files
        sudo mkdir -p ${docker_files}
        ctx logger info "Backing up existing docker files on ${fs_mount_path} to ${docker_files}"
        sudo cp -a ${fs_mount_path}/. ${docker_files}
    fi<commit_msg>CFY-2727 disable error for which docker test and enable after<commit_after>#!/bin/bash -e

fs_mount_path=$(ctx source node properties fs_mount_path)
filesys=$(ctx source instance runtime-properties filesys)
fs_type=$(ctx source node properties fs_type)
ever_mounted=$(ctx source instance runtime-properties ever_mounted)

ctx logger info "Checking whether docker is installed"
set +e
which docker
set -e
docker_installed=$?

if [ ! -d ${fs_mount_path} ]; then
    sudo mkdir -p ${fs_mount_path}
elif [ ${docker_installed} -ge 0 ]; then
    ctx logger info "Stopping docker service"
    sudo service docker stop
    if [ -z ${ever_mounted} ]; then
        docker_files=/tmp/cfy_docker_files
        sudo mkdir -p ${docker_files}
        ctx logger info "Backing up existing docker files on ${fs_mount_path} to ${docker_files}"
        sudo cp -a ${fs_mount_path}/. ${docker_files}
    fi
{'fraction_non_alphanumeric': 0.09883040935672514, 'fraction_numerical': 0.0035087719298245615, 'mean_word_length': 4.122754491017964, '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': '5006088', 'n_tokens_mistral': 561, 'n_tokens_neox': 507, 'n_words': 178}