<commit_before>import sys
import os
from sdl2 import *
import sdl2.ext

sdl2.ext.init()
window = sdl2.ext.Window("PyDungeon", size=(640, 480))
window.show()

textures = {}

for f in os.listdir("./Textures"):
  if os.path.isfile(f):
    textures[os.path.splitext(f)[0]] = sdl2.ext.load_image(f)

def loop():
  while 1:
    events = sdl2.ext.get_events()
    for event in events:
      if event.type == SDL_QUIT:
        sys.exit()
    window.refresh()

<commit_msg>bug fix for texture loading<commit_after>import sys
import os
from sdl2 import *
import sdl2.ext

sdl2.ext.init()
window = sdl2.ext.Window("PyDungeon", size=(640, 480))

textures = {}

for f in os.listdir("./Textures"):
  fullPath = "./Textures/" + f
  if os.path.isfile(fullPath):
    textures[os.path.splitext(f)[0]] = sdl2.ext.load_image(fullPath)

def loop():
  window.show()
  while 1:
    events = sdl2.ext.get_events()
    for event in events:
      if event.type == SDL_QUIT:
        sys.exit()
    window.refresh()


{'fraction_non_alphanumeric': 0.15470171890798787, 'fraction_numerical': 0.028311425682507583, 'mean_word_length': 3.3612334801762116, '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': '6662766', 'n_tokens_mistral': 399, 'n_tokens_neox': 383, 'n_words': 85}