<commit_before>import requests

import botologist.plugin


class PCDB:
	comments = []

	@classmethod
	def get_random(cls):
		if not cls.comments:
			print('requesting')
			response = requests.get('http://pcdb.lutro.me',
				headers={'accept': 'application/json'})
			cls.comments = [c['body'] for c in response.json()['comments']]
		return cls.comments.pop()


class PcdbPlugin(botologist.plugin.Plugin):
	"""porn comments database plugin."""

	@botologist.plugin.command('pcdb', alias='random')
	def get_pcdb_random(self, cmd):
		return PCDB.get_random().replace('\n', ' ')
<commit_msg>remove debug code<commit_after>import requests

import botologist.plugin


class PCDB:
	comments = []

	@classmethod
	def get_random(cls):
		if not cls.comments:
			response = requests.get('http://pcdb.lutro.me',
				headers={'accept': 'application/json'})
			cls.comments = [c['body'] for c in response.json()['comments']]
		return cls.comments.pop()


class PcdbPlugin(botologist.plugin.Plugin):
	"""porn comments database plugin."""

	@botologist.plugin.command('pcdb', alias='random')
	def get_pcdb_random(self, cmd):
		return PCDB.get_random().replace('\n', ' ')

{'fraction_non_alphanumeric': 0.1645021645021645, 'fraction_numerical': 0.0, 'mean_word_length': 4.989637305699482, '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': '5851937', 'n_tokens_mistral': 408, 'n_tokens_neox': 393, 'n_words': 79}