<commit_before># -*- coding: UTF-8 -*-
import logging

logging.basicConfig(level=logging.DEBUG)

from sii.server import *
from spec.testing_data import DataGenerator

data_gen = DataGenerator()
in_invoice = data_gen.get_in_invoice()
out_invoice = data_gen.get_out_invoice()
s = Service('/home/miquel/Documents/SII/client_ssl/client.crt',
            '/home/miquel/Documents/SII/client_ssl/client.key')
invoice = out_invoice
s.send(invoice)

print s.result<commit_msg>Test-Mod testing to use refunds too<commit_after># -*- coding: UTF-8 -*-
import logging

logging.basicConfig(level=logging.DEBUG)

from sii.server import *
from spec.testing_data import DataGenerator

data_gen = DataGenerator()
in_invoice = data_gen.get_in_invoice()
out_invoice = data_gen.get_out_invoice()
in_refund = data_gen.get_in_refund_invoice()
out_refund = data_gen.get_out_refund_invoice()
s = Service('/home/miquel/Documents/SII/client_ssl/client.crt',
            '/home/miquel/Documents/SII/client_ssl/client.key')
invoice = out_refund
s.send(invoice)

print s.result
{'fraction_non_alphanumeric': 0.11938872970391595, 'fraction_numerical': 0.0019102196752626551, 'mean_word_length': 5.201183431952662, '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': '5163966', 'n_tokens_mistral': 381, 'n_tokens_neox': 374, 'n_words': 62}