<commit_before>package org.scalalang.macroparadise
package typechecker

trait Typers {
  self: Analyzer =>

  import global._
  import definitions._
  import paradiseDefinitions._
  import scala.reflect.internal.Flags._
  import scala.reflect.internal.Mode

  trait ParadiseTyper extends Typer with ParadiseTyperContextErrors {
    import ParadiseTyperErrorGen._

    override def namer = super.namer.asInstanceOf[ParadiseNamer]

    override def reallyExists(sym: Symbol) = {
       if (isStale(sym)) sym.setInfo(NoType)
       (!isWeak(sym) || sym.info != NoType) && sym.exists
    }

    override def typed1(tree: Tree, mode: Mode, pt: Type): Tree = {
      def typedPackageDef(pdef: PackageDef) = {
        val PackageDef(pid, stats) = pdef
        val stats1 = namer.expandMacroAnnotations(pdef.stats)
        super.typed1(treeCopy.PackageDef(pdef, pid, stats1), mode, pt)<commit_msg>looks like the `reallyExists` override is no longer necessary<commit_after>package org.scalalang.macroparadise
package typechecker

trait Typers {
  self: Analyzer =>

  import global._
  import definitions._
  import paradiseDefinitions._
  import scala.reflect.internal.Flags._
  import scala.reflect.internal.Mode

  trait ParadiseTyper extends Typer with ParadiseTyperContextErrors {
    import ParadiseTyperErrorGen._

    override def namer = super.namer.asInstanceOf[ParadiseNamer]

    override def typed1(tree: Tree, mode: Mode, pt: Type): Tree = {
      def typedPackageDef(pdef: PackageDef) = {
        val PackageDef(pid, stats) = pdef
        val stats1 = namer.expandMacroAnnotations(pdef.stats)
        super.typed1(treeCopy.PackageDef(pdef, pid, stats1), mode, pt)
{'fraction_non_alphanumeric': 0.08867585380467345, 'fraction_numerical': 0.004793289394847214, 'mean_word_length': 3.940828402366864, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1696492', 'n_tokens_mistral': 530, 'n_tokens_neox': 507, 'n_words': 126}