<commit_before>import time
import math
import numpy
import platform, sys, select

from import ctrl.client import Controller
import ctrl.block as block
import ctrl.block.logger as logger

# initialize controller
HOST, PORT = "192.168.10.105", 9999
controller = Controller(HOST, PORT)
controller.add_sink('logger', 
                    logger.Logger(), 
                    ['clock','encoder1'])
controller.add_sink('printer', block.Printer(endln = '\r'), 
                    ['clock', 'motor1', 'encoder1'])
    <commit_msg>Made ctrl.bbb.encoder.Clock() a singleton<commit_after>import time
import math
import numpy
import platform, sys, select

from ctrl.client import Controller
import ctrl.block as block
import ctrl.block.logger as logger

# initialize controller
HOST, PORT = "192.168.10.105", 9999
controller = Controller(HOST, PORT)
controller.add_sink('logger', 
                    logger.Logger(), 
                    ['clock','encoder1'])
controller.add_sink('printer', block.Printer(endln = '\r'), 
                    ['clock', 'motor1', 'encoder1'])
    
{'fraction_non_alphanumeric': 0.1225444340505145, 'fraction_numerical': 0.03367633302151544, 'mean_word_length': 3.147286821705426, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2605718', 'n_tokens_mistral': 325, 'n_tokens_neox': 288, 'n_words': 84}