<commit_before>import os
import sys
sys.path.insert(0, os.path.abspath('python-xbrl'))
import pytest

try:
    from StringIO import StringIO
except ImportError:
    from io import StringIO

from parser import soup_maker, XBRLParser, XBRLParserException, GAAP, GAAPSerializer

def test_parse_empty_file():
    xbrl_parser = XBRLParser()
    file_to_parse = "tests/nothing.xml"<commit_msg>forgot to rename the test import too<commit_after>import os
import sys
sys.path.insert(0, os.path.abspath('python-xbrl'))
import pytest

try:
    from StringIO import StringIO
except ImportError:
    from io import StringIO

from xbrl import soup_maker, XBRLParser, XBRLParserException, GAAP, GAAPSerializer

def test_parse_empty_file():
    xbrl_parser = XBRLParser()
    file_to_parse = "tests/nothing.xml"
{'fraction_non_alphanumeric': 0.08050314465408805, 'fraction_numerical': 0.0025157232704402514, 'mean_word_length': 5.267716535433071, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '616168', 'n_tokens_mistral': 271, 'n_tokens_neox': 269, 'n_words': 71}