<commit_before>package org.jetbrains.plugins.scala.statistics

import com.intellij.internal.statistic.UsageTrigger
import com.intellij.openapi.components.ServiceManager

object Stats {
  private def enabled: Boolean = ServiceManager.getService(classOf[UsageTrigger]) != null

  def trigger(feature: FeatureKey): Unit = {
    if (enabled) {
      UsageTrigger.trigger(feature.s)
    }
  }

  def trigger(condition: Boolean, feature: FeatureKey): Unit = {
    if (condition) trigger(feature)
  }
}
<commit_msg>don't use deprecated API, it may be removed at any moment<commit_after>package org.jetbrains.plugins.scala.statistics

object Stats {
  private def enabled: Boolean = false

  def trigger(feature: FeatureKey): Unit = {
  }

  def trigger(condition: Boolean, feature: FeatureKey): Unit = {
    if (condition) trigger(feature)
  }
}

{'fraction_non_alphanumeric': 0.10369487485101311, 'fraction_numerical': 0.0, 'mean_word_length': 4.526315789473684, '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': '3437781', 'n_tokens_mistral': 257, 'n_tokens_neox': 243, 'n_words': 62}