<commit_before>package xitrum.routing

import scala.collection.mutable.{Map => MMap}

import akka.actor.{Actor, ActorRef, Props}
import com.esotericsoftware.reflectasm.ConstructorAccess

import xitrum.{Config, Logger, SockJsActor}

// "websocket" and "cookieNeeded" members are named after SockJS option:
// {"websocket": true/false, "cookie_needed": true/false, "origins": ["*:*"], "entropy": integer}
//
// websocket: true means WebSocket is enabled
// cookieNeeded: true means load balancers needs JSESSION cookie
class SockJsClassAndOptions(val actorClass: Class[_ <: SockJsActor], val websocket: Boolean, val cookieNeeded: Boolean)

class SockJsRouteMap(map: Map[String, SockJsClassAndOptions]) extends Logger {
  def print() {
    // This method is only run once on start, speed is not a problem<commit_msg>Mark SockJsClassAndOptions as Serializable<commit_after>package xitrum.routing

import scala.collection.mutable.{Map => MMap}

import akka.actor.{Actor, ActorRef, Props}
import com.esotericsoftware.reflectasm.ConstructorAccess

import xitrum.{Config, Logger, SockJsActor}

// "websocket" and "cookieNeeded" members are named after SockJS option:
// {"websocket": true/false, "cookie_needed": true/false, "origins": ["*:*"], "entropy": integer}
//
// websocket: true means WebSocket is enabled
// cookieNeeded: true means load balancers needs JSESSION cookie
class SockJsClassAndOptions(val actorClass: Class[_ <: SockJsActor], val websocket: Boolean, val cookieNeeded: Boolean) extends Serializable

class SockJsRouteMap(map: Map[String, SockJsClassAndOptions]) extends Logger {
  def print() {
    // This method is only run once on start, speed is not a problem
{'fraction_non_alphanumeric': 0.10978520286396182, 'fraction_numerical': 0.0, 'mean_word_length': 5.708, 'pattern_counts': {'":': 8, '<': 5, '<?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': '5707659', 'n_tokens_mistral': 511, 'n_tokens_neox': 504, 'n_words': 158}