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

import org.nlogo.window.GUIWorkspace
import javax.swing.JCheckBox
import uk.ac.surrey.soc.cress.extrawidgets.api.BooleanPropertyDef
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.WidgetKey
import uk.ac.surrey.soc.cress.extrawidgets.api.const
import uk.ac.surrey.soc.cress.extrawidgets.api.AbstractButtonWidget

class Checkbox(val key: WidgetKey, properties: PropertyMap, ws: GUIWorkspace)
  extends JCheckBox with AbstractButtonWidget {


}<commit_msg>set default background in Checkbox<commit_after>package uk.ac.surrey.soc.cress.extrawidgets.checkbox

import org.nlogo.window.GUIWorkspace
import org.nlogo.window.InterfaceColors.SWITCH_BACKGROUND

import javax.swing.JCheckBox
import uk.ac.surrey.soc.cress.extrawidgets.api.BooleanPropertyDef
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.WidgetKey
import uk.ac.surrey.soc.cress.extrawidgets.api.const
import uk.ac.surrey.soc.cress.extrawidgets.api.AbstractButtonWidget

class Checkbox(val key: WidgetKey, properties: PropertyMap, ws: GUIWorkspace)
  extends JCheckBox with AbstractButtonWidget {

  override def defaultBackground = SWITCH_BACKGROUND

}
{'fraction_non_alphanumeric': 0.09500351864883885, 'fraction_numerical': 0.0, 'mean_word_length': 6.1457286432160805, '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': '3408681', 'n_tokens_mistral': 494, 'n_tokens_neox': 491, 'n_words': 70}