<commit_before>#!/bin/bash
if [ -z $1 ]
then
  echo "No OSD # specified."
  echo "USAGE: ./osd_remove.sh 123"
  exit
fi
hostname="$(ceph osd find $1 | awk -F\" '$2 ~ /host/ {print $4}')"
if [ $hostname == $HOSTNAME ]
then
  sudo systemctl stop ceph-osd@$1
  sudo umount /var/lib/ceph/osd/ceph-$1
else
  ssh -t $hostname "sudo systemctl stop ceph-osd@$1"
  ssh -t $hostname "sudo umount /var/lib/ceph/osd/ceph-$1"
fi
ceph osd out $1
ceph osd crush remove osd.$1
ceph auth del osd.$1
ceph osd rm $1
<commit_msg>Update osd_remove.sh<commit_after>#!/bin/bash
if [ -z $1 ]
then
  echo "No OSD # specified."
  echo "USAGE: ./osd_remove.sh 123"
  exit
fi
hostname="$(ceph osd find $1 | awk -F\" '$2 ~ /host/ {print $4}')"
if [ $hostname == $HOSTNAME ]
then
  sudo systemctl stop ceph-osd@$1
  sudo umount /var/lib/ceph/osd/ceph-$1
  sudo rm -r /var/lib/ceph/osd/ceph-$1
else
  ssh -t $hostname "sudo systemctl stop ceph-osd@$1"
  ssh -t $hostname "sudo umount /var/lib/ceph/osd/ceph-$1"
  ssh -t $hostname "sudo rm -r /var/lib/ceph/osd/ceph-$1"
fi
ceph osd out $1
ceph osd crush remove osd.$1
ceph auth del osd.$1
ceph osd rm $1

{'fraction_non_alphanumeric': 0.16310160427807488, 'fraction_numerical': 0.0285204991087344, 'mean_word_length': 3.143911439114391, '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': '4010507', 'n_tokens_mistral': 517, 'n_tokens_neox': 498, 'n_words': 148}