<commit_before>
//["objectName","position","size","visible","url","destroyed(QObject*)","destroyed()","objectNameChanged(QString)","deleteLater()","visibleChanged()","positionChanged()","sizeChanged()","moved(glm::vec2)","resized(QSizeF)","closed()","fromQml(QVariant)","scriptEventReceived(QVariant)","webEventReceived(QVariant)","isVisible()","setVisible(bool)","getPosition()","setPosition(glm::vec2)","setPosition(int,int)","getSize()","setSize(glm::vec2)","setSize(int,int)","setTitle(QString)","raise()","close()","getEventBridge()","sendToQml(QVariant)","emitScriptEvent(QVariant)","emitWebEvent(QVariant)","hasMoved(QVector2D)","hasClosed()","qmlToScript(QVariant)","urlChanged()","getURL()","setURL(QString)","setScriptURL(QString)"]

var SKEY_SETUP = "uiproject.manager.setup";
var SKEY_OPEN = "uiproject.manager.open";

var SKEY_ACTIVE_REPOS = "uiproject.manager.active_repos";
var SKEY_ACTIVE_SCRIPTS = "uiproject.manager.scripts";
var SKEY_ACTIVE_CATEGORIES = "uiproject.manager.active_categories";
var SKEY_REPOSITORIES = "uiproject.manager.repositories";
var SKEY_REPOLIST= "uiproject.manager.repolist";

var OVERLAY_TITLE = "UI Manager"; var OVERLAY_SIZE = {width: 200, height: 400};

var uiHtml = Script.resolvePath("html/uiManager.html");

var webOverlay = null;

function setSetting(set,val){
    Settings.setValue(set,JSON.stringify(val));
}
function getSetting(set){
    //log(["GET",set]);
    var get = Settings.getValue(set,null);
    //log(["Loaded",(typeof get !== "string"),get]);
    if(typeof get !== "string")return null;
    try{
        get = JSON.parse(get);
        return get;
    }catch(e){
        return null;
    }
}

function log(val){print(JSON.stringify(val));}

var MENU_NAME = "UI";
var MENU_ITEM = "Open Manager";

var repositories = {};
var repoList = [];
var webOpen = true;
var setupComplete = false;
var activeScripts = [];
var activeCategories = [];
var activeRepos = [];

function setup(){
    var _repositories = getSetting(SKEY_REPOSITORIES);
    var _repoList = getSetting(SKEY_REPOLIST);
    var _activeRepos = getSetting(SKEY_ACTIVE_REPOS);
    var _activeScripts = getSetting(SKEY_ACTIVE_SCRIPTS);
    var _activeCategories = getSetting(SKEY_ACTIVE_CATEGORIES);

    if(_repositories != null)repositories = _repositories;
    if(_repoList != null)repoList = _repoList;
    if(_activeRepos != null)activeRepos = _activeRepos;
    if(_activeScripts != null)activeScripts = _activeScripts;
    if(_activeCategories != null)activeCategories = _activeCategories;

    webOpen = getSetting(SKEY_OPEN) === true ? true : false;
    setupComplete = getSetting(SKEY_SETUP) === true ? true : false;


<commit_msg>Screw the tablet<commit_after>
//["objectName","position","size","visible","url","destroyed(QObject*)","destroyed()","objectNameChanged(QString)","deleteLater()","visibleChanged()","positionChanged()","sizeChanged()","moved(glm::vec2)","resized(QSizeF)","closed()","fromQml(QVariant)","scriptEventReceived(QVariant)","webEventReceived(QVariant)","isVisible()","setVisible(bool)","getPosition()","setPosition(glm::vec2)","setPosition(int,int)","getSize()","setSize(glm::vec2)","setSize(int,int)","setTitle(QString)","raise()","close()","getEventBridge()","sendToQml(QVariant)","emitScriptEvent(QVariant)","emitWebEvent(QVariant)","hasMoved(QVector2D)","hasClosed()","qmlToScript(QVariant)","urlChanged()","getURL()","setURL(QString)","setScriptURL(QString)"]

var SKEY_SETUP = "uiproject.manager.setup";
var SKEY_OPEN = "uiproject.manager.open";

var SKEY_ACTIVE_REPOS = "uiproject.manager.active_repos";
var SKEY_ACTIVE_SCRIPTS = "uiproject.manager.scripts";
var SKEY_ACTIVE_CATEGORIES = "uiproject.manager.active_categories";
var SKEY_REPOSITORIES = "uiproject.manager.repositories";
var SKEY_REPOLIST= "uiproject.manager.repolist";

var OVERLAY_TITLE = "UI Manager"; var OVERLAY_SIZE = {width: 200, height: 400};

var uiHtml = Script.resolvePath("html/uiManager.html");

var webOverlay = null;

function setSetting(set,val){
    Settings.setValue(set,JSON.stringify(val));
}
function getSetting(set){
    //log(["GET",set]);
    var get = Settings.getValue(set,null);
    //log(["Loaded",(typeof get !== "string"),get]);
    if(typeof get !== "string")return null;
    try{
        get = JSON.parse(get);
        return get;
    }catch(e){
        return null;
    }
}

function log(val){print(JSON.stringify(val));}

var MENU_NAME = "UI";
var MENU_ITEM = "Open Manager";

var repositories = {};
var repoList = [];
var webOpen = true;
var setupComplete = false;
var activeScripts = [];
var activeCategories = [];
var activeRepos = [];

function setup(){
    Settings.setValue("HUDUIEnabled", true);
    var _repositories = getSetting(SKEY_REPOSITORIES);
    var _repoList = getSetting(SKEY_REPOLIST);
    var _activeRepos = getSetting(SKEY_ACTIVE_REPOS);
    var _activeScripts = getSetting(SKEY_ACTIVE_SCRIPTS);
    var _activeCategories = getSetting(SKEY_ACTIVE_CATEGORIES);

    if(_repositories != null)repositories = _repositories;
    if(_repoList != null)repoList = _repoList;
    if(_activeRepos != null)activeRepos = _activeRepos;
    if(_activeScripts != null)activeScripts = _activeScripts;
    if(_activeCategories != null)activeCategories = _activeCategories;

    webOpen = getSetting(SKEY_OPEN) === true ? true : false;
    setupComplete = getSetting(SKEY_SETUP) === true ? true : false;



{'fraction_non_alphanumeric': 0.1705180767797242, 'fraction_numerical': 0.003727171077152441, 'mean_word_length': 7.01044776119403, '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': '4844774', 'n_tokens_mistral': 1844, 'n_tokens_neox': 1792, 'n_words': 264}