<commit_before>#!/usr/bin/env python3

"""
Copyright 2018 <NAME>.  See LICENSE for details.

Launches all the state machines to run the HeyMac network
"""


import asyncio

import mac_ahsm
import phy_gpio_ahsm, phy_spi_ahsm, phy_uart_ahsm


if __name__ == "__main__":
    # Instantiate state machines
    gpioAhsm = phy_gpio_ahsm.GpioAhsm(phy_gpio_ahsm.GpioAhsm.initial)
    spiAhsm = phy_spi_ahsm.SX127xSpiAhsm(phy_spi_ahsm.SX127xSpiAhsm.initial)
    uartAhsm = phy_uart_ahsm.UartAhsm(phy_uart_ahsm.UartAhsm.initial)
    macAhsm = mac_ahsm.HeyMacAhsm(mac_ahsm.HeyMacAhsm.initial)

    # Start state machines
    spiAhsm.start(10)
    gpioAhsm.start(20)
    uartAhsm.start(30)
    macAhsm.start(50)

    # Start event loop
    loop = asyncio.get_event_loop()
    loop.run_forever()
    loop.close()<commit_msg>Fix: changed module name but forgot to change users of module<commit_after>#!/usr/bin/env python3

"""
Copyright 2018 <NAME>.  See LICENSE for details.

Launches all the state machines to run the HeyMac network
"""


import asyncio

import mac_tdma_ahsm
import phy_gpio_ahsm, phy_spi_ahsm, phy_uart_ahsm


if __name__ == "__main__":
    # Instantiate state machines
    gpioAhsm = phy_gpio_ahsm.GpioAhsm(phy_gpio_ahsm.GpioAhsm.initial)
    spiAhsm = phy_spi_ahsm.SX127xSpiAhsm(phy_spi_ahsm.SX127xSpiAhsm.initial)
    uartAhsm = phy_uart_ahsm.UartAhsm(phy_uart_ahsm.UartAhsm.initial)
    macAhsm = mac_tdma_ahsm.HeyMacAhsm(mac_tdma_ahsm.HeyMacAhsm.initial)

    # Start state machines
    spiAhsm.start(10)
    gpioAhsm.start(20)
    uartAhsm.start(30)
    macAhsm.start(50)

    # Start event loop
    loop = asyncio.get_event_loop()
    loop.run_forever()
    loop.close()
{'fraction_non_alphanumeric': 0.0885323826500297, 'fraction_numerical': 0.0225787284610814, 'mean_word_length': 4.246105919003115, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, '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': '7269435', 'n_tokens_mistral': 705, 'n_tokens_neox': 652, 'n_words': 119}