<commit_before># pylint: disable=too-few-public-methods

from __future__ import print_function

from __future__ import absolute_import
import unittest
import tempfile
import logging
import shutil
import os.path
import json
from weakref import proxy as weakproxy

from invoke import Result

from sdcm.cluster import BaseNode
from sdcm.sct_events import start_events_device, stop_events_device
from sdcm.sct_events import EVENTS_PROCESSES
from sdcm.utils.distro import Distro

from unit_tests.dummy_remote import DummyRemote


class DummyNode(BaseNode):  # pylint: disable=abstract-method
    _database_log = None
    is_enterprise = False
    distro = Distro.CENTOS7

    def init(self):
        super().init()
        self.remoter.stop()

    @property
    def private_ip_address(self):
        return '127.0.0.1'

    @property
    def public_ip_address(self):
        return '127.0.0.1'

    def start_task_threads(self):
        # disable all background threads
        pass

    @property
    def database_log(self):
        return self._database_log

    @database_log.setter
    def database_log(self, x):
        self._database_log = x

    def set_hostname(self):
        pass


logging.basicConfig(format="%(asctime)s - %(levelname)-8s - %(name)-10s: %(message)s", level=logging.DEBUG)


class TestBaseNode(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        cls.temp_dir = tempfile.mkdtemp()<commit_msg>fix(unittests): stub BaseNode.wait_ssh_up() in tests<commit_after># pylint: disable=too-few-public-methods

from __future__ import print_function

from __future__ import absolute_import
import unittest
import tempfile
import logging
import shutil
import os.path
import json
from weakref import proxy as weakproxy

from invoke import Result

from sdcm.cluster import BaseNode
from sdcm.sct_events import start_events_device, stop_events_device
from sdcm.sct_events import EVENTS_PROCESSES
from sdcm.utils.distro import Distro

from unit_tests.dummy_remote import DummyRemote


class DummyNode(BaseNode):  # pylint: disable=abstract-method
    _database_log = None
    is_enterprise = False
    distro = Distro.CENTOS7

    def init(self):
        super().init()
        self.remoter.stop()

    @property
    def private_ip_address(self):
        return '127.0.0.1'

    @property
    def public_ip_address(self):
        return '127.0.0.1'

    def start_task_threads(self):
        # disable all background threads
        pass

    @property
    def database_log(self):
        return self._database_log

    @database_log.setter
    def database_log(self, x):
        self._database_log = x

    def set_hostname(self):
        pass

    def wait_ssh_up(self, verbose=True, timeout=500):
        pass


logging.basicConfig(format="%(asctime)s - %(levelname)-8s - %(name)-10s: %(message)s", level=logging.DEBUG)


class TestBaseNode(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        cls.temp_dir = tempfile.mkdtemp()
{'fraction_non_alphanumeric': 0.0831369909121508, 'fraction_numerical': 0.011780545270952542, 'mean_word_length': 3.5304878048780486, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '3596986', 'n_tokens_mistral': 974, 'n_tokens_neox': 927, 'n_words': 230}