<commit_before>import pyb

#define our commands
LCD_COMMAND             =   0xFE
DISPLAY_ON              =   0x42 
DISPLAY_OFF             =   0x46
SET_BRIGHTNESS          =   0x99
SET_SAVE_BRIGHTNESS     =   0x98
SET_CONTRAST            =   0x50
SET_SAVE_CONTRAST       =   0x91
AUTOSCROLL_ON           =   0x51
AUTOSCROLL_OFF          =   0x52
CLEAR_DISPLAY           =   0x58
SET_SPLASH_SCREEN       =   0x40
SET_CURSOR_POS          =   0x47
GO_HOME                 =   0x48
CURSOR_BACK             =   0x4C
CURSOR_FORWARD          =   0x4D
UNDERLINE_CURSOR_ON     =   0x4A
UNDERLINE_CURSOR_OFF    =   0x54
BLOCK_CURSOR_ON         =   0x53
BLOCK_CURSOR_OFF        =   0x54
SET_BACKLIGHT_COLOR     =   0xD0
SET_LCD_SIZE            =   0xD1
CREATE_CUSTOM_CHAR      =   0x4E
SAVE_CUSTOM_CHAR        =   0XC1<commit_msg>Added copyright notice<commit_after># Copyright 2016 <NAME> (<EMAIL>)
#
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.

#This is a simple class for interfacing an Adafruit serial LCD with a pyboard.

import pyb

#define our LCD commands
LCD_COMMAND             =   0xFE
DISPLAY_ON              =   0x42 
DISPLAY_OFF             =   0x46
SET_BRIGHTNESS          =   0x99
SET_SAVE_BRIGHTNESS     =   0x98
SET_CONTRAST            =   0x50
SET_SAVE_CONTRAST       =   0x91
AUTOSCROLL_ON           =   0x51
AUTOSCROLL_OFF          =   0x52
CLEAR_DISPLAY           =   0x58
SET_SPLASH_SCREEN       =   0x40
SET_CURSOR_POS          =   0x47
GO_HOME                 =   0x48
CURSOR_BACK             =   0x4C
CURSOR_FORWARD          =   0x4D
UNDERLINE_CURSOR_ON     =   0x4A
UNDERLINE_CURSOR_OFF    =   0x54
BLOCK_CURSOR_ON         =   0x53
BLOCK_CURSOR_OFF        =   0x54
SET_BACKLIGHT_COLOR     =   0xD0
SET_LCD_SIZE            =   0xD1
CREATE_CUSTOM_CHAR      =   0x4E
SAVE_CUSTOM_CHAR        =   0XC1
{'fraction_non_alphanumeric': 0.04161464835622139, 'fraction_numerical': 0.05201831044527674, 'mean_word_length': 2.054637865311309, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '4346850', 'n_tokens_mistral': 887, 'n_tokens_neox': 844, 'n_words': 222}