<commit_before>import Image

from ella.utils.filemanipulation import file_rename



def detect_img_type(imagePath):
    try:
        im = Image.open(imagePath)
        return im.format
    except IOError:
        return None

def get_img_size(imagePath):
    """ returns tuple (width, height) of image """
    try:
        import pdb; pdb.set_trace()
        im = Image.open(imagePath)
        return {
            'width': im.size[0],
            'height': im.size[1]
}
    except IOError:
        return None
<commit_msg>fix - debugger removed<commit_after>import Image

from ella.utils.filemanipulation import file_rename



def detect_img_type(imagePath):
    try:
        im = Image.open(imagePath)
        return im.format
    except IOError:
        return None

def get_img_size(imagePath):
    """ returns tuple (width, height) of image """
    try:
        im = Image.open(imagePath)
        return {
            'width': im.size[0],
            'height': im.size[1]
}
    except IOError:
        return None

{'fraction_non_alphanumeric': 0.09911678115799803, 'fraction_numerical': 0.003925417075564278, 'mean_word_length': 2.279742765273312, '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': '2093720', 'n_tokens_mistral': 316, 'n_tokens_neox': 313, 'n_words': 79}