<commit_before>package uk.ac.surrey.soc.cress.extrawidgets.gui

import java.awt.Color.white

import org.nlogo.app.App
import org.nlogo.app.AppFrame
import org.nlogo.swing.RichAction
import org.nlogo.window.GUIWorkspace

import javax.swing.JPanel
import uk.ac.surrey.soc.cress.extrawidgets.api.ColorPropertyDef
import uk.ac.surrey.soc.cress.extrawidgets.api.JComponentWidget
import uk.ac.surrey.soc.cress.extrawidgets.api.PropertyMap
import uk.ac.surrey.soc.cress.extrawidgets.api.StringPropertyDef
import uk.ac.surrey.soc.cress.extrawidgets.api.WidgetKey
import uk.ac.surrey.soc.cress.extrawidgets.api.XWException

class Tab(
  val key: WidgetKey,
  properties: PropertyMap,
  ws: GUIWorkspace)
  extends JPanel
  with JComponentWidget {

  val xwTitle = new StringPropertyDef(this, v ⇒ setTitle(v), () ⇒ getTitle, () ⇒ key)
  override val xwBackground = new ColorPropertyDef(this, setBackground, getBackground, () ⇒ white)
<commit_msg>turn off optimzedDrawing for tabs<commit_after>package uk.ac.surrey.soc.cress.extrawidgets.gui

import java.awt.Color.white

import org.nlogo.app.App
import org.nlogo.app.AppFrame
import org.nlogo.swing.RichAction
import org.nlogo.window.GUIWorkspace

import javax.swing.JPanel
import uk.ac.surrey.soc.cress.extrawidgets.api.ColorPropertyDef
import uk.ac.surrey.soc.cress.extrawidgets.api.JComponentWidget
import uk.ac.surrey.soc.cress.extrawidgets.api.PropertyMap
import uk.ac.surrey.soc.cress.extrawidgets.api.StringPropertyDef
import uk.ac.surrey.soc.cress.extrawidgets.api.WidgetKey
import uk.ac.surrey.soc.cress.extrawidgets.api.XWException

class Tab(
  val key: WidgetKey,
  properties: PropertyMap,
  ws: GUIWorkspace)
  extends JPanel
  with JComponentWidget {

  override def isOptimizedDrawingEnabled = false

  val xwTitle = new StringPropertyDef(this, v ⇒ setTitle(v), () ⇒ getTitle, () ⇒ key)
  override val xwBackground = new ColorPropertyDef(this, setBackground, getBackground, () ⇒ white)

{'fraction_non_alphanumeric': 0.1035015447991761, 'fraction_numerical': 0.0, 'mean_word_length': 5.247588424437299, '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': '1373890', 'n_tokens_mistral': 689, 'n_tokens_neox': 696, 'n_words': 126}