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


import caseClassParamInspection.CaseClassParamInspection
import com.intellij.codeInspection.InspectionToolProvider
import com.intellij.openapi.components.ApplicationComponent
import deprecation.ScalaDeprecationInspection
import fileNameInspection.FileNameInspection
import inference.SupsiciousInferredTypeInspection
import java.lang.String
import packageNameInspection.PackageNameInspection
import referenceInspections.CyclicReferencesInspection
import sugar.FunctionTupleSyntacticSugarInspection
import unresolvedInspection.UnresolvedReferencesInspection
import collection.mutable.ArrayBuffer
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.application.impl.ApplicationImpl
import varCouldBeValInspection.VarCouldBeValInspection

/**
 * User: <NAME>
 * Date: 02.06.2009
 */

class ScalaInspectionsProvider extends InspectionToolProvider with ApplicationComponent {
  def getInspectionClasses: Array[java.lang.Class[_]] = {
    val res = new ArrayBuffer[java.lang.Class[_]]
    res += classOf[CyclicReferencesInspection]
    res += classOf[FileNameInspection]
    res += classOf[PackageNameInspection]
    res += classOf[ScalaDeprecationInspection]
    res += classOf[CaseClassParamInspection]
    res += classOf[SupsiciousInferredTypeInspection]
    res += classOf[SuspiciousNewLineInMethodCall]
    res += classOf[VarCouldBeValInspection]
    res += classOf[FunctionTupleSyntacticSugarInspection]
    if (ApplicationManager.getApplication.asInstanceOf[ApplicationImpl].isInternal) {
      res += classOf[UnresolvedReferencesInspection]
    }
    res.toArray
  }

  def initComponent: Unit = {}

  def disposeComponent: Unit = {}

  def getComponentName: String = "Scala Inspections Provider"<commit_msg>Commented  Cyclic reference inspection (not work, and not necessary now).<commit_after>package org.jetbrains.plugins.scala
package codeInspection


import caseClassParamInspection.CaseClassParamInspection
import com.intellij.codeInspection.InspectionToolProvider
import com.intellij.openapi.components.ApplicationComponent
import deprecation.ScalaDeprecationInspection
import fileNameInspection.FileNameInspection
import inference.SupsiciousInferredTypeInspection
import java.lang.String
import packageNameInspection.PackageNameInspection
import referenceInspections.CyclicReferencesInspection
import sugar.FunctionTupleSyntacticSugarInspection
import unresolvedInspection.UnresolvedReferencesInspection
import collection.mutable.ArrayBuffer
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.application.impl.ApplicationImpl
import varCouldBeValInspection.VarCouldBeValInspection

/**
 * User: <NAME>
 * Date: 02.06.2009
 */

class ScalaInspectionsProvider extends InspectionToolProvider with ApplicationComponent {
  def getInspectionClasses: Array[java.lang.Class[_]] = {
    val res = new ArrayBuffer[java.lang.Class[_]]
    //todo: res += classOf[CyclicReferencesInspection]
    res += classOf[FileNameInspection]
    res += classOf[PackageNameInspection]
    res += classOf[ScalaDeprecationInspection]
    res += classOf[CaseClassParamInspection]
    res += classOf[SupsiciousInferredTypeInspection]
    res += classOf[SuspiciousNewLineInMethodCall]
    res += classOf[VarCouldBeValInspection]
    res += classOf[FunctionTupleSyntacticSugarInspection]
    if (ApplicationManager.getApplication.asInstanceOf[ApplicationImpl].isInternal) {
      res += classOf[UnresolvedReferencesInspection]
    }
    res.toArray
  }

  def initComponent: Unit = {}

  def disposeComponent: Unit = {}

  def getComponentName: String = "Scala Inspections Provider"
{'fraction_non_alphanumeric': 0.0709277238403452, 'fraction_numerical': 0.004314994606256742, 'mean_word_length': 6.711018711018711, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2373361', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1061, 'n_words': 181}