<commit_before>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package nl.hmh.OldManOPA.model.decorator;

import java.util.Vector;
import nl.hmh.OldManOPA.model.INode;
import nl.hmh.OldManOPA.model.Node;

/**
 *
 * @author Pehr
 */
public class INodeConcreteDecorator extends INodeDecorator {

    public INodeConcreteDecorator(Node component) {
        super(component);
    }
    
    void writeResult(){
        System.out.println(this.component);
    }
    
    @Override
    public boolean calculate() {
        if(this.component.calculate())
            return true;
        return false;
    }
    
}<commit_msg>ZO nu wel goed. <NAME>?  xD<commit_after>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package nl.hmh.OldManOPA.model.decorator;

import java.util.Vector;
import nl.hmh.OldManOPA.model.INode;
import nl.hmh.OldManOPA.model.Node;

/**
 *
 * @author Pehr
 */
public class INodeConcreteDecorator extends INodeDecorator {

    public INodeConcreteDecorator(Node component) {
        super(component);
    }
    
    void writeResult(boolean result){
        System.out.println((result ? "true \n" : "false \n"));
    }
    
    @Override
    public boolean calculate() {
        boolean result = this.component.calculate();
        writeResult(result);
        if(result)
            return true;
        return false;
    }
    
}
{'fraction_non_alphanumeric': 0.10104744300677758, 'fraction_numerical': 0.0, 'mean_word_length': 2.7855477855477857, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '4629163', 'n_tokens_mistral': 497, 'n_tokens_neox': 498, 'n_words': 130}