You're developing a system to analyze transactions for potential fraud.
You have a list of transactions, each with a variety of attributes like amount, currency, status, and a fraud score.
Your goal is to calculate total amounts for different currencies only for transactions flagged non clean.
You shall refactor ONLY the analyze_transactions
method to be the shortest possible, without changing any other pieces of the code.