<commit_before>// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.completion.settings

import com.intellij.completion.sorting.RankingSupport
import com.intellij.openapi.options.Configurable
import com.intellij.openapi.options.ConfigurableProvider
import com.intellij.util.PlatformUtils

class MLRankingConfigurableProvider : ConfigurableProvider() {
  override fun createConfigurable(): Configurable? {
    if (PlatformUtils.isWebStorm()) return null
    val availableLanguages = RankingSupport.availableLanguages()
    if (availableLanguages.isEmpty()) return null
    return MLRankingConfigurable(availableLanguages)
  }
}<commit_msg>stats-collector: remove redundant check<commit_after>// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.completion.settings

import com.intellij.completion.sorting.RankingSupport
import com.intellij.openapi.options.Configurable
import com.intellij.openapi.options.ConfigurableProvider

class MLRankingConfigurableProvider : ConfigurableProvider() {
  override fun createConfigurable(): Configurable? {
    val availableLanguages = RankingSupport.availableLanguages()
    if (availableLanguages.isEmpty()) return null
    return MLRankingConfigurable(availableLanguages)
  }
}
{'fraction_non_alphanumeric': 0.07397069085833916, 'fraction_numerical': 0.013956734124214934, 'mean_word_length': 5.732394366197183, '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': '5664825', 'n_tokens_mistral': 408, 'n_tokens_neox': 384, 'n_words': 107}