<commit_before>import logging
import os

# Setup logging

level = logging.INFO #DEBUG # INFO, WARNING, ERROR

log = logging.getLogger("discord")
log.setLevel(level)

handle = logging.FileHandler("discord.log", "w", "utf-8")
fmt = logging.Formatter("%(asctime)s::%(name)s[%(levelname)s]: %(message)s")

handle.setFormatter(fmt)
log.addHandler(handle)

# Get the login credentials

login = os.getenv("DISCOBOT_LOGIN")
if login is None:
	log.critical("Could not retrieve login credentials from environment variable. Halting.")
	raise AttributeError("Environment variable DISCOBOT_LOGIN not set.")

login = login.split(";")

creds = {
	"email": login[0],
	"pass": login[1]
}<commit_msg>fixed things<commit_after>import logging
import os

# Setup logging

level = logging.INFO #DEBUG # INFO, WARNING, ERROR

log = logging.getLogger("discord")
log.setLevel(level)

handle = logging.FileHandler("discord.log", "w", "utf-8")
fmt = logging.Formatter("%(asctime)s::%(name)s[%(levelname)s]: %(message)s")

handle.setFormatter(fmt)
log.addHandler(handle)

# Get the login credentials

login_email = os.getenv("DISCOBOT_EMAIL")
login_pass = os.getenv("DISCOBOT_PASS")
if login_email is None or login_pass is None:
	log.critical("Could not retrieve login credentials from environment variable. Halting.")
	raise AttributeError("Environment variable DISCOBOT_PASS and/or DISCOBOT_EMAIL not set.")

login = login.split(";")

creds = {
	"email": login_email,
	"pass": login_pass
}
{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.002734107997265892, 'mean_word_length': 6.211822660098522, 'pattern_counts': {'":': 4, '<': 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': '6461567', 'n_tokens_mistral': 495, 'n_tokens_neox': 487, 'n_words': 121}