This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time, os, sys | |
import json | |
import winsound | |
VALID_RESULTS = ['noop','skipped', 'unsolved', 'AC', 'WA', 'TLE', 'RTE', 'MLE'] | |
class TimerExceeded(Exception): | |
pass | |
class Timer(object): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
class MarkovChain(object): | |
def tuplemaker(self,words,length): | |
'''Creates the entries for the training dictionary, tuple[0] | |
is the key and the rest are values''' | |
for x in range(0,len(words)-1): | |
try: | |
yield tuple(words[x:x+length]) #Using yield because this list tends to get very big |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'''This extension implents a rtfm support with discord.py''' | |
import discord | |
from discord.ext import commands | |
import inspect | |
import re | |
import builtins | |
import zlib | |
import io |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
anal | |
anus | |
areole | |
arian | |
arrse | |
arse | |
arsehole | |
aryan | |
asanchez | |
ass |