<commit_before>package amora.converter

import org.junit.Test

abstract class ScalaCompilerTest {

  import amora.TestUtils._

  def convert(src: String): Set[String] =
    convert("<memory>" → src)

  def convert(data: (String, String)*): Set[String]

  @Test
  def single_class() = {
    convert("package pkg; class X") === Set("pkg", "pkg.X")
  }<commit_msg>Add test for single package<commit_after>package amora.converter

import org.junit.Test

abstract class ScalaCompilerTest {

  import amora.TestUtils._

  def convert(src: String): Set[String] =
    convert("<memory>" → src)

  def convert(data: (String, String)*): Set[String]

  @Test
  def single_package() = {
    convert("package pkg") === Set("pkg")
  }

  @Test
  def single_class() = {
    convert("package pkg; class X") === Set("pkg", "pkg.X")
  }
{'fraction_non_alphanumeric': 0.1552567237163814, 'fraction_numerical': 0.0, 'mean_word_length': 4.11875, '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': '6349049', 'n_tokens_mistral': 277, 'n_tokens_neox': 263, 'n_words': 70}