<commit_before>package com.breakersoft.plow.thrift;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;

@Aspect
public class ThriftAspect {

    @Pointcut("within(@com.breakersoft.plow.thrift.ThriftService *)")
    public void thriftService() {}

    @Pointcut("execution(* *(..))")
    public void methodPointcut() {}

    @Around("thriftService() && methodPointcut()")
    public Object aroundAdvice(ProceedingJoinPoint joinPoint) throws Throwable {
        try {
            return joinPoint.proceed();
        }
        catch (Throwable t) {
            throw new PlowException(0, "Plow operation failed: "  + t);
        }
    }
}
<commit_msg>log any exceptions to stdout for now.<commit_after>package com.breakersoft.plow.thrift;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;

@Aspect
public class ThriftAspect {

    @Pointcut("within(@com.breakersoft.plow.thrift.ThriftService *)")
    public void thriftService() {}

    @Pointcut("execution(* *(..))")
    public void methodPointcut() {}

    @Around("thriftService() && methodPointcut()")
    public Object aroundAdvice(ProceedingJoinPoint joinPoint) throws Throwable {
        try {
            return joinPoint.proceed();
        }
        catch (Throwable t) {
            t.printStackTrace();
            throw new PlowException(0, "Plow operation failed: "  + t);
        }
    }
}

{'fraction_non_alphanumeric': 0.12274143302180686, 'fraction_numerical': 0.0012461059190031153, 'mean_word_length': 3.364130434782609, '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': '3109512', 'n_tokens_mistral': 502, 'n_tokens_neox': 489, 'n_words': 93}