<commit_before>import shlex
import sys

from ansible_module_runner import AnsibleExecutableGenerationFailed
from ansible_module_runner import AnsibleRunner

from tendrl.commons.event import Event
from tendrl.commons.message import ExceptionMessage, Message

ANSIBLE_MODULE_PATH = "core/commands/command.py"

SAFE_COMMAND_LIST = [
    "lsblk",
    "lscpu",
    "getenforce",
    "gluster",
    "ceph",
    "config_manager",
    "systemctl",
    "hwinfo",
    "ping"
]


class UnsupportedCommandException(Exception):
    def __init__(self, command):
        self.message = "Command: %s not supported by tendrl commons" % (
            command)


class Command(object):<commit_msg>lvm command for brick utilization<commit_after>import shlex
import sys

from ansible_module_runner import AnsibleExecutableGenerationFailed
from ansible_module_runner import AnsibleRunner

from tendrl.commons.event import Event
from tendrl.commons.message import ExceptionMessage, Message

ANSIBLE_MODULE_PATH = "core/commands/command.py"

SAFE_COMMAND_LIST = [
    "lsblk",
    "lscpu",
    "getenforce",
    "gluster",
    "ceph",
    "config_manager",
    "systemctl",
    "hwinfo",
    "ping",
    "lvm",
]


class UnsupportedCommandException(Exception):
    def __init__(self, command):
        self.message = "Command: %s not supported by tendrl commons" % (
            command)


class Command(object):
{'fraction_non_alphanumeric': 0.09221902017291066, 'fraction_numerical': 0.0, 'mean_word_length': 4.106617647058823, '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': '227038', 'n_tokens_mistral': 433, 'n_tokens_neox': 421, 'n_words': 102}