<commit_before>package sexp

import (
	"sys_info/old_rt"
)

// IsStmt returns true for statement form.
func IsStmt(form Form) bool {
	return form.Type() == typVoid
}

func IsThrow(form Form) bool {
	switch form := form.(type) {
	case *Call:
		return old_rt.ThrowingFuncs[form.Fn.Name]
	case *LispCall:
		return old_rt.ThrowingFuncs[form.Fn.Sym]

	default:
		return false
	}
}

// IsReturning returns true for forms that unconditionally
// return from function.
func IsReturning(form Form) bool {
	switch form := form.(type) {
	case *Return:
		return true

	case *Block:
		for _, form := range form.Forms {
			if IsReturning(form) {
				return true
			}
		}

	case *If:<commit_msg>fix compilation (typo)<commit_after>package sexp

import (
	"sys_info/old_rt"
	"xtypes"
)

// IsStmt returns true for statement form.
func IsStmt(form Form) bool {
	return form.Type() == xtypes.TypVoid
}

func IsThrow(form Form) bool {
	switch form := form.(type) {
	case *Call:
		return old_rt.ThrowingFuncs[form.Fn.Name]
	case *LispCall:
		return old_rt.ThrowingFuncs[form.Fn.Sym]

	default:
		return false
	}
}

// IsReturning returns true for forms that unconditionally
// return from function.
func IsReturning(form Form) bool {
	switch form := form.(type) {
	case *Return:
		return true

	case *Block:
		for _, form := range form.Forms {
			if IsReturning(form) {
				return true
			}
		}

	case *If:
{'fraction_non_alphanumeric': 0.11327561327561328, 'fraction_numerical': 0.0, 'mean_word_length': 3.5927152317880795, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1270136', 'n_tokens_mistral': 526, 'n_tokens_neox': 497, 'n_words': 138}