<commit_before>#!/bin/bash -e

partition_number=$(ctx source node properties partition_number)
format_after_unmount=$(ctx source node properties format_after_unmount)

device_name=$(ctx source instance runtime-properties device_name)

if [ -z "${format_after_unmount}" ]; then
    ctx logger info "Removing disk partition"
    (echo d; echo ${partition_number}; echo w) | sudo fdisk ${device_name}
fi<commit_msg>CFY-1761 fix format script to access properties correctly<commit_after>#!/bin/bash -e

partition_number=$(ctx node properties partition_number)
format_after_unmount=$(ctx node properties format_after_unmount)

device_name=$(ctx instance runtime-properties device_name)

if [ -z "${format_after_unmount}" ]; then
    ctx logger info "Removing disk partition"
    (echo d; echo ${partition_number}; echo w) | sudo fdisk ${device_name}
fi
{'fraction_non_alphanumeric': 0.10271546635182999, 'fraction_numerical': 0.004722550177095631, 'mean_word_length': 6.310344827586207, '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': '2002273', 'n_tokens_mistral': 251, 'n_tokens_neox': 242, 'n_words': 77}