<commit_before>package controllers

import java.util.UUID
import javax.inject.Inject

import de.htwg.zeta.server.routing.WebController
import de.htwg.zeta.server.routing.WebControllerContainer
import de.htwg.zeta.server.routing.RouteController
import de.htwg.zeta.server.routing.RouteControllerContainer
import de.htwg.zeta.server.routing.authentication.RouteControllerContainer
import play.api.libs.json.JsValue
import play.api.mvc.WebSocket
import play.api.mvc.Action
import play.api.mvc.AnyContent
import play.api.mvc.BodyParsers

/**
 * All routes are managed in this class
 */
class ScalaRoutes @Inject()(
    protected val routeCont: RouteControllerContainer,
    protected val webCont: WebControllerContainer
) extends RouteController with WebController {


  def backendDeveloper: WebSocket = AuthenticatedSocket(BackendController.developer() _)

  def backendGenerator(id: String): WebSocket = AuthenticatedSocket(BackendController.generator(id) _)

  def backendUser(model: String): WebSocket = AuthenticatedSocket(BackendController.user(model) _)


  // # Home page
  def appIndex(): Action[AnyContent] = AuthenticatedGet(ApplicationController.index _)

  def user(): Action[AnyContent] = AuthenticatedGet(ApplicationController.user _)

  def signOut: Action[AnyContent] = AuthenticatedGet(ApplicationController.signOut _)

  def authenticate(provider: String): Action[AnyContent] = UnAuthenticatedGet(SocialAuthController.authenticate(provider) _)<commit_msg>fix import mistake in ScalaRoutes.scala<commit_after>package controllers

import java.util.UUID
import javax.inject.Inject

import de.htwg.zeta.server.routing.WebController
import de.htwg.zeta.server.routing.WebControllerContainer
import de.htwg.zeta.server.routing.RouteController
import de.htwg.zeta.server.routing.RouteControllerContainer
import play.api.libs.json.JsValue
import play.api.mvc.WebSocket
import play.api.mvc.Action
import play.api.mvc.AnyContent
import play.api.mvc.BodyParsers

/**
 * All routes are managed in this class
 */
class ScalaRoutes @Inject()(
    protected val routeCont: RouteControllerContainer,
    protected val webCont: WebControllerContainer
) extends RouteController with WebController {


  def backendDeveloper: WebSocket = AuthenticatedSocket(BackendController.developer() _)

  def backendGenerator(id: String): WebSocket = AuthenticatedSocket(BackendController.generator(id) _)

  def backendUser(model: String): WebSocket = AuthenticatedSocket(BackendController.user(model) _)


  // # Home page
  def appIndex(): Action[AnyContent] = AuthenticatedGet(ApplicationController.index _)

  def user(): Action[AnyContent] = AuthenticatedGet(ApplicationController.user _)

  def signOut: Action[AnyContent] = AuthenticatedGet(ApplicationController.signOut _)

  def authenticate(provider: String): Action[AnyContent] = UnAuthenticatedGet(SocialAuthController.authenticate(provider) _)
{'fraction_non_alphanumeric': 0.0888351192533702, 'fraction_numerical': 0.0, 'mean_word_length': 6.420512820512821, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2263353', 'n_tokens_mistral': 835, 'n_tokens_neox': 810, 'n_words': 164}