<commit_before>//===========================================
//  Lumina-DE source code
//  Copyright (c) 2015, <NAME>
//  Available under the 3-clause BSD license
//  See the LICENSE file for full details
//===========================================
#include "TerminalWidget.h"

#include <QProcessEnvironment>
#include <QDebug>
#include <QApplication>
#include <QScrollBar>
#include <QTextBlock>

#include <LuminaXDG.h>

//Special control code ending symbols (aside from letters)

TerminalWidget::TerminalWidget(QWidget *parent, QString dir) : QTextEdit(parent){
  //Setup the text widget
  this->setStyleSheet("background: black;");
  this->setLineWrapMode(QTextEdit::WidgetWidth);
  this->setAcceptRichText(false);
  this->setOverwriteMode(true);
  this->setFocusPolicy(Qt::StrongFocus);
  this->setTabStopWidth( 8 * this->fontMetrics().width(" ") ); //8 character spaces per tab (UNIX standard)
  this->setWordWrapMode(QTextOption::NoWrap);
  this->setContextMenuPolicy(Qt::CustomContextMenu);
  DEFFMT = this->textCursor().charFormat(); //save the default structure for later<commit_msg>Make sure the text on the terminal is visible.<commit_after>//===========================================
//  Lumina-DE source code
//  Copyright (c) 2015, <NAME>
//  Available under the 3-clause BSD license
//  See the LICENSE file for full details
//===========================================
#include "TerminalWidget.h"

#include <QProcessEnvironment>
#include <QDebug>
#include <QApplication>
#include <QScrollBar>
#include <QTextBlock>

#include <LuminaXDG.h>

//Special control code ending symbols (aside from letters)

TerminalWidget::TerminalWidget(QWidget *parent, QString dir) : QTextEdit(parent){
  //Setup the text widget
  this->setStyleSheet("background: black; color: white;");
  this->setLineWrapMode(QTextEdit::WidgetWidth);
  this->setAcceptRichText(false);
  this->setOverwriteMode(true);
  this->setFocusPolicy(Qt::StrongFocus);
  this->setTabStopWidth( 8 * this->fontMetrics().width(" ") ); //8 character spaces per tab (UNIX standard)
  this->setWordWrapMode(QTextOption::NoWrap);
  this->setContextMenuPolicy(Qt::CustomContextMenu);
  DEFFMT = this->textCursor().charFormat(); //save the default structure for later
{'fraction_non_alphanumeric': 0.20215150156880324, 'fraction_numerical': 0.0062752129090094125, 'mean_word_length': 6.10828025477707, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 37, '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': '1886262', 'n_tokens_mistral': 665, 'n_tokens_neox': 634, 'n_words': 165}