<commit_before>package me.zford.jobs.bukkit.tasks;

import java.util.List;

import me.zford.jobs.economy.BufferedPayment;
import net.milkbowl.vault.economy.Economy;

public class BufferedPaymentTask implements Runnable {
    private Economy economy;
    private List<BufferedPayment> payments;
    public BufferedPaymentTask(Economy economy, List<BufferedPayment> payments) {
        this.economy = economy;
        this.payments = payments;
    }
    @Override
    public void run() {
        for (BufferedPayment payment : payments) {
            economy.depositPlayer(payment.getPlayerName(), payment.getAmount());
        }
    }
}<commit_msg>Vault doesn't like negative deposits<commit_after>package me.zford.jobs.bukkit.tasks;

import java.util.List;

import me.zford.jobs.economy.BufferedPayment;
import net.milkbowl.vault.economy.Economy;

public class BufferedPaymentTask implements Runnable {
    private Economy economy;
    private List<BufferedPayment> payments;
    public BufferedPaymentTask(Economy economy, List<BufferedPayment> payments) {
        this.economy = economy;
        this.payments = payments;
    }
    @Override
    public void run() {
        for (BufferedPayment payment : payments) {
            if (payment.getAmount() > 0) {
                economy.depositPlayer(payment.getPlayerName(), payment.getAmount());
            } else {
                economy.withdrawPlayer(payment.getPlayerName(), -payment.getAmount());
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.09757738896366083, 'fraction_numerical': 0.0006729475100942127, 'mean_word_length': 3.119113573407202, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '3834891', 'n_tokens_mistral': 441, 'n_tokens_neox': 425, 'n_words': 86}