<commit_before>import _clast
from _clast import *

## REPRESENTATIVE CLASSES ONLY

def cxxRecordDecl(*args):
    return _clast._cxxRecordDecl(list(args))

def decl(*args):
    return _clast._decl(list(args))

def stmt(*args):
    return _clast._stmt(list(args))

def forStmt(*args):
    return _clast._forStmt(list(args))

def hasLoopInit(arg):
    return _clast._hasLoopInit(arg)

def ifStmt(*args):
    return _clast._ifStmt(list(args))

def hasCondition(expr):
    return _clast._hasCondition(expr)<commit_msg>tidy up of DynTypedNode in python<commit_after>import _clast
from _clast import *

def __get(self, kind):
    return getattr(self, '_get_' + kind.__name__)()

# Monkey patch an extra method on that we can't do in C++
_clast.DynTypedNode.get = __get
{'fraction_non_alphanumeric': 0.11432325886990802, 'fraction_numerical': 0.0, 'mean_word_length': 5.145161290322581, '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': '5128257', 'n_tokens_mistral': 277, 'n_tokens_neox': 275, 'n_words': 66}