<commit_before>import concurrent.futures as cf
import time
from PyQt5.QtCore import QObject, pyqtSignal
from emokit.emotiv import Emotiv
from . import virtual, headset

def run(read, dev, collect_time):
  signals, quality =  read(dev, collect_time)
  return (signals, quality)

class Device(QObject):
  collect_signal = pyqtSignal(bool, tuple)

  def __init__(self, collect_time, callback=None, is_virtual=False, parent=None):<commit_msg>Rename signals to sample in keyboard/input/device<commit_after>import concurrent.futures as cf
import time
from PyQt5.QtCore import QObject, pyqtSignal
from emokit.emotiv import Emotiv
from . import virtual, headset

def run(read, dev, collect_time):
  sample, quality =  read(dev, collect_time)
  return (sample, quality)

class Device(QObject):
  collect_signal = pyqtSignal(bool, tuple)

  def __init__(self, collect_time, callback=None, is_virtual=False, parent=None):
{'fraction_non_alphanumeric': 0.08791208791208792, 'fraction_numerical': 0.002197802197802198, 'mean_word_length': 6.23015873015873, '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': '347062', 'n_tokens_mistral': 294, 'n_tokens_neox': 288, 'n_words': 86}