<commit_before>/*                     __                                               *\
**     ________ ___   / /  ___     Scala API                            **
**    / __/ __// _ | / /  / _ |    (c) 2002-2006, LAMP/EPFL             **
**  __\ \/ /__/ __ |/ /__/ __ |                                         **
** /____/\___/_/ |_/____/_/ | |                                         **
**                          |/                                          **
\*                                                                      */

// $Id$


package scala.reflect


import Predef._

abstract class Symbol {
  val owner: Symbol
  val name: String
  val tpe: Type
}

abstract class GlobalSymbol(val fullname: String) extends Symbol {
  private val pointIndex = fullname.lastIndexOf(".")
  val owner: Symbol =
    if (pointIndex < 0) RootSymbol
    else Class(fullname.substring(0, pointIndex))
  val name: String =
    if (pointIndex < 0) fullname
    else fullname.substring(pointIndex, fullname.length())
}

abstract class LocalSymbol extends Symbol

case class Class(override val fullname: String) extends GlobalSymbol(fullname) {
  val tpe = NamedType(fullname)
}

case class Method(override val fullname: String, tpe: Type) extends GlobalSymbol(fullname)

case class Field(override val fullname: String, tpe: Type) extends GlobalSymbol(fullname)

case class TypeField(override val fullname: String, tpe: Type) extends GlobalSymbol(fullname)

case class LocalValue(owner: Symbol, name: String, tpe: Type) extends LocalSymbol

case class LocalMethod(owner: Symbol, name: String, tpe: Type) extends LocalSymbol

case object NoSymbol extends Symbol {
  val owner = null
  val name = null<commit_msg>remove the period from the short name of a symbol<commit_after>/*                     __                                               *\
**     ________ ___   / /  ___     Scala API                            **
**    / __/ __// _ | / /  / _ |    (c) 2002-2006, LAMP/EPFL             **
**  __\ \/ /__/ __ |/ /__/ __ |                                         **
** /____/\___/_/ |_/____/_/ | |                                         **
**                          |/                                          **
\*                                                                      */

// $Id$


package scala.reflect


import Predef._

abstract class Symbol {
  val owner: Symbol
  val name: String
  val tpe: Type
}

abstract class GlobalSymbol(val fullname: String) extends Symbol {
  private val pointIndex = fullname.lastIndexOf(".")
  val owner: Symbol =
    if (pointIndex < 0) RootSymbol
    else Class(fullname.substring(0, pointIndex))
  val name: String =
    if (pointIndex < 0) fullname
    else fullname.substring(pointIndex+1, fullname.length())
}

abstract class LocalSymbol extends Symbol

case class Class(override val fullname: String) extends GlobalSymbol(fullname) {
  val tpe = NamedType(fullname)
}

case class Method(override val fullname: String, tpe: Type) extends GlobalSymbol(fullname)

case class Field(override val fullname: String, tpe: Type) extends GlobalSymbol(fullname)

case class TypeField(override val fullname: String, tpe: Type) extends GlobalSymbol(fullname)

case class LocalValue(owner: Symbol, name: String, tpe: Type) extends LocalSymbol

case class LocalMethod(owner: Symbol, name: String, tpe: Type) extends LocalSymbol

case object NoSymbol extends Symbol {
  val owner = null
  val name = null
{'fraction_non_alphanumeric': 0.09530706836616454, 'fraction_numerical': 0.006662804171494786, 'mean_word_length': 1.7757234726688103, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 26, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3732817', 'n_tokens_mistral': 922, 'n_tokens_neox': 891, 'n_words': 270}