<commit_before>package io.subutai.common.util;


import org.apache.commons.lang3.exception.ExceptionUtils;


public class ExceptionUtil
{
    public Throwable getRootCause( Throwable throwable )
    {
        Throwable cause = ExceptionUtils.getRootCause( throwable );

        return cause == null ? throwable : cause;
    }
}<commit_msg>added unwrapping InvocationTargetException into io.subutai.common.util.ExceptionUtil.getRootCause method #1964<commit_after>package io.subutai.common.util;


import java.lang.reflect.InvocationTargetException;

import org.apache.commons.lang3.exception.ExceptionUtils;


public class ExceptionUtil
{
    public Throwable getRootCause( Throwable throwable )
    {
        Throwable cause = ExceptionUtils.getRootCause( throwable );

        if ( cause instanceof InvocationTargetException )
        {
            cause = cause.getCause();
        }

        return cause == null ? throwable : cause;
    }
}
{'fraction_non_alphanumeric': 0.08148148148148149, 'fraction_numerical': 0.006349206349206349, 'mean_word_length': 3.4834123222748814, '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': '3877278', 'n_tokens_mistral': 271, 'n_tokens_neox': 254, 'n_words': 56}