<commit_before>import sys
import time
import pprint
import subprocess
import requests
sys.path.append("../mustard-mine")
import config

emote_count = None
while emote_count is None or emote_count == len(emotes):
	req = requests.get("https://api.twitch.tv/kraken/chat/emoticon_images?emotesets=317117,317121,317122,1184925,1184926,1184927", headers={
		"Client-ID": config.CLIENT_ID,
		"Accept": "application/vnd.twitchtv.v5+json",
	})
	resp = req.json()
	emotes = {e["code"]: e["id"] for s in resp["emoticon_sets"].values() for e in s}
	# Optionally also watch for BTTV emotes
	#resp = requests.get("https://api.betterttv.net/2/channels/rosuav").json()
	#emotes.update({e["code"]: e["id"] for e in resp["emotes"]})
	pprint.pprint(emotes)
	# Whatever number there are on the first run, that's considered "current".
	# If it then changes, report it.
	if emote_count is None: emote_count = len(emotes)
	elif emote_count != len(emotes): break # Don't wait for the next minute
	time.sleep(60)
print("====================")
pprint.pprint(emotes)
subprocess.check_call(["vlc", "/video/Clips/Let It Go/Turkish - Aldirma.mkv"])<commit_msg>watch_emotes: Remove unnecessary print at the end, and suggest a way to use this cleanly<commit_after>import sys
import time
import pprint
import subprocess
import requests
sys.path.append("../mustard-mine")
import config

emote_count = None
while emote_count is None or emote_count == len(emotes):
	req = requests.get("https://api.twitch.tv/kraken/chat/emoticon_images?emotesets=317117,317121,317122,1184925,1184926,1184927", headers={
		"Client-ID": config.CLIENT_ID,
		"Accept": "application/vnd.twitchtv.v5+json",
	})
	resp = req.json()
	emotes = {e["code"]: e["id"] for s in resp["emoticon_sets"].values() for e in s}
	# Optionally also watch for BTTV emotes
	#resp = requests.get("https://api.betterttv.net/2/channels/rosuav").json()
	#emotes.update({e["code"]: e["id"] for e in resp["emotes"]})
	pprint.pprint(emotes) # Tip: Size the terminal window to nicely fit this.
	# Whatever number there are on the first run, that's considered "current".
	# If it then changes, report it.
	if emote_count is None: emote_count = len(emotes)
	elif emote_count != len(emotes): break # Don't wait for the next minute
	time.sleep(60)
subprocess.check_call(["vlc", "/video/Clips/Let It Go/Turkish - Aldirma.mkv"])
{'fraction_non_alphanumeric': 0.15331905781584582, 'fraction_numerical': 0.03683083511777302, 'mean_word_length': 5.3651226158038146, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '4373501', 'n_tokens_mistral': 893, 'n_tokens_neox': 833, 'n_words': 216}