<commit_before>package fiddle
import acyclic.file
import spray.http._
import spray.http.HttpHeaders._
import spray.httpx.encoding.Gzip
import spray.routing.directives.CachingDirectives._
import akka.actor.ActorSystem
import spray.routing.directives.CacheKeyer
import scala.collection.mutable
import spray.client.pipelining._

import spray.http.HttpRequest
import scala.Some
import spray.http.HttpResponse
import spray.routing._
import upickle._
import upickle.Implicits._
import scala.scalajs.tools.classpath.PartialIRClasspath
import scala.annotation.{ClassfileAnnotation, StaticAnnotation, Annotation}
import scala.concurrent.Await
import scala.concurrent.duration._

object Server extends SimpleRoutingApp with Api{
  implicit val system = ActorSystem()
  import system.dispatcher
  val clientFiles = Seq("/client-fastopt.js")

  def main(args: Array[String]): Unit = {
    implicit val Default: CacheKeyer = CacheKeyer {
      case RequestContext(HttpRequest(_, uri, _, entity, _), _, _) => (uri, entity)
    }

    val simpleCache = routeCache(maxCapacity = 1000)
    println("Power On Self Test")
    val res = Compiler.compile(fiddle.Shared.default.getBytes, println)
    val optimized = res.get |> Compiler.fastOpt |> Compiler.fullOpt |> Compiler.export
    assert(optimized.contains("Looks like"))
    println("Power On Self Test complete: " + optimized.length + " bytes")

<commit_msg>move thing again<commit_after>package fiddle
import acyclic.file
import spray.http._
import spray.http.HttpHeaders._
import spray.httpx.encoding.Gzip
import spray.routing.directives.CachingDirectives._
import akka.actor.ActorSystem
import spray.routing.directives.CacheKeyer
import scala.collection.mutable
import spray.client.pipelining._

import spray.http.HttpRequest
import scala.Some
import spray.http.HttpResponse
import spray.routing._
import upickle._
import upickle.Implicits._
import scala.scalajs.tools.classpath.PartialIRClasspath
import scala.annotation.{ClassfileAnnotation, StaticAnnotation, Annotation}
import scala.concurrent.Await
import scala.concurrent.duration._

object Server extends SimpleRoutingApp with Api{
  implicit val system = ActorSystem()
  import system.dispatcher
  val clientFiles = Seq("/client-fastopt.js")

  def main(args: Array[String]): Unit = {
    implicit val Default: CacheKeyer = CacheKeyer {
      case RequestContext(HttpRequest(_, uri, _, entity, _), _, _) => (uri, entity)
    }

    val simpleCache = routeCache(maxCapacity = 1000)
//    println("Power On Self Test")
//    val res = Compiler.compile(fiddle.Shared.default.getBytes, println)
//    val optimized = res.get |> Compiler.fastOpt |> Compiler.fullOpt |> Compiler.export
//    assert(optimized.contains("Looks like"))
//    println("Power On Self Test complete: " + optimized.length + " bytes")


{'fraction_non_alphanumeric': 0.09989297181591153, 'fraction_numerical': 0.0028540849090260435, 'mean_word_length': 4.903157894736842, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5383607', 'n_tokens_mistral': 844, 'n_tokens_neox': 824, 'n_words': 200}