<commit_before>package org.jetbrains.sbt
package annotator

import _root_.junit.framework.Assert._
import com.intellij.openapi.module.ModuleManager
import org.jetbrains.plugins.scala.annotator._
import org.jetbrains.plugins.scala.lang.psi.api.ScalaRecursiveElementVisitor
import org.jetbrains.plugins.scala.lang.psi.api.base.ScLiteral
import org.jetbrains.plugins.scala.util.TestUtils
import org.jetbrains.sbt.project.module.SbtModule
import org.jetbrains.sbt.resolvers.SbtIvyResolver


/**
 * @author <NAME>
 * @since 8/4/14.
 */
class DependencyAnnotatorTest extends AnnotatorTestBase {
  private val testResolver = {
    val root = s"/${TestUtils.getTestDataPath}/sbt/resolvers/testIvyCache"
    new SbtIvyResolver("Test repo", root)
  }

  def testDoNotAnnotateIndexedDep(): Unit =
    doTest(Seq.empty)

//  def testDoNotAnnotateIndexedDepWithDynamicVersion(): Unit =
//    doTest(Seq.empty)

//  def testAnnotateUnresolvedDep(): Unit = {
//    val msg = SbtBundle("sbt.annotation.unresolvedDependency")
//    doTest(Seq(Warning("\"org.jetbrains\"", msg),
//      Warning("\"unknown-lib\"", msg),
//      Warning("\"0.0.0\"", msg)))
//  }
//
//  def testAnnotateUnresolvedDepWithDynamicVersion(): Unit = {
//    val msg = SbtBundle("sbt.annotation.unresolvedDependency")
//    doTest(Seq(Warning("\"org.jetbrains\"", msg),
//      Warning("\"unknown-lib\"", msg),
//      Warning("\"latest.release\"", msg)))
//  }

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

    val module = {<commit_msg>DependencyAnnotatorTest: enable all the tests<commit_after>package org.jetbrains.sbt
package annotator

import _root_.junit.framework.Assert._
import com.intellij.openapi.module.ModuleManager
import org.jetbrains.plugins.scala.annotator._
import org.jetbrains.plugins.scala.lang.psi.api.ScalaRecursiveElementVisitor
import org.jetbrains.plugins.scala.lang.psi.api.base.ScLiteral
import org.jetbrains.plugins.scala.util.TestUtils
import org.jetbrains.sbt.project.module.SbtModule
import org.jetbrains.sbt.resolvers.SbtIvyResolver


/**
 * @author <NAME>
 * @since 8/4/14.
 */
class DependencyAnnotatorTest extends AnnotatorTestBase {
  private val testResolver = {
    val root = s"/${TestUtils.getTestDataPath}/sbt/resolvers/testIvyCache"
    new SbtIvyResolver("Test repo", root)
  }

  def testDoNotAnnotateIndexedDep(): Unit =
    doTest(Seq.empty)

  def testDoNotAnnotateIndexedDepWithDynamicVersion(): Unit =
    doTest(Seq.empty)

  def testAnnotateUnresolvedDep(): Unit = {
    val msg = SbtBundle("sbt.annotation.unresolvedDependency")
    doTest(Seq(Warning("\"org.jetbrains\"", msg),
      Warning("\"unknown-lib\"", msg),
      Warning("\"0.0.0\"", msg)))
  }

  def testAnnotateUnresolvedDepWithDynamicVersion(): Unit = {
    val msg = SbtBundle("sbt.annotation.unresolvedDependency")
    doTest(Seq(Warning("\"org.jetbrains\"", msg),
      Warning("\"unknown-lib\"", msg),
      Warning("\"latest.release\"", msg)))
  }

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

    val module = {
{'fraction_non_alphanumeric': 0.14594414893617022, 'fraction_numerical': 0.004654255319148936, 'mean_word_length': 4.179001721170396, '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': '3112910', 'n_tokens_mistral': 1041, 'n_tokens_neox': 987, 'n_words': 158}