<commit_before>package im.mange.jetboot

import im.mange.jetboot.css.{Styles, Style, Classes}

trait Styleable {
  var classes: Classes = Classes()
  var styles: Styles = Styles()

  def classes(c: Classes): this.type = {classes = c; this}
  def classes(c: String*): this.type = classes(Classes(c:_*))
  def styles(s: Styles): this.type = {styles = s; this}
  def styles(s: Style*): this.type = styles(Styles(s:_*))
}<commit_msg>make it possible to add classes and styles to Styleables<commit_after>package im.mange.jetboot

import im.mange.jetboot.css.{Styles, Style, Classes}

trait Styleable {
  var classes: Classes = Classes()
  var styles: Styles = Styles()

  def classes(c: Classes): this.type = {classes = c; this}
  def classes(c: String*): this.type = classes(Classes(c:_*))
  def styles(s: Styles): this.type = {styles = s; this}
  def styles(s: Style*): this.type = styles(Styles(s:_*))
  def addClasses(c: String*): this.type = { classes.add(c:_*); this }
  def addStyles(s: Style*): this.type = { styles.add(s:_*); this }
}
{'fraction_non_alphanumeric': 0.16184971098265896, 'fraction_numerical': 0.0, 'mean_word_length': 4.646739130434782, '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': '2759665', 'n_tokens_mistral': 371, 'n_tokens_neox': 366, 'n_words': 101}