<commit_before>import subprocess
import tempfile
import time
from decimal import Decimal

from pretix.base.decimal import round_decimal


def hbci_transactions(event, conf):
    try:
        from defusedxml import ElementTree
    except:
        from xml.etree import ElementTree

    log = []
    data = []
    accname = event.id + '_' + str(int(time.time()))
    try:
        try:
            subprocess.call([
                'aqhbci-tool4', 'deluser', '-a', '--all',
                '-b', conf['hbci_blz'],
                '-u', conf['hbci_userid']
            ])
        except subprocess.CalledProcessError:
            pass
        aqhbci_params = [
            'aqhbci-tool4', 'adduser',
            '-N', accname,
            '-b', conf['hbci_blz'],
            '-s', conf['hbci_server'],
            '-t', conf['hbci_tokentype'],
            '-u', conf['hbci_userid']
        ]
        if conf['hbci_customerid']:
            aqhbci_params += ['-c', conf['hbci_customerid']]
        if conf['hbci_tokenname']:<commit_msg>Fixed TypeError in HBCI import<commit_after>import subprocess
import tempfile
import time
from decimal import Decimal

from pretix.base.decimal import round_decimal


def hbci_transactions(event, conf):
    try:
        from defusedxml import ElementTree
    except:
        from xml.etree import ElementTree

    log = []
    data = []
    accname = 'pretix_%d_%d' % (event.id, int(time.time() * 1000))
    try:
        try:
            subprocess.call([
                'aqhbci-tool4', 'deluser', '-a', '--all',
                '-b', conf['hbci_blz'],
                '-u', conf['hbci_userid']
            ])
        except subprocess.CalledProcessError:
            pass
        aqhbci_params = [
            'aqhbci-tool4', 'adduser',
            '-N', accname,
            '-b', conf['hbci_blz'],
            '-s', conf['hbci_server'],
            '-t', conf['hbci_tokentype'],
            '-u', conf['hbci_userid']
        ]
        if conf['hbci_customerid']:
            aqhbci_params += ['-c', conf['hbci_customerid']]
        if conf['hbci_tokenname']:
{'fraction_non_alphanumeric': 0.13999044433827043, 'fraction_numerical': 0.003822264691829909, 'mean_word_length': 1.9002770083102494, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '809362', 'n_tokens_mistral': 704, 'n_tokens_neox': 657, 'n_words': 137}