<commit_before>package lila.blog

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

import lila.common.PimpedConfig._

final class Env(
    config: Config,
    scheduler: lila.common.Scheduler,
    notifyApi: lila.notify.NotifyApi) {

  private val PrismicApiUrl = config getString "prismic.api_url"
  private val PrismicCollection = config getString "prismic.collection"
  private val LastPostCacheTtl = config duration "last_post_cache.ttl"

  val RssEmail = config getString "rss.email"

  lazy val api = new BlogApi(
    prismicUrl = PrismicApiUrl,
    collection = PrismicCollection)

  lazy val lastPostCache = new LastPostCache(api, LastPostCacheTtl, PrismicCollection)

  private lazy val notifier = new Notifier(
    blogApi = api,
    notifyApi = notifyApi)

  def cli = new lila.common.Cli {
    def process = {
      case "blog" :: "message" :: prismicId :: Nil =>
        notifier(prismicId) inject "done!"
    }
  }
}

object Env {

  lazy val current: Env = "blog" boot new Env(
    config = lila.common.PlayApp loadConfig "blog",
    scheduler = lila.common.PlayApp.scheduler,
    notifyApi = lila.notify.Env.current.api)
}
<commit_msg>rename blog notify cli task<commit_after>package lila.blog

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

import lila.common.PimpedConfig._

final class Env(
    config: Config,
    scheduler: lila.common.Scheduler,
    notifyApi: lila.notify.NotifyApi) {

  private val PrismicApiUrl = config getString "prismic.api_url"
  private val PrismicCollection = config getString "prismic.collection"
  private val LastPostCacheTtl = config duration "last_post_cache.ttl"

  val RssEmail = config getString "rss.email"

  lazy val api = new BlogApi(
    prismicUrl = PrismicApiUrl,
    collection = PrismicCollection)

  lazy val lastPostCache = new LastPostCache(api, LastPostCacheTtl, PrismicCollection)

  private lazy val notifier = new Notifier(
    blogApi = api,
    notifyApi = notifyApi)

  def cli = new lila.common.Cli {
    def process = {
      case "blog" :: "notify" :: prismicId :: Nil =>
        notifier(prismicId) inject "done!"
    }
  }
}

object Env {

  lazy val current: Env = "blog" boot new Env(
    config = lila.common.PlayApp loadConfig "blog",
    scheduler = lila.common.PlayApp.scheduler,
    notifyApi = lila.notify.Env.current.api)
}

{'fraction_non_alphanumeric': 0.09196390201976794, 'fraction_numerical': 0.0, 'mean_word_length': 3.6467065868263475, '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': '2863130', 'n_tokens_mistral': 780, 'n_tokens_neox': 746, 'n_words': 200}