<commit_before>package de.fau.amos.virtualledger.server.banking.adorsys.api;


import de.fau.amos.virtualledger.server.banking.model.BankAccessBankingModel;
import de.fau.amos.virtualledger.server.banking.model.BankAccountBankingModel;
import de.fau.amos.virtualledger.server.banking.model.BankingException;
import de.fau.amos.virtualledger.server.banking.model.BookingModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Class that can be used in other controllers to do interaction with banking api.
 */
@Component

public class BankingApiFacade {


    BankingApiBinder binder;

    @Autowired
    public BankingApiFacade(BankingApiBinder binder) {
        this.binder = binder;
    }
    // protected empty constructor required for server to init it
    protected BankingApiFacade() { }




    public void createUser(String userId)
    {
        binder.getUserEndpoint(userId).createUser(userId);
    }

    public List<BankAccessBankingModel> getBankAccesses(String userId) throws BankingException
    {
        return binder.getBankAccessEndpoint(userId).getBankAccesses(userId);
    }

    public List<BankAccountBankingModel> getBankAccounts(String userId, String bankAccessId) throws BankingException
    {
        return binder.getBankAccountEndpoint(userId).getBankAccounts(userId, bankAccessId);
    }

    public List<BookingModel> syncBankAccount(String userId, String bankAccessId, String bankAccountId, String pin) throws BankingException
    {
        return binder.getBankAccountEndpoint(userId).syncBankAccount(userId, bankAccessId, bankAccountId, pin);
    }

    public void addBankAccess(String userId, BankAccessBankingModel bankAccess) throws BankingException
    {
        binder.getBankAccessEndpoint(userId).addBankAccess(userId, bankAccess);
    }

}
<commit_msg>checkstyle: fixed checkstryle-violations in BankingApiFacade<commit_after>package de.fau.amos.virtualledger.server.banking.adorsys.api;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import de.fau.amos.virtualledger.server.banking.model.BankAccessBankingModel;
import de.fau.amos.virtualledger.server.banking.model.BankAccountBankingModel;
import de.fau.amos.virtualledger.server.banking.model.BankingException;
import de.fau.amos.virtualledger.server.banking.model.BookingModel;

/**
 * Class that can be used in other controllers to do interaction with banking
 * api.
 */
@Component

public class BankingApiFacade {

    private BankingApiBinder binder;

    @Autowired
    public BankingApiFacade(BankingApiBinder binder) {
        this.binder = binder;
    }

    // protected empty constructor required for server to init it
    protected BankingApiFacade() {
    }

    public void createUser(String userId) {
        binder.getUserEndpoint(userId).createUser(userId);
    }

    public List<BankAccessBankingModel> getBankAccesses(String userId) throws BankingException {
        return binder.getBankAccessEndpoint(userId).getBankAccesses(userId);
    }

    public List<BankAccountBankingModel> getBankAccounts(String userId, String bankAccessId) throws BankingException {
        return binder.getBankAccountEndpoint(userId).getBankAccounts(userId, bankAccessId);
    }

    public List<BookingModel> syncBankAccount(String userId, String bankAccessId, String bankAccountId, String pin)
            throws BankingException {
        return binder.getBankAccountEndpoint(userId).syncBankAccount(userId, bankAccessId, bankAccountId, pin);
    }

    public void addBankAccess(String userId, BankAccessBankingModel bankAccess) throws BankingException {
        binder.getBankAccessEndpoint(userId).addBankAccess(userId, bankAccess);
    }

}

{'fraction_non_alphanumeric': 0.08032955715756952, 'fraction_numerical': 0.0, 'mean_word_length': 4.696480938416422, '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': '145407', 'n_tokens_mistral': 1122, 'n_tokens_neox': 1122, 'n_words': 215}