<commit_before>package com.olegych.scastie.client
package components

import com.olegych.scastie.client.components.editor.EditorOptions
import japgolly.scalajs.react._
import vdom.all._
import extra._

final case class ClearButton(clear: Reusable[Callback]) {
  @inline def render: VdomElement = ClearButton.component(this)
}

object ClearButton {

  implicit val reusability: Reusability[ClearButton] =
    Reusability.caseClass[ClearButton]

  private def render(props: ClearButton): VdomElement = {
    li(title := s"Clear Messages (${EditorOptions.Keys.clear})", role := "button", cls := "btn", onClick --> props.clear)(
      div(
        i(cls := "fa fa-eraser"),
        span("Clear Annotations")
      )
    )<commit_msg>cleanup help messages<commit_after>package com.olegych.scastie.client
package components

import com.olegych.scastie.client.components.editor.EditorOptions
import japgolly.scalajs.react._
import vdom.all._
import extra._

final case class ClearButton(clear: Reusable[Callback]) {
  @inline def render: VdomElement = ClearButton.component(this)
}

object ClearButton {

  implicit val reusability: Reusability[ClearButton] =
    Reusability.caseClass[ClearButton]

  private def render(props: ClearButton): VdomElement = {
    li(title := s"Clear Messages (${EditorOptions.Keys.clear})", role := "button", cls := "btn", onClick --> props.clear)(
      div(
        i(cls := "fa fa-eraser"),
        span("Clear Messages")
      )
    )
{'fraction_non_alphanumeric': 0.12166780587833219, 'fraction_numerical': 0.0, 'mean_word_length': 4.285198555956678, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2146443', 'n_tokens_mistral': 451, 'n_tokens_neox': 449, 'n_words': 102}