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

import java.io.File
import java.net.{URL, URLClassLoader}

import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.module.Module
import com.intellij.openapi.roots.OrderEnumerator
import com.intellij.openapi.util.io.FileUtil
import com.intellij.util.PathUtil
import org.jetbrains.jps.incremental.scala.data.SbtData
import org.jetbrains.plugins.scala
import org.jetbrains.plugins.scala.project._
import org.jetbrains.plugins.scala.project.settings.ScalaCompilerSettings

/**
 * Nikolay.Tropin
 * 2014-10-07
 */

abstract class RemoteServerConnectorBase(module: Module, fileToCompile: File, outputDir: File) {
  private val libRoot = {
    if (ApplicationManager.getApplication.isUnitTestMode) new File("./out/plugin/Scala/lib").getAbsoluteFile
    else new File(PathUtil.getJarPathForClass(getClass)).getParentFile
  }

  private val libCanonicalPath = PathUtil.getCanonicalPath(libRoot.getPath)<commit_msg>usage of compile server in tests fixed for scala plugin for ultimate<commit_after>package org.jetbrains.plugins.scala
package compiler

import java.io.File
import java.net.{URL, URLClassLoader}

import com.btr.proxy.util.PlatformUtil
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.module.Module
import com.intellij.openapi.roots.OrderEnumerator
import com.intellij.openapi.util.io.FileUtil
import com.intellij.util.{PlatformUtils, PathUtil}
import org.jetbrains.jps.incremental.scala.data.SbtData
import org.jetbrains.plugins.scala
import org.jetbrains.plugins.scala.project._
import org.jetbrains.plugins.scala.project.settings.ScalaCompilerSettings

/**
 * Nikolay.Tropin
 * 2014-10-07
 */

abstract class RemoteServerConnectorBase(module: Module, fileToCompile: File, outputDir: File) {
  private val libRoot = {
    if (ApplicationManager.getApplication.isUnitTestMode) {
      if (PlatformUtils.isIdeaCommunity) new File("./out/plugin/Scala/lib").getAbsoluteFile
      else new File("../../out/plugin/Scala/lib").getAbsoluteFile
    }
    else new File(PathUtil.getJarPathForClass(getClass)).getParentFile
  }

  private val libCanonicalPath = PathUtil.getCanonicalPath(libRoot.getPath)
{'fraction_non_alphanumeric': 0.1001788908765653, 'fraction_numerical': 0.007155635062611807, 'mean_word_length': 5.521865889212828, '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': '5327181', 'n_tokens_mistral': 728, 'n_tokens_neox': 690, 'n_words': 120}