<commit_before>"""
Sample CloudBolt plug-in for a 'service action' that asks the user for a
parameter value and adds that parameter value to every server in this deployed
service.

Set the PARAM_NAME constant below to the name of the desired parameter.

When uploading this script, CB recognizes the 'param_value' below as an "Action
Input" (due to the double curly braces) and lets you set additional properties
on this such as a label, description, type, and constraints on its value.
You may want to set the label of that action input to match the label of the
parameter being set, but it's up to you.
"""

from common.methods import set_progress, create_decom_job_for_servers
from jobs.models import Job<commit_msg>Add instructions for creating as service action<commit_after>"""
Sample CloudBolt plug-in for a 'service action' that asks the user for a
parameter value and adds that parameter value to every server in this deployed
service.

Set the PARAM_NAME constant below to the name of the desired parameter.

To enable:
    Go to Admin > Service Actions
    Click "New Service Action" > CloudBolt Plug-in > "Add new cloudbolt plugin"
    Fill out the form and upload this Python script.

When uploading this script, CB recognizes the 'param_value' below as an "Action
Input" (due to the double curly braces) and lets you set additional properties
on this such as a label, description, type, and constraints on its value.
You may want to set the label of that action input to match the label of the
parameter being set, but it's up to you.
"""

from common.methods import set_progress, create_decom_job_for_servers
from jobs.models import Job
{'fraction_non_alphanumeric': 0.043609933373712904, 'fraction_numerical': 0.0, 'mean_word_length': 4.6, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '3959853', 'n_tokens_mistral': 426, 'n_tokens_neox': 416, 'n_words': 255}