<commit_before>#!/bin/bash


# FUNCTIONS
function purge_ceph {
  docker stop $(docker ps -q)
  rm -rf /var/lib/ceph/*
  rm -rf /etc/ceph
}


# MAIN
purge_ceph
<commit_msg>Fix CI errors caused by container status commands<commit_after>#!/bin/bash


# FUNCTIONS
function purge_ceph {
  container_count=$(docker ps -q | wc -l)

  if [[ "${container_count}" -gt 0 ]]; then
    docker stop $(docker ps -q) || echo failed to stop containers
  fi

  rm -rf /var/lib/ceph/*
  rm -rf /etc/ceph
}


# MAIN
purge_ceph

{'fraction_non_alphanumeric': 0.1341222879684418, 'fraction_numerical': 0.0019723865877712033, 'mean_word_length': 3.064, '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': '903072', 'n_tokens_mistral': 213, 'n_tokens_neox': 191, 'n_words': 57}