<commit_before>#!/usr/bin/env python-sirius
"""."""

import pickle as _pickle


class BaseClass:
    """."""

    def __init__(self, params=None):
        """."""
        self.params = params
        self.data = dict()
        self.devices = dict()
        self.pvs = dict()

    @property
    def connected(self):
        """."""
        conn = all([dev.connected for dev in self.devices.items()])
        conn &= all([pv.connected for pv in self.pvs.items()])
        return conn
<commit_msg>BUG: Fix connected method for base class<commit_after>#!/usr/bin/env python-sirius
"""."""

import pickle as _pickle


class BaseClass:
    """."""

    def __init__(self, params=None):
        """."""
        self.params = params
        self.data = dict()
        self.devices = dict()
        self.pvs = dict()

    @property
    def connected(self):
        """."""
        conn = all([dev.connected for dev in self.devices.values()])
        conn &= all([pv.connected for pv in self.pvs.values()])
        return conn

{'fraction_non_alphanumeric': 0.16224188790560473, 'fraction_numerical': 0.0, 'mean_word_length': 2.1713395638629285, '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': '394047', 'n_tokens_mistral': 316, 'n_tokens_neox': 307, 'n_words': 78}