<commit_before>import Sofa

def f3():
    raise ValueError('The value is not valid')

class TestController(Sofa.PythonScriptController):
    def __init__(self):
            return None

    def onLoaded(self, node):
        print("LOADED !")
        name = findData("name")
        name.setValue( 123 )

    def f2(self):
        f3()

    def draw(self):
        self.f2()<commit_msg>[SofaPython] Improve the tests.<commit_after>import Sofa

def f3():
    raise ValueError('The value is not valid')

class TestController(Sofa.PythonScriptController):
    def __init__(self):
            return None

    def onBeginAnimationStep(self, v):
        name = self.findData("name")
        name.setValue( 123 )

    def onEndAnimationStep(self, v):
        name = self.findData("name")
        name.setValue( 123 )


    def f2(self):
        f3()

    def draw(self):
        self.f2()
{'fraction_non_alphanumeric': 0.11577752553916004, 'fraction_numerical': 0.019296254256526674, 'mean_word_length': 2.486166007905138, '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': '5715091', 'n_tokens_mistral': 290, 'n_tokens_neox': 271, 'n_words': 68}