<commit_before># -*- coding: utf-8 -*-
###############################################################################
# Name: __init__.py                                                           #
# Purpose: Jaluino Plugin                                                     #
# Author: <NAME> <<EMAIL>>                       #
# Copyright: (c) 2010                                                         #
# License: wxWindows License                                                  #
###############################################################################

# "templates" is the entry point, it's a dictionary containing
# declared templates. It looks like:
# template = {
#       "template_name1" : {"name"        : "template_name1",
#                            "description" : "some help text",
#                            "indent"      : True, # obey indentation ?,
#                             "template"    : "the actual template code",
#                            },
#       "template_name2" : {"name" ...},
# }

# For more about template, see http://code.google.com/p/editra-plugins/wiki/CodeTemplater

# This is a default template sets. Suggestions ? Join jallib or jaluino groups (or both).
templates = {
        "serial_hw" : {
            "name" : "serial_hw",
            "description" : "Configuration and include for serial_hardware library",
            "indent" : True,
            "templ" : """
--baudrateconst serial_hw_baudrate = #CUR115_200 -- or 19_200, 9_600, ...
include serial_hardware
serial_hw_init()
"""
        },
        "serial_sw" : {
            "name" : "serial_isw",
            "description" : "Configuration and include for serial_software library",
            "indent" : True,
            "templ" : """
--baudrate
const serial_sw_baudrate = #CUR9_600 -- or 19_200, 2_400, ...
-- RX/TX pins
alias serial_sw_tx_pin is pin_...
alias serial_sw_rx_pin is pin_B2
-- inverted levels (usually it is)
const serial_sw_invert = true<commit_msg>fix serial_software code snippet<commit_after># -*- coding: utf-8 -*-
###############################################################################
# Name: __init__.py                                                           #
# Purpose: Jaluino Plugin                                                     #
# Author: <NAME> <<EMAIL>>                       #
# Copyright: (c) 2010                                                         #
# License: wxWindows License                                                  #
###############################################################################

# "templates" is the entry point, it's a dictionary containing
# declared templates. It looks like:
# template = {
#       "template_name1" : {"name"        : "template_name1",
#                            "description" : "some help text",
#                            "indent"      : True, # obey indentation ?,
#                             "template"    : "the actual template code",
#                            },
#       "template_name2" : {"name" ...},
# }

# For more about template, see http://code.google.com/p/editra-plugins/wiki/CodeTemplater

# This is a default template sets. Suggestions ? Join jallib or jaluino groups (or both).
templates = {
        "serial_hw" : {
            "name" : "serial_hw",
            "description" : "Configuration and include for serial_hardware library",
            "indent" : True,
            "templ" : """
--baudrate
const serial_hw_baudrate = #CUR115_200 -- or 19_200, 9_600, ...
include serial_hardware
serial_hw_init()
"""
        },
        "serial_sw" : {
            "name" : "serial_sw",
            "description" : "Configuration and include for serial_software library",
            "indent" : True,
            "templ" : """
--baudrate
const serial_sw_baudrate = #CUR9_600 -- or 19_200, 2_400, ...
-- RX/TX pins
alias serial_sw_tx_pin is pin_XX
alias serial_sw_rx_pin is pin_YY
alias serial_sw_tx_pin_direction is pin_XX_direction
alias serial_sw_rx_pin_direction is pin_YY_direction
serial_sw_tx_pin_direction = output
serial_sw_rx_pin_direction = input
-- inverted levels (usually it is)
const serial_sw_invert = true
{'fraction_non_alphanumeric': 0.17573723327739152, 'fraction_numerical': 0.017501798129944856, 'mean_word_length': 1.803763440860215, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '727382', 'n_tokens_mistral': 1125, 'n_tokens_neox': 1052, 'n_words': 277}