<commit_before>package com.olegych.scastie.client

import com.olegych.scastie.api.SnippetId
import com.olegych.scastie.client.components._

import org.scalajs.dom
import org.scalajs.dom.raw.{HTMLElement, Node}
import org.scalajs.dom.ext._

import scala.scalajs.js
import js.annotation._
import js.{|, UndefOr}
import js.annotation.JSExport

import java.util.UUID

import japgolly.scalajs.react._, extra.router._

@js.native
@JSGlobal("ScastieSettings")
object Settings extends js.Object {
  val defaultServerUrl: String = js.native
}

/* Entry point for the website
 */
@JSExportTopLevel("scastie.ScastieMain")
object ScastieMain {
  @JSExport
  def main(): Unit = {
    dom.document.body.className = "scastie"

    val container =
      dom.document.createElement("div").asInstanceOf[dom.raw.HTMLDivElement]
    container.className = "scastie"
    dom.document.body.appendChild(container)

    val routing = new Routing(Settings.defaultServerUrl)

    Router(BaseUrl.fromWindowOrigin_/, routing.config)().renderIntoDOM(
      container
    )

    ()
  }
}

/* Entry point for Scala.js runtime
 */
@JSExportTopLevel("scastie.ClientMain")
object ClientMain {

  @JSExport
  def signal(instrumentations: String, attachedDoms: js.Array[HTMLElement], rawId: String): Unit = {
    Global.signal(instrumentations, attachedDoms, rawId)
  }

  @JSExport
  def error(er: js.Error, rawId: String): Unit = {
    Global.error(er, rawId)
  }
}

/* Entry point for ressource embedding and code embedding
 */
object ScastieEmbedded {

  @JSExportTopLevel("scastie.Embedded")
  def embedded(selector: UndefOr[String | Node], options: UndefOr[EmbeddedOptionsJs]): Unit = {
<commit_msg>fix compilation<commit_after>package com.olegych.scastie.client

import com.olegych.scastie.api.SnippetId
import com.olegych.scastie.client.components._
import org.scalajs.dom
import org.scalajs.dom.raw.{HTMLElement, Node}
import org.scalajs.dom.ext._

import scala.scalajs.js
import js.annotation._
import js.{UndefOr, |}
import js.annotation.JSExport
import java.util.UUID

import japgolly.scalajs.react._
import extra.router._
import japgolly.scalajs.react.component.Generic

@js.native
@JSGlobal("ScastieSettings")
object Settings extends js.Object {
  val defaultServerUrl: String = js.native
}

/* Entry point for the website
 */
@JSExportTopLevel("scastie.ScastieMain")
object ScastieMain {
  @JSExport
  def main(): Unit = {
    dom.document.body.className = "scastie"

    val container =
      dom.document.createElement("div").asInstanceOf[dom.raw.HTMLDivElement]
    container.className = "scastie"
    dom.document.body.appendChild(container)

    val routing = new Routing(Settings.defaultServerUrl)

    val router = Router(BaseUrl.fromWindowOrigin_/, routing.config)
    Generic.toComponentCtor(router).apply().renderIntoDOM(
      container
    )

    ()
  }
}

/* Entry point for Scala.js runtime
 */
@JSExportTopLevel("scastie.ClientMain")
object ClientMain {

  @JSExport
  def signal(instrumentations: String, attachedDoms: js.Array[HTMLElement], rawId: String): Unit = {
    Global.signal(instrumentations, attachedDoms, rawId)
  }

  @JSExport
  def error(er: js.Error, rawId: String): Unit = {
    Global.error(er, rawId)
  }
}

/* Entry point for ressource embedding and code embedding
 */
object ScastieEmbedded {

  @JSExportTopLevel("scastie.Embedded")
  def embedded(selector: UndefOr[String | Node], options: UndefOr[EmbeddedOptionsJs]): Unit = {

{'fraction_non_alphanumeric': 0.11552975326560232, 'fraction_numerical': 0.0, 'mean_word_length': 4.44391785150079, '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': '6540854', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1141, 'n_words': 228}