<commit_before># Commented out parts work but break Python Fiddle :P

# How to run in Raspberry Pi
# 1) SSH into Raspberry Pi
# 2) Type "screen" in terminal
# 3) Run script (make sure it works!)
# 4) ctrl-a
# 5) d


import tweepy
import random
import time

consumer_key = 'PJRQRPmqg1j1FmLe9z3mbg'
consumer_secret = '<KEY>'
access_token_key = '<KEY>'
access_token_secret = '<KEY>'

auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token_key, access_token_secret)

api = tweepy.API(auth)


TRIGGER_TIMES = [10*60*60+30*60, 16*60*60]

def nextwakeuptime(currenttime):
	for trigger in TRIGGER_TIMES:
		if currenttime < trigger:
			return trigger
			
	return TRIGGER_TIMES[0]
	

def gettimetosleep(currenttime):
	wakeuptime = nextwakeuptime(currenttime)
	if currenttime < wakeuptime:
		return wakeuptime - currenttime
	daylength = (24*60*60)
	return daylength - currenttime + wakeuptime

pl_nouns = ["horses", "snowboards", "skinny jeans", "Dogecoins", "football boots that are a size too small", "pictures of mountains", "infographics", "fonts", "meetings", "CSS", "HTML", "penguins", "emails", "puns", "pancetta", "Codepens", "feet", "hipsters", "bronies", "T-shirts with armpit holes", "porridge", "wanky beers", "cider", "footballers", "testes", "scrums"]
verbs = ["tricked", "popped", "themed", "sobbed over", "front ended", "lunged at", "spaffed", "empowered", "puked all over", "punched", "dumped", "licked", "kicked", "obliterated", "cried at the feet of", "belittled", "jeered at", "tickled", "romped over", "crawled all over", "coded up", "trimmed", "shaved", "baked a tasty", "buried", "whipped"]
adjectives = ["hot", "trendy", "wanky", "indie", "beautiful", "pop-up", "deeply empowering", "lanky", "brave", "angry", "unapproachable", "pungent", "jazzy", "clammy", "frozen", "rancid", "tepid", "scrummy", "racy", "fetch", "responsive", "moist", "voluptuous", "depressing", "turgid", "ridiculous", "intimidating", "dazzling", "fabulous", "scabby", "scrappy"]
people = ["@hen_dubz", "@lilovescake", "Mummy", "<NAME>", "<NAME>", "Drupal", "Webdesigner Depot", "Smashing Magazine", "@jackfilose", "<NAME>", "Kwabs", "@katephelon", "@_emmacox", "@vmdowdeswell", "Ballbag", "@shoegazey_pie", "@simplelampoon", "@andykisaragi", "@sirjamesob", "@meg_pope", "@andyy_p", "@thirtytwo_d", "Prince", "Abs from 5ive", "<NAME>", "Benji", "<NAME>", "<NAME>", "Arsenal", "Podolski", "Ramsey"]


def maketweet():<commit_msg>removed access keys<commit_after># Commented out parts work but break Python Fiddle :P

# How to run in Raspberry Pi
# 1) SSH into Raspberry Pi
# 2) Type "screen" in terminal
# 3) Run script (make sure it works!)
# 4) ctrl-a
# 5) d


import tweepy
import random
import time

consumer_key = ''
consumer_secret = ''
access_token_key = ''
access_token_secret = ''

auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token_key, access_token_secret)

api = tweepy.API(auth)


TRIGGER_TIMES = [10*60*60+30*60, 16*60*60]

def nextwakeuptime(currenttime):
	for trigger in TRIGGER_TIMES:
		if currenttime < trigger:
			return trigger
			
	return TRIGGER_TIMES[0]
	

def gettimetosleep(currenttime):
	wakeuptime = nextwakeuptime(currenttime)
	if currenttime < wakeuptime:
		return wakeuptime - currenttime
	daylength = (24*60*60)
	return daylength - currenttime + wakeuptime

pl_nouns = ["horses", "snowboards", "skinny jeans", "Dogecoins", "football boots that are a size too small", "pictures of mountains", "infographics", "fonts", "meetings", "CSS", "HTML", "penguins", "emails", "puns", "pancetta", "Codepens", "feet", "hipsters", "bronies", "T-shirts with armpit holes", "porridge", "wanky beers", "cider", "footballers", "testes", "scrums"]
verbs = ["tricked", "popped", "themed", "sobbed over", "front ended", "lunged at", "spaffed", "empowered", "puked all over", "punched", "dumped", "licked", "kicked", "obliterated", "cried at the feet of", "belittled", "jeered at", "tickled", "romped over", "crawled all over", "coded up", "trimmed", "shaved", "baked a tasty", "buried", "whipped"]
adjectives = ["hot", "trendy", "wanky", "indie", "beautiful", "pop-up", "deeply empowering", "lanky", "brave", "angry", "unapproachable", "pungent", "jazzy", "clammy", "frozen", "rancid", "tepid", "scrummy", "racy", "fetch", "responsive", "moist", "voluptuous", "depressing", "turgid", "ridiculous", "intimidating", "dazzling", "fabulous", "scabby", "scrappy"]
people = ["@hen_dubz", "@lilovescake", "Mummy", "<NAME>", "<NAME>", "Drupal", "Webdesigner Depot", "Smashing Magazine", "@jackfilose", "<NAME>", "Kwabs", "@katephelon", "@_emmacox", "@vmdowdeswell", "Ballbag", "@shoegazey_pie", "@simplelampoon", "@andykisaragi", "@sirjamesob", "@meg_pope", "@andyy_p", "@thirtytwo_d", "Prince", "Abs from 5ive", "<NAME>", "Benji", "<NAME>", "<NAME>", "Arsenal", "Podolski", "Ramsey"]


def maketweet():
{'fraction_non_alphanumeric': 0.19059355103717396, 'fraction_numerical': 0.012733620866707743, 'mean_word_length': 6.867528271405493, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 18, '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': '3977512', 'n_tokens_mistral': 1920, 'n_tokens_neox': 1809, 'n_words': 487}