<commit_before>import argparse
import paramiko
import socket
import logging
import os

logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
logger.addHandler(logging.StreamHandler())

global host, username, password, copy_file

parser = argparse.ArgumentParser(description="Copy the openstack upgrade package from Fuel")
parser.add_argument('-i', '--host', help="IP address of the Fuel node",
                    action='store')
parser.add_argument('-u', '--username', help="User name for Fuel node login",
                    action='store')
parser.add_argument('-p', '--password', help="Password for Fuel node login",
                    action='store')

args = parser.parse_args()
host = args.host
username = args.username
password = <PASSWORD>

def get_mos_cluster_id():
    ssh = paramiko.SSHClient()
    ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
    try:
        ssh.connect(hostname=host, username=username, password=password, timeout=60.0)
        stdin, stdout, stderr = ssh.exec_command("fuel env | grep operational | awk '{print $1}'")
        cluster_id = stdout.read()
        if cluster_id is "":
            logger.error("Failed to obtain Mirantis Openstack Environment ID")
        else:
            logger.info("Successfully obtained Mirantis Openstack Environment ID")

        ssh.close()<commit_msg>Removed unused copy file parameter from the get cluster id python script<commit_after>import argparse
import paramiko
import socket
import logging
import os

logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
logger.addHandler(logging.StreamHandler())

global host, username, password

parser = argparse.ArgumentParser(description="Copy the openstack upgrade package from Fuel")
parser.add_argument('-i', '--host', help="IP address of the Fuel node",
                    action='store')
parser.add_argument('-u', '--username', help="User name for Fuel node login",
                    action='store')
parser.add_argument('-p', '--password', help="Password for Fuel node login",
                    action='store')

args = parser.parse_args()
host = args.host
username = args.username
password = <PASSWORD>

def get_mos_cluster_id():
    ssh = paramiko.SSHClient()
    ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
    try:
        ssh.connect(hostname=host, username=username, password=password, timeout=60.0)
        stdin, stdout, stderr = ssh.exec_command("fuel env | grep operational | awk '{print $1}'")
        cluster_id = stdout.read()
        if cluster_id is "":
            logger.error("Failed to obtain Mirantis Openstack Environment ID")
        else:
            logger.info("Successfully obtained Mirantis Openstack Environment ID")

        ssh.close()
{'fraction_non_alphanumeric': 0.11317321688500728, 'fraction_numerical': 0.002911208151382824, 'mean_word_length': 3.6046901172529315, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, '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': '6706387', 'n_tokens_mistral': 779, 'n_tokens_neox': 744, 'n_words': 211}