<commit_before># Copyright (c) 2016 Tzutalin
# Create by TzuTaLin <<EMAIL>>

try:
    from PyQt5.QtGui import QImage
except ImportError:
    from PyQt4.QtGui import QImage

from base64 import b64encode, b64decode
from pascal_voc_io import PascalVocWriter
import os.path
import sys


class LabelFileError(Exception):
    pass


class LabelFile(object):
    # It might be changed as window creates
    suffix = '.lif'

    def __init__(self, filename=None):
        self.shapes = ()
        self.imagePath = None<commit_msg>Changed .lif to .xml, allowing annotation I/O<commit_after># Copyright (c) 2016 Tzutalin
# Create by TzuTaLin <<EMAIL>>

try:
    from PyQt5.QtGui import QImage
except ImportError:
    from PyQt4.QtGui import QImage

from base64 import b64encode, b64decode
from pascal_voc_io import PascalVocWriter
import os.path
import sys


class LabelFileError(Exception):
    pass


class LabelFile(object):
    # It might be changed as window creates
    suffix = '.xml'

    def __init__(self, filename=None):
        self.shapes = ()
        self.imagePath = None
{'fraction_non_alphanumeric': 0.0762081784386617, 'fraction_numerical': 0.022304832713754646, 'mean_word_length': 3.6422413793103448, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7174747', 'n_tokens_mistral': 363, 'n_tokens_neox': 339, 'n_words': 111}