<commit_before>""" Peripheral On Demand global define
"""

import periphondemand

#global
POD_CONFIG="~/.podrc"
POD_PATH = periphondemand.__path__[0]
PLATFORMPATH = "/platforms"
BUSPATH = "/busses/"
TEMPLATESPATH = "/templates"
TOOLCHAINPATH = "/toolchains"

SIMULATIONPATH = "/simulation"
SYNTHESISPATH = "/synthesis"
DRIVERSPATH = "/drivers"

# extension
TCLEXT = ".tcl"
ARCHIVEEXT = ".zip"
XMLEXT = ".xml"
VHDLEXT = ".vhd"
UCFEXT = ".ucf"
BITSTREAMEXT = ".bit"
PODSCRIPTEXT = ".pod"
HDLEXT = ["vhdl","vhd","v"]

#for components
LIBRARYPATH = "/library"
COMPONENTSPATH = "/components"
HDLDIR = "hdl"
DRIVERS_TEMPLATES_PATH = "/drivers_templates"

# for project
BINARYPROJECTPATH = "/binaries"
OBJSPATH = "/objs"
BINARY_PREFIX = "top_"
XILINX_BINARY_SUFFIX = ".bin"
ALTERA_BITSTREAM_SUFFIX = ".sof"
XILINX_BITSTREAM_SUFFIX = ".bit"

# template
HEADERTPL = "/headervhdl.tpl"

# color (see VT100 console manual for more details)
COLOR_DEBUG="\033[32;7m"   # White on green

COLOR_ERROR="\033[31;7m"           # white on red
COLOR_ERROR_MESSAGE="\033[31;1m"   # red on white
COLOR_WARNING="\033[32;7m"         # white on green 
COLOR_WARNING_MESSAGE="\033[32;1m" # green on white
COLOR_INFO="\033[34;7m"            # white on blue
COLOR_INFO_MESSAGE="\033[34;1m"    # blue on white
COLOR_SHELL="\033[33;3m"           # green on black
COLOR_END="\033[0m"

#For generated HDL
ONETAB = "    "
<commit_msg>src/bin/define.py: pep8<commit_after>""" Peripheral On Demand global define
"""

import periphondemand

#global
POD_CONFIG = "~/.podrc"
POD_PATH = periphondemand.__path__[0]
PLATFORMPATH = "/platforms"
BUSPATH = "/busses/"
TEMPLATESPATH = "/templates"
TOOLCHAINPATH = "/toolchains"

SIMULATIONPATH = "/simulation"
SYNTHESISPATH = "/synthesis"
DRIVERSPATH = "/drivers"

# extension
TCLEXT = ".tcl"
ARCHIVEEXT = ".zip"
XMLEXT = ".xml"
VHDLEXT = ".vhd"
UCFEXT = ".ucf"
BITSTREAMEXT = ".bit"
PODSCRIPTEXT = ".pod"
HDLEXT = ["vhdl","vhd","v"]

#for components
LIBRARYPATH = "/library"
COMPONENTSPATH = "/components"
HDLDIR = "hdl"
DRIVERS_TEMPLATES_PATH = "/drivers_templates"

# for project
BINARYPROJECTPATH = "/binaries"
OBJSPATH = "/objs"
BINARY_PREFIX = "top_"
XILINX_BINARY_SUFFIX = ".bin"
ALTERA_BITSTREAM_SUFFIX = ".sof"
XILINX_BITSTREAM_SUFFIX = ".bit"

# template
HEADERTPL = "/headervhdl.tpl"

# color (see VT100 console manual for more details)
COLOR_DEBUG = "\033[32;7m"  # White on green

COLOR_ERROR = "\033[31;7m"  # white on red
COLOR_ERROR_MESSAGE = "\033[31;1m"  # red on white
COLOR_WARNING = "\033[32;7m"  # white on green
COLOR_WARNING_MESSAGE = "\033[32;1m"  # green on white
COLOR_INFO = "\033[34;7m"  # white on blue
COLOR_INFO_MESSAGE = "\033[34;1m"  # blue on white
COLOR_SHELL = "\033[33;3m"  # green on black
COLOR_END = "\033[0m"

#For generated HDL
ONETAB = "    "

{'fraction_non_alphanumeric': 0.146900752418488, 'fraction_numerical': 0.040487280544607665, 'mean_word_length': 4.629032258064516, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '185609', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1105, 'n_words': 241}