<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals

from ..libraries import __version__ as version
from ..libraries.project_check import ProjectCheck
from ..libraries.messages import MessageQueue

class Initialize(ProjectCheck):
    """
    Runs the init command to start working with a new board
    Initialize a new folder you need to know the board id
    and pass it as an argument in the class

    Initialize(board_id)

    The code will run in a new thread to avoid block the
    execution of the sublime text while platformio is working
    """
    def __init__(self):
        super(Initialize, self).__init__()

        messages = MessageQueue("_deviot_starting{0}", version)
        messages.start_print()
        
        self.dprint = messages.put
        self.derror = messages.print_once
        self.dstop = messages.stop_print

    def add_board(self):
        """New Board
        
        Adds a new board to the environments of platformio<commit_msg>Missing import<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals

from ..libraries import __version__ as version
from ..libraries.project_check import ProjectCheck
from ..libraries.messages import MessageQueue
from ..libraries.tools import save_sysetting

class Initialize(ProjectCheck):
    """
    Runs the init command to start working with a new board
    Initialize a new folder you need to know the board id
    and pass it as an argument in the class

    Initialize(board_id)

    The code will run in a new thread to avoid block the
    execution of the sublime text while platformio is working
    """
    def __init__(self):
        super(Initialize, self).__init__()

        messages = MessageQueue("_deviot_starting{0}", version)
        messages.start_print()
        
        self.dprint = messages.put
        self.derror = messages.print_once
        self.dstop = messages.stop_print

    def add_board(self):
        """New Board
        
        Adds a new board to the environments of platformio
{'fraction_non_alphanumeric': 0.06293402777777778, 'fraction_numerical': 0.001736111111111111, 'mean_word_length': 3.094138543516874, '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': '7286343', 'n_tokens_mistral': 614, 'n_tokens_neox': 603, 'n_words': 236}