<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import time
from koheron import command, connect

class LedBlinker(object):
    def __init__(self, client):
        self.client = client

    @command()
    def set_leds(self, led_value):
        pass

    @command()
    def get_forty_two(self):
        return self.client.recv_uint32()

if __name__=="__main__":
    host = os.getenv('HOST','192.168.1.100')
    client = connect(host, 'led_blinker')
    driver = LedBlinker(client)

    print(driver.get_forty_two())

    print('Start blinking...')
    for i in range(255):
        driver.set_led(i)
        time.sleep(0.01)<commit_msg>Fix Zedboard led blinker test.py<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import time
from koheron import command, connect

class LedBlinker(object):
    def __init__(self, client):
        self.client = client

    @command()
    def set_leds(self, led_value):
        pass

    @command()
    def get_forty_two(self):
        return self.client.recv_uint32()

if __name__=="__main__":
    host = os.getenv('HOST','192.168.1.100')
    client = connect(host, 'led_blinker')
    driver = LedBlinker(client)

    print(driver.get_forty_two())

    print('Start blinking...')
    for i in range(255):
        driver.set_leds(i)
        time.sleep(0.01)
{'fraction_non_alphanumeric': 0.1386806596701649, 'fraction_numerical': 0.02848575712143928, 'mean_word_length': 2.9497041420118344, 'pattern_counts': {'":': 2, '<': 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': '3730984', 'n_tokens_mistral': 493, 'n_tokens_neox': 459, 'n_words': 99}