<commit_before>package org.jetbrains.plugins.scala.lang.psi.impl.base.types

import org.jetbrains.plugins.scala.lang.lexer.ScalaTokenTypes
import org.jetbrains.plugins.scala.lang.parser.ScalaElementTypes
import org.jetbrains.plugins.scala.lang.psi.ScalaPsiElementImpl

import com.intellij.psi.tree.TokenSet
import com.intellij.lang.ASTNode
import com.intellij.psi.tree.IElementType;
import com.intellij.psi._

import org.jetbrains.annotations._

import org.jetbrains.plugins.scala.lang.psi.impl.ScalaPsiElementFactory
import org.jetbrains.plugins.scala.icons.Icons

import org.jetbrains.plugins.scala.lang.psi.api.base.types._
import org.jetbrains.plugins.scala.lang.psi.types._


/** 
* @author <NAME>
* Date: 13.03.2008
*/

class ScTypeProjectionImpl(node: ASTNode) extends ScalaPsiElementImpl (node) with ScTypeProjection{
  override def toString: String = "TypeProjection"

  def projectedName() = findChildByType(ScalaTokenTypes.tIDENTIFIER) match {
    case null => None
    case id => Some(id.getText)
  }

  override def getType() = projectedName match {
    case None => Nothing
    case Some(name) => new ScProjectionType(typeElement.getType, name)
  }<commit_msg>cleanup<commit_after>package org.jetbrains.plugins.scala.lang.psi.impl.base.types

import lexer.ScalaTokenTypes
import psi.ScalaPsiElementImpl
import api.base.types._
import psi.types._

import com.intellij.lang.ASTNode

/** 
* @author <NAME>
* Date: 13.03.2008
*/

class ScTypeProjectionImpl(node: ASTNode) extends ScalaPsiElementImpl (node) with ScTypeProjection{
  override def toString: String = "TypeProjection"

  def projectedName() = findChildByType(ScalaTokenTypes.tIDENTIFIER) match {
    case null => None
    case id => Some(id.getText)
  }

  override def getType() = projectedName match {
    case None => Nothing
    case Some(name) => new ScProjectionType(typeElement.getType, name)
  }
{'fraction_non_alphanumeric': 0.10767590618336886, 'fraction_numerical': 0.008528784648187633, 'mean_word_length': 4.865625, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '4632389', 'n_tokens_mistral': 642, 'n_tokens_neox': 605, 'n_words': 118}