<commit_before>package lila.push

import akka.actor._
import com.typesafe.config.Config

import lila.common.PimpedConfig._

final class Env(
    config: Config,
    db: lila.db.Env,
    getLightUser: String => Option[lila.common.LightUser],
    roundSocketHub: ActorSelection,
    system: ActorSystem) {

  private val CollectionDevice = config getString "push_device"
  private val GooglePushUrl = config getString "google.url"
  private val GooglePushKey = config getString "google.key"

  private lazy val deviceApi = new DeviceApi(db(CollectionDevice))

  def registerDevice = deviceApi.register _

  private lazy val googlePush = new GooglePush(
    deviceApi.findByUserId _,
    url = GooglePushUrl,
    key = GooglePushKey)

  private lazy val pushApi = new PushApi(
    googlePush,<commit_msg>fix push config<commit_after>package lila.push

import akka.actor._
import com.typesafe.config.Config

import lila.common.PimpedConfig._

final class Env(
    config: Config,
    db: lila.db.Env,
    getLightUser: String => Option[lila.common.LightUser],
    roundSocketHub: ActorSelection,
    system: ActorSystem) {

  private val CollectionDevice = config getString "collection.device"
  private val GooglePushUrl = config getString "google.url"
  private val GooglePushKey = config getString "google.key"

  private lazy val deviceApi = new DeviceApi(db(CollectionDevice))

  def registerDevice = deviceApi.register _

  private lazy val googlePush = new GooglePush(
    deviceApi.findByUserId _,
    url = GooglePushUrl,
    key = GooglePushKey)

  private lazy val pushApi = new PushApi(
    googlePush,
{'fraction_non_alphanumeric': 0.07639751552795031, 'fraction_numerical': 0.0, 'mean_word_length': 4.163461538461538, 'pattern_counts': {'":': 0, '<': 3, '<?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': '644762', 'n_tokens_mistral': 483, 'n_tokens_neox': 466, 'n_words': 135}