<commit_before>package lila.api

import akka.actor._
import com.softwaremill.macwire._
import play.api.libs.ws.WSClient
import play.api.{ Configuration, Mode }
import scala.concurrent.duration._

import lila.common.config._

@Module
final class Env(
    appConfig: Configuration,
    net: NetConfig,
    securityEnv: lila.security.Env,
    teamSearchEnv: lila.teamSearch.Env,
    forumSearchEnv: lila.forumSearch.Env,
    teamEnv: lila.team.Env,
    puzzleEnv: lila.puzzle.Env,
    explorerEnv: lila.explorer.Env,
    fishnetEnv: lila.fishnet.Env,
    studyEnv: lila.study.Env,
    studySearchEnv: lila.studySearch.Env,
    coachEnv: lila.coach.Env,
    evalCacheEnv: lila.evalCache.Env,
    planEnv: lila.plan.Env,
    gameEnv: lila.game.Env,
    roundEnv: lila.round.Env,
    bookmarkApi: lila.bookmark.BookmarkApi,
    prefApi: lila.pref.PrefApi,
    playBanApi: lila.playban.PlaybanApi,
    userEnv: lila.user.Env,
    streamerEnv: lila.streamer.Env,
    relationEnv: lila.relation.Env,
    analyseEnv: lila.analyse.Env,
    lobbyEnv: lila.lobby.Env,
    setupEnv: lila.setup.Env,
    simulEnv: lila.simul.Env,
    tourEnv: lila.tournament.Env,
    onlineApiUsers: lila.bot.OnlineApiUsers,
    pools: List[lila.pool.PoolConfig],
    challengeEnv: lila.challenge.Env,
    ws: WSClient,
    val mode: Mode
)(implicit ec: scala.concurrent.ExecutionContext, system: ActorSystem) {

  val config = ApiConfig loadFrom appConfig
  import config.apiToken

  lazy val pgnDump: PgnDump = wire[PgnDump]

  lazy val userApi = wire[UserApi]<commit_msg>remove unused parameter<commit_after>package lila.api

import akka.actor._
import com.softwaremill.macwire._
import play.api.libs.ws.WSClient
import play.api.{ Configuration, Mode }
import scala.concurrent.duration._

import lila.common.config._

@Module
final class Env(
    appConfig: Configuration,
    net: NetConfig,
    securityEnv: lila.security.Env,
    teamSearchEnv: lila.teamSearch.Env,
    forumSearchEnv: lila.forumSearch.Env,
    teamEnv: lila.team.Env,
    puzzleEnv: lila.puzzle.Env,
    explorerEnv: lila.explorer.Env,
    fishnetEnv: lila.fishnet.Env,
    studyEnv: lila.study.Env,
    studySearchEnv: lila.studySearch.Env,
    coachEnv: lila.coach.Env,
    evalCacheEnv: lila.evalCache.Env,
    planEnv: lila.plan.Env,
    gameEnv: lila.game.Env,
    roundEnv: lila.round.Env,
    bookmarkApi: lila.bookmark.BookmarkApi,
    prefApi: lila.pref.PrefApi,
    playBanApi: lila.playban.PlaybanApi,
    userEnv: lila.user.Env,
    streamerEnv: lila.streamer.Env,
    relationEnv: lila.relation.Env,
    analyseEnv: lila.analyse.Env,
    lobbyEnv: lila.lobby.Env,
    setupEnv: lila.setup.Env,
    simulEnv: lila.simul.Env,
    tourEnv: lila.tournament.Env,
    onlineApiUsers: lila.bot.OnlineApiUsers,
    challengeEnv: lila.challenge.Env,
    ws: WSClient,
    val mode: Mode
)(implicit ec: scala.concurrent.ExecutionContext, system: ActorSystem) {

  val config = ApiConfig loadFrom appConfig
  import config.apiToken

  lazy val pgnDump: PgnDump = wire[PgnDump]

  lazy val userApi = wire[UserApi]
{'fraction_non_alphanumeric': 0.10598626104023552, 'fraction_numerical': 0.0, 'mean_word_length': 3.6830015313935682, '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': '4798797', 'n_tokens_mistral': 1125, 'n_tokens_neox': 1104, 'n_words': 211}