<commit_before>package scala.meta.internal
package scalahost
package mirrors

import scala.{meta => m}
import scala.reflect.internal.util.{Position => GPosition, SourceFile => GSourceFile}
import scala.reflect.io.{AbstractFile => GFile, PlainFile => GPlainFile}

trait LocationOps { self: OnlineMirror =>
  implicit class XtensionGSourceFileLocation(gsource: GSourceFile) {
    def toAbsolutePath: m.AbsolutePath = gsource.file.toAbsolutePath
  }

  implicit class XtensionGFileAddr(gfile: GFile) {
    def toAbsolutePath: m.AbsolutePath = gfile match {
      case gfile: GPlainFile => m.AbsolutePath(gfile.file)
      case other => sys.error(s"unsupported file " + other)
    }
  }

  implicit class XtensionGPositionAnchor(pos: GPosition) {
    def toAnchor: m.Anchor = {
      assert(pos.isRange)
      m.Anchor(pos.source.toAbsolutePath, pos.start, pos.end)
    }
  }
}<commit_msg>fixing fallback from the Anchor rename<commit_after>package scala.meta.internal
package scalahost
package mirrors

import scala.{meta => m}
import scala.reflect.internal.util.{Position => GPosition, SourceFile => GSourceFile}
import scala.reflect.io.{AbstractFile => GFile, PlainFile => GPlainFile}

trait AnchorOps { self: OnlineMirror =>
  implicit class XtensionGSourceFileLocation(gsource: GSourceFile) {
    def toAbsolutePath: m.AbsolutePath = gsource.file.toAbsolutePath
  }

  implicit class XtensionGFileAddr(gfile: GFile) {
    def toAbsolutePath: m.AbsolutePath = gfile match {
      case gfile: GPlainFile => m.AbsolutePath(gfile.file)
      case other => sys.error(s"unsupported file " + other)
    }
  }

  implicit class XtensionGPositionAnchor(pos: GPosition) {
    def toAnchor: m.Anchor = {
      assert(pos.isRange)
      m.Anchor(pos.source.toAbsolutePath, pos.start, pos.end)
    }
  }
}
{'fraction_non_alphanumeric': 0.10373675404350251, 'fraction_numerical': 0.0, 'mean_word_length': 4.245614035087719, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '6038304', 'n_tokens_mistral': 585, 'n_tokens_neox': 580, 'n_words': 125}