<commit_before>package org.drools.lang.descr;

import java.util.Collections;
import java.util.List;

public class FunctionDescr {
    private final String name;    
    
    private String parameterTypes[] = new String[0];
    private String parameterNames[] = new String[0];
    private String returnType = null;
    
    private final String text;  

    public FunctionDescr(String name, String[] parameterTypes, String[] parameterNames, String returnType, String text) {
        this.name = name;
        if (parameterTypes != null) {
            this.parameterTypes = parameterTypes;
        }
        if (parameterNames != null) {
            this.parameterNames = parameterNames;
        }
        this.text = text;
        this.returnType = returnType;
    }
    
    public String getName() {
        return name;
    }

    public String[] getParameterNames() {
        return parameterNames;
    }

    public String[] getParameterTypes() {
        return parameterTypes;
    }

    public String getReturnType() {
        return returnType;
    }

    public String getText() {
        return this.text;
    } 
}
<commit_msg>fixed up for types<commit_after>package org.drools.lang.descr;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class FunctionDescr {
    private final String name;    
    
    private List parameterTypes = Collections.EMPTY_LIST;
    private List parameterNames = Collections.EMPTY_LIST;
    private String returnType;
    
    private final String text;  

    public FunctionDescr(String name, String returnType, String text) {
        this.name = name;
        this.text = text;
    }
    
    public String getName() {
        return name;
    }

    public List getParameterNames() {
        return parameterNames;
    }

    public List getParameterTypes() {
        return parameterTypes;
    }
    
    public void addParameter(String type, String name) {
        if (this.parameterTypes == Collections.EMPTY_LIST) {
            this.parameterTypes = new ArrayList();
        }
        this.parameterTypes.add( type );
        
        if (this.parameterNames == Collections.EMPTY_LIST) {
            this.parameterNames = new ArrayList();
        }
        this.parameterNames.add( name );
    }
    

    public String getReturnType() {
        return returnType;
    }

    public String getText() {
        return this.text;
    } 
}

{'fraction_non_alphanumeric': 0.08158415841584159, 'fraction_numerical': 0.0007920792079207921, 'mean_word_length': 2.0143198090692125, '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': '7322188', 'n_tokens_mistral': 678, 'n_tokens_neox': 648, 'n_words': 174}