<commit_before>app.controller("EquationController", function($scope, Evaluator, CommonInit) {
    
    $scope.template = 'partials/equation.html';
    
    CommonInit.init( $scope, Evaluator );
    
    
    $scope.code = "onkoOikein = function(vasenVakio, vasenKerron, oikeaVakio, oikeaKerroin, arvaus) {\n return true; \n}";
    
    $scope.init = function() {
        
        $scope.numLeft = 3;
        $scope.varLeft = 5;
        $scope.numRight = 4;
        $scope.varRight = 5;
        $scope.x = 9000;
        $scope.session.setValue( this.code );
        
        eval( $scope.code );
    };
    
    $scope.checkAnswer = function(varX) {
                
        var res = onkoOikein( $scope.numLeft, $scope.varLeft, $scope.numRight, $scope.varRight, varX);
        
        if( res ) {
            $scope.answer_status = "Vastaus on oikein";
        } else {
            $scope.answer_status = "Vastaus on väärin";
        }

        // new variables
        
        var r = function(){ return Math.round( Math.random() * 5 ) + 1; };<commit_msg>Fix typo<commit_after>app.controller("EquationController", function($scope, Evaluator, CommonInit) {
    
    $scope.template = 'partials/equation.html';
    
    CommonInit.init( $scope, Evaluator );
    
    
    $scope.code = "onkoOikein = function(vasenVakio, vasenKerroin, oikeaVakio, oikeaKerroin, arvaus) {\n return true; \n}";
    
    $scope.init = function() {
        
        $scope.numLeft = 3;
        $scope.varLeft = 5;
        $scope.numRight = 4;
        $scope.varRight = 5;
        $scope.x = 9000;
        $scope.session.setValue( this.code );
        
        eval( $scope.code );
    };
    
    $scope.checkAnswer = function(varX) {
                
        var res = onkoOikein( $scope.numLeft, $scope.varLeft, $scope.numRight, $scope.varRight, varX);
        
        if( res ) {
            $scope.answer_status = "Vastaus on oikein";
        } else {
            $scope.answer_status = "Vastaus on väärin";
        }

        // new variables
        
        var r = function(){ return Math.round( Math.random() * 5 ) + 1; };
{'fraction_non_alphanumeric': 0.13541666666666666, 'fraction_numerical': 0.00946969696969697, 'mean_word_length': 1.9104683195592287, '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': '6077088', 'n_tokens_mistral': 728, 'n_tokens_neox': 702, 'n_words': 135}