<commit_before>using KeyPay.DomainModels.V2.PayRun;
using RestSharp;

namespace KeyPay.ApiFunctions.V2
{
    public class PayRunDeductionFunction : BaseFunction
    {
        public PayRunDeductionFunction(ApiRequestExecutor api)
            : base(api)
        {
        }

        public DeductionsResponse List(int businessId, int payRunId)
        {
            return ApiRequest<DeductionsResponse>("/business/" + businessId + "/payrun/" + payRunId + "/deductions");
        }

        public DeductionModel Submit(int businessId, SubmitDeductionsRequest deductions)<commit_msg>Add function to get deductions from a payrun for a specific employee<commit_after>using KeyPay.DomainModels.V2.PayRun;
using RestSharp;

namespace KeyPay.ApiFunctions.V2
{
    public class PayRunDeductionFunction : BaseFunction
    {
        public PayRunDeductionFunction(ApiRequestExecutor api)
            : base(api)
        {
        }

        public DeductionsResponse List(int businessId, int payRunId)
        {
            return ApiRequest<DeductionsResponse>("/business/" + businessId + "/payrun/" + payRunId + "/deductions");
        }

        public DeductionsResponse List(int businessId, int payRunId, int employeeId)
        {
            return ApiRequest<DeductionsResponse>("/business/" + businessId + "/payrun/" + payRunId + "/deductions/" + employeeId);
        }

        public DeductionModel Submit(int businessId, SubmitDeductionsRequest deductions)
{'fraction_non_alphanumeric': 0.08498971898560657, 'fraction_numerical': 0.0027416038382453737, 'mean_word_length': 3.0, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '3225885', 'n_tokens_mistral': 412, 'n_tokens_neox': 400, 'n_words': 89}