<commit_before>package org.codehaus.groovy.tools;

import org.codehaus.groovy.GroovyException;

import java.io.PrintStream;
import java.io.PrintWriter;

public class MultiException
    extends GroovyException
{
    private Exception[] errors;

    public MultiException(Exception[] errors)
    {
        this.errors = errors;
    }

    public void printStackTrace()
    {
        for ( int i = 0 ; i < this.errors.length ; ++i )
        {
            this.errors[ i ].printStackTrace();
        }
    }

    public void printStackTrace(PrintStream s)
    {
        for ( int i = 0 ; i < this.errors.length ; ++i )
        {
            this.errors[ i ].printStackTrace( s );
        }
    }

    public void printStackTrace(PrintWriter s)
    {
        for ( int i = 0 ; i < this.errors.length ; ++i )
        {
            this.errors[ i ].printStackTrace( s );
        }
    }

    public String getMessage()
    {
        StringBuffer buffer = new StringBuffer();

        for ( int i = 0 ; i < this.errors.length ; ++i )
        {
            buffer.append( this.errors[ i ].getMessage() );

            if ( i < this.errors.length - 1 )
            {
                buffer.append( ", " );
            }
        }

        return buffer.toString();
    }

    public String toString()
    {
        StringBuffer buffer = new StringBuffer();

        for ( int i = 0 ; i < this.errors.length ; ++i )
        {
            buffer.append( this.errors[ i ].toString() );

            if ( i < this.errors.length - 1 )
            {
                buffer.append( ", " );
            }
        }
        
        return buffer.toString();
    }
}<commit_msg>added acces to nested exceptions<commit_after>package org.codehaus.groovy.tools;

import org.codehaus.groovy.GroovyException;

import java.io.PrintStream;
import java.io.PrintWriter;

public class MultiException
    extends GroovyException
{
    private Exception[] errors;

    public MultiException(Exception[] errors)
    {
        this.errors = errors;
    }

    public void printStackTrace()
    {
        for ( int i = 0 ; i < this.errors.length ; ++i )
        {
            this.errors[ i ].printStackTrace();
        }
    }

    public void printStackTrace(PrintStream s)
    {
        for ( int i = 0 ; i < this.errors.length ; ++i )
        {
            this.errors[ i ].printStackTrace( s );
        }
    }

    public void printStackTrace(PrintWriter s)
    {
        for ( int i = 0 ; i < this.errors.length ; ++i )
        {
            this.errors[ i ].printStackTrace( s );
        }
    }

    public String getMessage()
    {
        StringBuffer buffer = new StringBuffer();

        for ( int i = 0 ; i < this.errors.length ; ++i )
        {
            buffer.append( this.errors[ i ].getMessage() );

            if ( i < this.errors.length - 1 )
            {
                buffer.append( ", " );
            }
        }

        return buffer.toString();
    }

    public String toString()
    {
        StringBuffer buffer = new StringBuffer();

        for ( int i = 0 ; i < this.errors.length ; ++i )
        {
            buffer.append( this.errors[ i ].toString() );

            if ( i < this.errors.length - 1 )
            {
                buffer.append( ", " );
            }
        }

        return buffer.toString();
    }

    public Exception[] getErrors(){
		return errors;
	}
}
{'fraction_non_alphanumeric': 0.11901949202598937, 'fraction_numerical': 0.004134672179562906, 'mean_word_length': 1.5370786516853931, 'pattern_counts': {'":': 0, '<': 17, '<?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': '1213228', 'n_tokens_mistral': 1003, 'n_tokens_neox': 954, 'n_words': 237}