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

import java.io.File
import javax.swing.SwingUtilities

import com.intellij.ProjectTopics
import com.intellij.compiler.server.BuildManager
import com.intellij.compiler.{CompilerConfiguration, CompilerTestUtil}
import com.intellij.openapi.application.ex.ApplicationManagerEx
import com.intellij.openapi.compiler.{CompileContext, CompileStatusNotification, CompilerManager, CompilerMessageCategory}
import com.intellij.openapi.module.Module
import com.intellij.openapi.projectRoots._
import com.intellij.openapi.roots._
import com.intellij.openapi.util.text.StringUtil
import com.intellij.openapi.vfs._
import com.intellij.testFramework.{EdtTestUtil, ModuleTestCase, PsiTestUtil, VfsTestUtil}
import com.intellij.util.concurrency.Semaphore
import com.intellij.util.ui.UIUtil
import org.jetbrains.plugins.scala.base.libraryLoaders._
import org.jetbrains.plugins.scala.compiler.{CompileServerLauncher, ScalaCompileServerSettings}
import org.jetbrains.plugins.scala.extensions._
import org.junit.Assert

import scala.collection.mutable.ListBuffer

/**
  * Nikolay.Tropin
  * 2/26/14
  */
abstract class ScalaCompilerTestBase extends ModuleTestCase with ScalaSdkOwner {

  private var deleteProjectAtTearDown = false

  override def setUp(): Unit = {
    super.setUp()
    myProject.getMessageBus.connect(getTestRootDisposable).subscribe(ProjectTopics.PROJECT_ROOTS, new ModuleRootListener {
      override def rootsChanged(event: ModuleRootEvent) {
        forceFSRescan()
      }<commit_msg>some lines to support enabling debugger in debugger tests.<commit_after>package org.jetbrains.plugins.scala
package debugger

import java.io.File
import javax.swing.SwingUtilities

import com.intellij.ProjectTopics
import com.intellij.compiler.server.BuildManager
import com.intellij.compiler.{CompilerConfiguration, CompilerTestUtil}
import com.intellij.openapi.application.ex.ApplicationManagerEx
import com.intellij.openapi.compiler.{CompileContext, CompileStatusNotification, CompilerManager, CompilerMessageCategory}
import com.intellij.openapi.module.Module
import com.intellij.openapi.projectRoots._
import com.intellij.openapi.roots._
import com.intellij.openapi.util.text.StringUtil
import com.intellij.openapi.vfs._
import com.intellij.testFramework.{EdtTestUtil, ModuleTestCase, PsiTestUtil, VfsTestUtil}
import com.intellij.util.concurrency.Semaphore
import com.intellij.util.ui.UIUtil
import org.jetbrains.plugins.scala.base.libraryLoaders._
import org.jetbrains.plugins.scala.compiler.{CompileServerLauncher, ScalaCompileServerSettings}
import org.jetbrains.plugins.scala.extensions._
import org.junit.Assert

import scala.collection.mutable.ListBuffer

/**
  * Nikolay.Tropin
  * 2/26/14
  */
abstract class ScalaCompilerTestBase extends ModuleTestCase with ScalaSdkOwner {

  private var deleteProjectAtTearDown = false

  override def setUp(): Unit = {
    super.setUp()

    // uncomment to enable debugging of compile server in tests
//    BuildManager.getInstance().setBuildProcessDebuggingEnabled(true)
//    com.intellij.openapi.util.registry.Registry.get("compiler.process.debug.port").setValue(5006)

    myProject.getMessageBus.connect(getTestRootDisposable).subscribe(ProjectTopics.PROJECT_ROOTS, new ModuleRootListener {
      override def rootsChanged(event: ModuleRootEvent) {
        forceFSRescan()
      }
{'fraction_non_alphanumeric': 0.08696933962264151, 'fraction_numerical': 0.004127358490566038, 'mean_word_length': 5.868421052631579, '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': '6744793', 'n_tokens_mistral': 1049, 'n_tokens_neox': 1013, 'n_words': 175}