<commit_before>package com.github.cstroe.spendhawk.helper;

import com.github.cstroe.spendhawk.entity.Account;
import com.github.cstroe.spendhawk.entity.Category;
import com.github.cstroe.spendhawk.entity.Expense;
import com.github.cstroe.spendhawk.entity.Transaction;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVRecord;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.LinkedList;
import java.util.List;

public class TransactionsHelper {<commit_msg>Comment transactions helper.  Should probably be moved to EJBs?<commit_after>package com.github.cstroe.spendhawk.helper;

import com.github.cstroe.spendhawk.entity.Account;
import com.github.cstroe.spendhawk.entity.Category;
import com.github.cstroe.spendhawk.entity.Expense;
import com.github.cstroe.spendhawk.entity.Transaction;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVRecord;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.LinkedList;
import java.util.List;

/**
 * The transactions helper parses CSV files of transactions.
 *
 * Currently supported formats are:
 * <ul>
 *     <li>Chase: (Type,Date,Description,Amount,Check or Slip #)</li>
 *     <li>Capital One: (Date,Account No.,Description,Debit Amount,Credit Amount)</li>
 * </ul>
 *
 * Each of these is mapped to our {@link com.github.cstroe.spendhawk.entity.Transaction Transaction} class.
 *
 * Also, creates expenses for a set of transactions.
 */
public class TransactionsHelper {
{'fraction_non_alphanumeric': 0.11078717201166181, 'fraction_numerical': 0.0, 'mean_word_length': 5.549618320610687, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '420280', 'n_tokens_mistral': 555, 'n_tokens_neox': 550, 'n_words': 114}