<commit_before>import pyglet.media
from os import path

wood_break = pyglet.resource.media(path.join('resources', 'sounds', 'wood_break.wav'), streaming=False)
water_break = pyglet.resource.media(path.join('resources', 'sounds', 'water_break.wav'), streaming=False)<commit_msg>Use pyglet resource.path to index sound resource files Thanks to PR #32 by @tfaris Pyglet does not like backslashes at all, and wants to be fed /'s only<commit_after>import pyglet.media
from os import path
pyglet.resource.path = [".","resources/sounds"] #Note: Pyglet uses /'s regardless of OS
pyglet.resource.reindex()

wood_break = pyglet.resource.media("wood_break.wav", streaming=False)
water_break = pyglet.resource.media("water_break.wav", streaming=False)
{'fraction_non_alphanumeric': 0.12449255751014884, 'fraction_numerical': 0.0027063599458728013, 'mean_word_length': 6.708333333333333, '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': '1810018', 'n_tokens_mistral': 241, 'n_tokens_neox': 238, 'n_words': 64}