<commit_before># encoding: utf-8

require './application'

require 'dotenv'
Dotenv.load


BASE_DIR = "#{__dir__}"

path = Pathname.new("#{BASE_DIR}/tmp/test_config")

config = AqBanking::Config.new(path.to_s)
account_manager = AqBanking::AccountManager.new(config)

user = AqBanking::User.new("App", ENV["TEST_BLZ"], ENV["TEST_CUSTOMER"], ENV["TEST_SERVER"])

user_manager = AqBanking::UserManager.new(config)
user_manager.add user
<commit_msg>Transmit PIN when creating user, necessary for comdirect (and possibly others)<commit_after># encoding: utf-8

require './application'

require 'dotenv'
Dotenv.load


BASE_DIR = "#{__dir__}"

path = Pathname.new("#{BASE_DIR}/tmp/test_config")

config = AqBanking::Config.new(path.to_s)
account_manager = AqBanking::AccountManager.new(config)

user = AqBanking::User.new("App", ENV["TEST_BLZ"], ENV["TEST_CUSTOMER"], ENV["TEST_SERVER"])

user_manager = AqBanking::UserManager.new(config)

p "adding user"
user_manager.add user, ENV["TEST_PIN"]

p "refreshing"
{'fraction_non_alphanumeric': 0.15768463073852296, 'fraction_numerical': 0.001996007984031936, 'mean_word_length': 7.221311475409836, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3035466', 'n_tokens_mistral': 373, 'n_tokens_neox': 368, 'n_words': 66}