<commit_before>import numpy as np
import matplotlib.pyplot as plt
from scipy.signal import lfilter, lfilter_zi, firwin
from time import sleep
from pylsl import StreamInlet, resolve_byprop
import seaborn as sns
from threading import Thread
from .constants import VIEW_BUFFER, VIEW_SUBSAMPLE


def view(window, scale, refresh, figure):
    sns.set(style="whitegrid")

    figsize = np.int16(figure.split('x'))<commit_msg>Added missing constant imports to viewer.py<commit_after>import numpy as np
import matplotlib.pyplot as plt
from scipy.signal import lfilter, lfilter_zi, firwin
from time import sleep
from pylsl import StreamInlet, resolve_byprop
import seaborn as sns
from threading import Thread
from .constants import VIEW_BUFFER, VIEW_SUBSAMPLE, LSL_SCAN_TIMEOUT, LSL_CHUNK


def view(window, scale, refresh, figure):
    sns.set(style="whitegrid")

    figsize = np.int16(figure.split('x'))
{'fraction_non_alphanumeric': 0.07246376811594203, 'fraction_numerical': 0.004459308807134894, 'mean_word_length': 5.854961832061068, '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': '2177432', 'n_tokens_mistral': 288, 'n_tokens_neox': 285, 'n_words': 94}