<commit_before>import os, sys

import Tkinter as tk

class GuiImage(object):
    icons = {}

    @staticmethod
    def __get_base_path():
        try:
            return os.path.join(sys._MEIPASS, 'res')
        except:
            return os.path.abspath(os.path.dirname(__file__))

    @staticmethod
    def get_path(imageType, code, fileType='gif'):
        return os.path.join(
            GuiImage.__get_base_path(), imageType, '%s.%s' % (code, fileType))

    @staticmethod
    def __get_image(imageType, cache, code, fileType='gif'):<commit_msg>Fixing non-ASCII file paths for icons<commit_after>import os, sys

import Tkinter as tk

class GuiImage(object):
    icons = {}

    @staticmethod
    def __get_base_path():
        try:
            return os.path.join(sys._MEIPASS, 'res').decode(
                sys.getfilesystemencoding())
        except:
            return os.path.abspath(os.path.dirname(__file__)).decode(
                sys.getfilesystemencoding())

    @staticmethod
    def get_path(imageType, code, fileType='gif'):
        return os.path.join(
            GuiImage.__get_base_path(), imageType, '%s.%s' % (code, fileType))

    @staticmethod
    def __get_image(imageType, cache, code, fileType='gif'):
{'fraction_non_alphanumeric': 0.12256493506493507, 'fraction_numerical': 0.0, 'mean_word_length': 2.7027027027027026, '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': '5414938', 'n_tokens_mistral': 401, 'n_tokens_neox': 387, 'n_words': 82}