<commit_before>/****************************************************************************/
/***                                                                      ***/
/***   (C) 2005 <NAME>, all rights reserved                       ***/
/***                                                                      ***/
/****************************************************************************/

#include "gui/textwindow.hpp"

/****************************************************************************/
/***                                                                      ***/
/***   Text Window                                                        ***/
/***                                                                      ***/
/****************************************************************************/

sTextWindow::sTextWindow()
{
  TextFlags = sF2P_TOP|sF2P_LEFT|sF2P_MULTILINE;
  EditFlags = 0;
  MarkMode = 0;
  MarkBegin = 0;
  MarkEnd = 0;
  GoodCursorX = 0;
  EnterCmd = 0;
  Font = sGui->PropFont;
  WindowHeight = Font->GetHeight()*5/2;
  Text = 0;
  TextTag = 0;
  BackColor = sGC_BACK;
  DragCursorStart = 0;
  DisableDrag = 0;
  ShowCursorAlways = 0;
  UndoAlloc = 4096;
  UndoBuffer = new UndoStep[UndoAlloc];
  UndoValid = 0;
  UndoIndex = 0;
  HintLine = 0;
  TabSize = 8;
  HintLineColor = sGC_HIGH;

  PrintInfo.Init();
  PrintInfo.SelectBackColor=sGC_SELECT;

  CursorTimer = 0;
  Timer = 0;<commit_msg>update default tab size in text windows<commit_after>/****************************************************************************/
/***                                                                      ***/
/***   (C) 2005 <NAME>, all rights reserved                       ***/
/***                                                                      ***/
/****************************************************************************/

#include "gui/textwindow.hpp"

/****************************************************************************/
/***                                                                      ***/
/***   Text Window                                                        ***/
/***                                                                      ***/
/****************************************************************************/

sTextWindow::sTextWindow()
{
  TextFlags = sF2P_TOP|sF2P_LEFT|sF2P_MULTILINE;
  EditFlags = 0;
  MarkMode = 0;
  MarkBegin = 0;
  MarkEnd = 0;
  GoodCursorX = 0;
  EnterCmd = 0;
  Font = sGui->PropFont;
  WindowHeight = Font->GetHeight()*5/2;
  Text = 0;
  TextTag = 0;
  BackColor = sGC_BACK;
  DragCursorStart = 0;
  DisableDrag = 0;
  ShowCursorAlways = 0;
  UndoAlloc = 4096;
  UndoBuffer = new UndoStep[UndoAlloc];
  UndoValid = 0;
  UndoIndex = 0;
  HintLine = 0;
  TabSize = 2;
  HintLineColor = sGC_HIGH;

  PrintInfo.Init();
  PrintInfo.SelectBackColor=sGC_SELECT;

  CursorTimer = 0;
  Timer = 0;
{'fraction_non_alphanumeric': 0.30458590006844627, 'fraction_numerical': 0.02053388090349076, 'mean_word_length': 1.6742909423604757, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 28, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3602631', 'n_tokens_mistral': 773, 'n_tokens_neox': 673, 'n_words': 131}