<commit_before>package org.jetbrains.plugins.scala.codeInspection.unused
import org.jetbrains.plugins.scala.ScalaVersion

/**
  * Created by <NAME> on 11.07.16.
  */
class Scala3UnusedSymbolInspectionTest extends ScalaUnusedSymbolInspectionTestBase {

  override protected def supportedIn(version: ScalaVersion): Boolean = version >= ScalaVersion.Latest.Scala_3_0

// Should be enabled when implementing Scala 3 unused symbol inspection and enabling
// it in ScalaUnusedSymbolInspect#shouldProcessElement
//  def testPrivateField(): Unit = {
//    val code =
//      s"""
//         |extension (s: Int)
//         |  private def ${START}blub$END: Int = 3
//      """.stripMargin
//    checkTextHasError(code)
//    val before =
//      """
//        |object Test {
//        |  extension (s: Int)
//        |    private def blub: int = 3
//        |}
//      """.stripMargin
//    val after =
//      """
//        |object Test {
//        |  extension (s: Int)
//        |}
//      """.stripMargin
//    testQuickFix(before, after, hint)
//  }

  def testExtension(): Unit = checkTextHasNoErrors(
    s"""extension (s: Int)
       |  def blub: Int = s + 3
       |6.blub
       |""".stripMargin
  )
}
<commit_msg>Add failing test to prevent auto-merge<commit_after>package org.jetbrains.plugins.scala.codeInspection.unused
import org.jetbrains.plugins.scala.ScalaVersion

/**
  * Created by <NAME> on 11.07.16.
  */
class Scala3UnusedSymbolInspectionTest extends ScalaUnusedSymbolInspectionTestBase {

  override protected def supportedIn(version: ScalaVersion): Boolean = version >= ScalaVersion.Latest.Scala_3_0

// Should be enabled when implementing Scala 3 unused symbol inspection and enabling
// it in ScalaUnusedSymbolInspect#shouldProcessElement
//  def testPrivateField(): Unit = {
//    val code =
//      s"""
//         |extension (s: Int)
//         |  private def ${START}blub$END: Int = 3
//      """.stripMargin
//    checkTextHasError(code)
//    val before =
//      """
//        |object Test {
//        |  extension (s: Int)
//        |    private def blub: int = 3
//        |}
//      """.stripMargin
//    val after =
//      """
//        |object Test {
//        |  extension (s: Int)
//        |}
//      """.stripMargin
//    testQuickFix(before, after, hint)
//  }

  def testExtension(): Unit = checkTextHasNoErrors(
    s"""extension (s: Int)
       |  def blub: Int = s + 3
       |6.blub
       |""".stripMargin
  )

  def testThatShouldFailToPreventAutoMerge(): Unit = assert(false)
}

{'fraction_non_alphanumeric': 0.13923046410154702, 'fraction_numerical': 0.011106703689012296, 'mean_word_length': 2.331571994715984, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3146981', 'n_tokens_mistral': 814, 'n_tokens_neox': 790, 'n_words': 189}