<commit_before>#!/usr/bin/env python3

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# See LICENSE for more details.
#
# Copyright (c) 2021 ScyllaDB

# pylint: disable=too-many-lines
import os
import re
import sys
import unittest
import logging
import glob
import time
import subprocess
import traceback
from concurrent.futures import ProcessPoolExecutor
from pathlib import Path
from functools import partial
from typing import Optional

import pytest
import click
import click_completion
from prettytable import PrettyTable

from sdcm.remote import LOCALRUNNER
from sdcm.results_analyze import PerformanceResultsAnalyzer, BaseResultsAnalyzer
from sdcm.sct_config import SCTConfiguration
from sdcm.sct_provision.common.layout import SCTProvisionLayout, create_sct_configuration
from sdcm.sct_runner import AwsSctRunner, GceSctRunner, AzureSctRunner, get_sct_runner, clean_sct_runners
from sdcm.utils.azure_utils import AzureService
from sdcm.utils.azure_region import AzureRegion, region_name_to_location
from sdcm.utils.cloud_monitor import cloud_report, cloud_qa_report
from sdcm.utils.common import (
    all_aws_regions,
    aws_tags_to_dict,
    clean_cloud_resources,
    clean_resources_according_post_behavior,
    format_timestamp,
    gce_meta_to_dict,
    get_all_gce_regions,
    get_branched_ami,
    get_branched_gce_images,
    get_builder_by_test_id,
    get_s3_scylla_repos_mapping,
    get_scylla_ami_versions,
    get_scylla_gce_images_versions,
    get_testrun_dir,
    list_clusters_eks,
    list_clusters_gke,
    list_elastic_ips_aws,
    list_instances_aws,
    list_instances_gce,
    list_logs_by_test_id,
    list_resources_docker,
    search_test_id_in_latest,
)
from sdcm.utils.jepsen import JepsenResults
from sdcm.utils.docker_utils import docker_hub_login
from sdcm.monitorstack import (restore_monitoring_stack, get_monitoring_stack_services,
                               kill_running_monitoring_stack_services)
from sdcm.cluster import TestConfig
from sdcm.utils.log import setup_stdout_logger
from sdcm.utils.aws_region import AwsRegion
from sdcm.utils.get_username import get_username
from sdcm.send_email import get_running_instances_for_email_report, read_email_data_from_file, build_reporter, \
    send_perf_email
from utils.build_system.create_test_release_jobs import JenkinsPipelines
from utils.get_supported_scylla_base_versions import UpgradeBaseVersion


SUPPORTED_CLOUDS = ("aws", "gce", "azure",)
DEFAULT_CLOUD = SUPPORTED_CLOUDS[0]<commit_msg>fix(sct.py): make pylint happy<commit_after>#!/usr/bin/env python3

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# See LICENSE for more details.
#
# Copyright (c) 2021 ScyllaDB

# pylint: disable=too-many-lines
import os
import re
import sys
import unittest
import logging
import glob
import time
import subprocess
import traceback
from concurrent.futures import ProcessPoolExecutor
from pathlib import Path
from functools import partial
from typing import Optional

import pytest
import click
import click_completion
from prettytable import PrettyTable

from sdcm.remote import LOCALRUNNER
from sdcm.results_analyze import PerformanceResultsAnalyzer, BaseResultsAnalyzer
from sdcm.sct_config import SCTConfiguration
from sdcm.sct_provision.common.layout import SCTProvisionLayout, create_sct_configuration
from sdcm.sct_runner import AwsSctRunner, GceSctRunner, AzureSctRunner, get_sct_runner, clean_sct_runners
from sdcm.utils.azure_utils import AzureService
from sdcm.utils.azure_region import AzureRegion, region_name_to_location
from sdcm.utils.cloud_monitor import cloud_report, cloud_qa_report
from sdcm.utils.common import (
    all_aws_regions,
    aws_tags_to_dict,
    clean_cloud_resources,
    clean_resources_according_post_behavior,
    format_timestamp,
    gce_meta_to_dict,
    get_all_gce_regions,
    get_branched_ami,
    get_branched_gce_images,
    get_builder_by_test_id,
    get_s3_scylla_repos_mapping,
    get_scylla_ami_versions,
    get_scylla_gce_images_versions,
    get_testrun_dir,
    list_clusters_eks,
    list_clusters_gke,
    list_elastic_ips_aws,
    list_instances_aws,
    list_instances_gce,
    list_logs_by_test_id,
    list_resources_docker,
    search_test_id_in_latest,
)
from sdcm.utils.jepsen import JepsenResults
from sdcm.utils.docker_utils import docker_hub_login
from sdcm.monitorstack import (restore_monitoring_stack, get_monitoring_stack_services,
                               kill_running_monitoring_stack_services)
from sdcm.cluster import TestConfig
from sdcm.utils.log import setup_stdout_logger
from sdcm.utils.aws_region import AwsRegion
from sdcm.utils.get_username import get_username
from sdcm.send_email import get_running_instances_for_email_report, read_email_data_from_file, build_reporter, \
    send_perf_email
from utils.build_system.create_test_release_jobs import JenkinsPipelines  # pylint: disable=no-name-in-module
from utils.get_supported_scylla_base_versions import UpgradeBaseVersion  # pylint: disable=no-name-in-module


SUPPORTED_CLOUDS = ("aws", "gce", "azure",)
DEFAULT_CLOUD = SUPPORTED_CLOUDS[0]
{'fraction_non_alphanumeric': 0.0452457901003572, 'fraction_numerical': 0.002721551284232012, 'mean_word_length': 5.6591166477916195, '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': '4676475', 'n_tokens_mistral': 1853, 'n_tokens_neox': 1813, 'n_words': 494}