<commit_before>#include <QDebug>
#include <QtAlgorithms>
#include "codeArea.h"

CodeArea::CodeArea(QWidget *parent): QPlainTextEdit(parent)
{
	connect(this, SIGNAL(cursorPositionChanged()), this, SLOT(highlightCurrentLine()));

	mHighlighter = new TextHighlighter(document());

	highlightCurrentLine();
}

CodeArea::~CodeArea()
{
	if (mHighlighter)
		delete mHighlighter;
}
<commit_msg>made code area readonly<commit_after>#include <QDebug>
#include <QtAlgorithms>
#include "codeArea.h"

CodeArea::CodeArea(QWidget *parent): QPlainTextEdit(parent)
{
	connect(this, SIGNAL(cursorPositionChanged()), this, SLOT(highlightCurrentLine()));

	mHighlighter = new TextHighlighter(document());

	highlightCurrentLine();
	setReadOnly(true);
}

CodeArea::~CodeArea()
{
	if (mHighlighter)
		delete mHighlighter;
}

{'fraction_non_alphanumeric': 0.1433915211970075, 'fraction_numerical': 0.0, 'mean_word_length': 8.792682926829269, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3686881', 'n_tokens_mistral': 281, 'n_tokens_neox': 271, 'n_words': 48}