<commit_before>var exec = require('child_process').exec;
var pitft = require("pitft");
var fb = pitft("/dev/fb0", true);
var fs = require('fs');

var oled = {};

var currentStatus = "";
var chargeStatus = null;
var batteryPercentage = null;

oled.items = [];
oled.selected = 0;
oled.visible = false;
oled.blocked = false;

var oledSize = fb.size();
oled.width = oledSize.width;
oled.height = oledSize.height;

var FONT_DEFAULT = 0;
var FONT_MONO = 1;
var FONT_ICON = 2;

var ICON_STAR = '';
var ICON_CAMERA = '';
var ICON_WIFI = '';
var ICON_WEB = '';
var ICON_BT = '';

var icon = {};

var DEFAULT_THEME = {
    primary: [1, 1, 1],
    //secondary: [0.1, 0.1, 0.5],
    secondary: [0.0, 0.0, 0.8],
    alert: [1, 0, 0],
    batteryFull: [0.2, 1, 0.2],
    batteryOk: [0.1, 0.5, 0.1],
    batteryLow: [1, 0.2, 0.2],
    help: [0, 0.6, 0],
    background: [0.1, 0.1, 0.1]
}

var RED_THEME = {
    primary: [0.8, 0, 0],
    secondary: [0.5, 0.0, 0.0],
    alert: [1, 0.1, 0.1],
    batteryFull: [0.3, 0.2, 0.2],
    batteryOk: [0.3, 0.2, 0.2],
    batteryLow: [1, 0.2, 0.2],
    help: [0.6, 0, 0],
    background: [0.1, 0.0, 0.0]
}


oled.colors = DEFAULT_THEME;
oled.theme = 'VIEW Default';

oled.setTheme = function(themeName) {
    if(themeName == 'red') {<commit_msg>color update<commit_after>var exec = require('child_process').exec;
var pitft = require("pitft");
var fb = pitft("/dev/fb0", true);
var fs = require('fs');

var oled = {};

var currentStatus = "";
var chargeStatus = null;
var batteryPercentage = null;

oled.items = [];
oled.selected = 0;
oled.visible = false;
oled.blocked = false;

var oledSize = fb.size();
oled.width = oledSize.width;
oled.height = oledSize.height;

var FONT_DEFAULT = 0;
var FONT_MONO = 1;
var FONT_ICON = 2;

var ICON_STAR = '';
var ICON_CAMERA = '';
var ICON_WIFI = '';
var ICON_WEB = '';
var ICON_BT = '';

var icon = {};

var DEFAULT_THEME = {
    primary: [1, 1, 1],
    //secondary: [0.1, 0.1, 0.5],
    secondary: [0.1, 0.1, 0.9],
    alert: [1, 0, 0],
    batteryFull: [0.2, 1, 0.2],
    batteryOk: [0.1, 0.5, 0.1],
    batteryLow: [1, 0.2, 0.2],
    help: [0, 0.6, 0],
    background: [0.1, 0.1, 0.1]
}

var RED_THEME = {
    primary: [0.8, 0, 0],
    secondary: [0.5, 0.0, 0.0],
    alert: [1, 0.1, 0.1],
    batteryFull: [0.3, 0.2, 0.2],
    batteryOk: [0.3, 0.2, 0.2],
    batteryLow: [1, 0.2, 0.2],
    help: [0.6, 0, 0],
    background: [0.1, 0.0, 0.0]
}


oled.colors = DEFAULT_THEME;
oled.theme = 'VIEW Default';

oled.setTheme = function(themeName) {
    if(themeName == 'red') {
{'fraction_non_alphanumeric': 0.21044365920691008, 'fraction_numerical': 0.07145661562622693, 'mean_word_length': 2.98125, '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': '757641', 'n_tokens_mistral': 1252, 'n_tokens_neox': 1179, 'n_words': 289}