<commit_before>import time
import PyQt5
import pyqtgraph as pg
import pyqtgraph.multiprocess as pgmp

from qcodes.instrument.base import Instrument
from qcodes.utils import validators as vals
from qcodes.instrument.parameter import ManualParameter


class InstrumentMonitor(Instrument):
    """
    Creates a pyqtgraph widget that displays
    """
    proc = None
    rpg = None

    def __init__(self, name, station,
                 figsize=(600, 600),
                 window_title='', theme=((60, 60, 60), 'w'),
                 show_window=True, remote=True, **kwargs):
        """
        Initializes the plotting window
        """
        super().__init__(name=name, server_name=None)
        self.station = station
        self.add_parameter('update_interval',
                           unit='s',
                           vals=vals.Numbers(min_value=0.001),
                           initial_value=5,
                           parameter_class=ManualParameter)<commit_msg> instrument monitor compatibility with latest qcodes<commit_after>import time
import PyQt5
import pyqtgraph as pg
import pyqtgraph.multiprocess as pgmp

from qcodes.instrument.base import Instrument
from qcodes.utils import validators as vals
from qcodes.instrument.parameter import ManualParameter


class InstrumentMonitor(Instrument):
    """
    Creates a pyqtgraph widget that displays
    """
    proc = None
    rpg = None

    def __init__(self, name, station,
                 figsize=(600, 600),
                 window_title='', theme=((60, 60, 60), 'w'),
                 show_window=True, remote=True, **kwargs):
        """
        Initializes the plotting window
        """
        super().__init__(name=name)
        self.station = station
        self.add_parameter('update_interval',
                           unit='s',
                           vals=vals.Numbers(min_value=0.001),
                           initial_value=5,
                           parameter_class=ManualParameter)
{'fraction_non_alphanumeric': 0.0873932697137117, 'fraction_numerical': 0.01808136614766449, 'mean_word_length': 2.1125, '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': '2892930', 'n_tokens_mistral': 549, 'n_tokens_neox': 509, 'n_words': 134}