<commit_before>package org.jetbrains.plugins.scala.lang.psi.api.expr.aux
/**
* @author ilyas 
*/

import org.jetbrains.plugins.scala.lang.psi.ScalaPsiElement
import com.intellij.psi.PsiElement

trait ScConditional extends ScalaPsiElement {
  
  def isCondition = (e: PsiElement) => {
    e.isInstanceOf[ScExpression] &&
    {
      val parent = e.getParent
      val last = for (val child <- parent.getChildren; child.isInstanceOf[ScExpression]) child
      parent != last
    }
  }

  def condition: ScExpression = childSatisfyPredicateForPsiElement(isCondition).asInstanceOf[ScExpression]

}<commit_msg>cleanup<commit_after>package org.jetbrains.plugins.scala.lang.psi.api.expr.aux
/**
* @author ilyas 
*/

import org.jetbrains.plugins.scala.lang.psi.ScalaPsiElement
import com.intellij.psi.PsiElement

trait ScConditional extends ScalaPsiElement {  
  
  def isCondition = (e: PsiElement) => {
    e.isInstanceOf[ScExpression] &&
    {
      val parent = e.getParent
      val last = for (val child <- parent.getChildren; child.isInstanceOf[ScExpression]) child
      parent != last
    }
  }

  def condition: ScExpression = childSatisfyPredicateForPsiElement(isCondition).asInstanceOf[ScExpression]

}
{'fraction_non_alphanumeric': 0.1077943615257048, 'fraction_numerical': 0.0, 'mean_word_length': 4.008298755186722, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2894786', 'n_tokens_mistral': 396, 'n_tokens_neox': 384, 'n_words': 68}