<commit_before>package bootstrap.liftweb

import code.snippet.SpellInfo
import net.liftweb._
import util._
import Helpers._

import common._
import http._
import sitemap._
import Loc._
import mapper._

import code.model._


/**
 * A class that's instantiated early and run.  It allows the application
 * to modify lift's environment
 */
class Boot {
  def boot {
    configurePersistence
    LiftRules.setSiteMapFunc(() => sitemap)
    LiftRules.addToPackages("code")
    configureAjax
    configureEncodings
  }

  def userLinkText = User.currentUser.map(_.shortName).openOr("not logged in")

  def sitemap = SiteMap(
    Menu.i("Index") / "index" >> LocGroup("lift"),
    Menu.i("Chat") / "chat" >> LocGroup("lift"),

    Menu.i("Search") / "spellbook" / "search" >> LocGroup("spellbook") submenus(
      Menu.param[SpellInfo]("Spell", "Spell", s => Full(SpellInfo(s)), p => p.spellId) / "spellbook" / "spell" >> Hidden),
    Menu.i("Browse") / "spellbook" / "browse" >> LocGroup("spellbook"),

    User.loginMenuLoc.openOrThrowException("User Module Login Menu Error"),
    User.createUserMenuLoc.openOrThrowException("User Module Create Menu Error"),
<commit_msg>Updates to site map to cut down on finding the chat app.<commit_after>package bootstrap.liftweb

import code.snippet.SpellInfo
import net.liftweb._
import util._
import Helpers._

import common._
import http._
import sitemap._
import Loc._
import mapper._

import code.model._


/**
 * A class that's instantiated early and run.  It allows the application
 * to modify lift's environment
 */
class Boot {
  def boot {
    configurePersistence
    LiftRules.setSiteMapFunc(() => sitemap)
    LiftRules.addToPackages("code")
    configureAjax
    configureEncodings
  }

  def userLinkText = User.currentUser.map(_.shortName).openOr("not logged in")

  def sitemap = SiteMap(
    Menu.i("Index") / "index" >> LocGroup("lift-internals"),

    Menu.i("Apps") / "apps" / "#" >> LocGroup("main") >> PlaceHolder submenus (
      Menu.i("Chat") / "apps"/ "chat"),

    Menu.i("Search") / "spellbook" / "search" >> LocGroup("main") submenus(
      Menu.param[SpellInfo]("Spell", "Spell", s => Full(SpellInfo(s)), p => p.spellId) / "spellbook" / "spell" >> Hidden),
    Menu.i("Browse") / "spellbook" / "browse" >> LocGroup("main"),

    User.loginMenuLoc.openOrThrowException("User Module Login Menu Error"),
    User.createUserMenuLoc.openOrThrowException("User Module Create Menu Error"),

{'fraction_non_alphanumeric': 0.14414046549612086, 'fraction_numerical': 0.0, 'mean_word_length': 4.030800821355236, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 31, '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': '6709511', 'n_tokens_mistral': 801, 'n_tokens_neox': 791, 'n_words': 194}