<commit_before>package org.jetbrains.plugins.scala.lang.psi.impl.expressions{
/**
* @author <NAME>
*/
import com.intellij.lang.ASTNode
import com.intellij.psi._

import org.jetbrains.plugins.scala.lang.psi._
import org.jetbrains.plugins.scala.lang.formatting.patterns.indent._
import org.jetbrains.plugins.scala.lang.psi.impl.patterns.ScCaseClauseImpl
import com.intellij.psi.tree.IElementType
import org.jetbrains.plugins.scala.lang.parser.ScalaElementTypes
import com.intellij.psi.tree.TokenSet

  case class ScIfStmtImpl( node : ASTNode ) extends ScExprImpl(node) with IfElseIndent {
      override def toString: String = "IF statement"

      def isCondition = (e : PsiElement) => e.isInstanceOf[ScExpr1Impl]
      def condition : ScExpr1Impl = childSatisfyPredicateForPsiElement(isCondition).asInstanceOf[ScExpr1Impl]

      def getType() : PsiType = null
  }

  case class ScForStmtImpl( node : ASTNode ) extends ScExpr1Impl(node)  with IfElseIndent{
      override def toString: String = "FOR statement"

      def isEnumerators = (e : PsiElement) => e.isInstanceOf[ScEnumeratorsImpl]

      def enumerators : ScEnumeratorsImpl = childSatisfyPredicateForPsiElement(isEnumerators).asInstanceOf[ScEnumeratorsImpl]

      def getType() : PsiType = null
  }

  case class ScDoStmtImpl( node : ASTNode ) extends ScExpr1Impl(node)  with IfElseIndent{
      override def toString: String = "DO statement"

      def isCondition = (e : PsiElement) => e.isInstanceOf[ScExprImpl]
      def condition : ScExprImpl = /*childSatisfyPredicateForPsiElement(isCondition).asInstanceOf[ScExpr1Impl]*/
          childSatisfyPredicateForPsiElement(isCondition, getLastChild, (e : PsiElement) => e.getPrevSibling).asInstanceOf[ScExprImpl]

      def getType() : PsiType = null
  }

  case class ScTryStmtImpl( node : ASTNode ) extends ScExpr1Impl(node) {
      override def toString: String = "TRY statement"

      def isTryBlock = (e : IElementType) => ScalaElementTypes.TRY_BLOCK.equals(e)
      def tryBlock = childSatisfyPredicateForElementType(isTryBlock).asInstanceOf[ScTryBlockImpl]

      def isCatchBlock = (e : IElementType) => ScalaElementTypes.CATCH_BLOCK.equals(e)
      def catchBlock = childSatisfyPredicateForElementType(isCatchBlock).asInstanceOf[ScCatchBlockImpl]

      def getType() : PsiType = null
  }

      case class ScTryBlockImpl( node : ASTNode ) extends ScExpr1Impl(node) with BlockedIndent{
          override def toString: String = "Try block"
          def getType() : PsiType = null
      }
      case class ScCatchBlockImpl( node : ASTNode ) extends ScalaPsiElementImpl(node) with BlockedIndent{
          override def toString: String = "Catch block"
<commit_msg>Added most intelligebt keyword completion<commit_after>package org.jetbrains.plugins.scala.lang.psi.impl.expressions{
/**
* @author <NAME>
*/
import com.intellij.lang.ASTNode
import com.intellij.psi._

import org.jetbrains.plugins.scala.lang.psi._
import org.jetbrains.plugins.scala.lang.formatting.patterns.indent._
import org.jetbrains.plugins.scala.lang.psi.impl.patterns.ScCaseClauseImpl
import com.intellij.psi.tree.IElementType
import org.jetbrains.plugins.scala.lang.parser.ScalaElementTypes
import com.intellij.psi.tree.TokenSet

  case class ScIfStmtImpl( node : ASTNode ) extends ScExprImpl(node) with IfElseIndent {
      override def toString: String = "IF statement"

      def isCondition = (e : PsiElement) => e.isInstanceOf[ScExpr1Impl]
      def condition : ScExpr1Impl = childSatisfyPredicateForPsiElement(isCondition).asInstanceOf[ScExpr1Impl]

      def getType() : PsiType = null
  }

  case class ScForStmtImpl( node : ASTNode ) extends ScExpr1Impl(node)  with IfElseIndent{
      override def toString: String = "FOR statement"

      def isEnumerators = (e : PsiElement) => e.isInstanceOf[ScEnumeratorsImpl]

      def enumerators : ScEnumeratorsImpl = childSatisfyPredicateForPsiElement(isEnumerators).asInstanceOf[ScEnumeratorsImpl]

      def getType() : PsiType = null
  }

  case class ScDoStmtImpl( node : ASTNode ) extends ScExpr1Impl(node)  with IfElseIndent{
      override def toString: String = "DO statement"

      def isCondition = (e : PsiElement) => e.isInstanceOf[ScExprImpl]
      def condition : ScExprImpl = /*childSatisfyPredicateForPsiElement(isCondition).asInstanceOf[ScExpr1Impl]*/
          childSatisfyPredicateForPsiElement(isCondition, getLastChild, (e : PsiElement) => e.getPrevSibling).asInstanceOf[ScExprImpl]

      def getType() : PsiType = null
  }

  case class ScTryStmtImpl( node : ASTNode ) extends ScExpr1Impl(node) {
      override def toString: String = "TRY statement"

      def isTryBlock = (e : IElementType) => ScalaElementTypes.TRY_BLOCK.equals(e)
      def tryBlock = childSatisfyPredicateForElementType(isTryBlock).asInstanceOf[ScTryBlockImpl]

      def isCatchBlock = (e : IElementType) => ScalaElementTypes.CATCH_BLOCK.equals(e)
      def catchBlock = childSatisfyPredicateForElementType(isCatchBlock).asInstanceOf[ScCatchBlockImpl]

      def getType() : PsiType = null
  }

      case class ScTryBlockImpl( node : ASTNode ) extends ScExpr1Impl(node) with IfElseIndent{
          override def toString: String = "Try block"
          def getType() : PsiType = null
      }
      case class ScCatchBlockImpl( node : ASTNode ) extends ScalaPsiElementImpl(node) with IfElseIndent{
          override def toString: String = "Catch block"

{'fraction_non_alphanumeric': 0.0904373610081542, 'fraction_numerical': 0.0029651593773165306, 'mean_word_length': 4.3067846607669615, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '7063259', 'n_tokens_mistral': 1713, 'n_tokens_neox': 1676, 'n_words': 356}