<commit_before>from rhobot.bot import RhoBot
from rhobot import configuration
import optparse

parser = optparse.OptionParser()
parser.add_option('-c', dest="filename", help="Configuration file for the bot", default='foursquare.rho')
(options, args) = parser.parse_args()

configuration.load_file(options.filename)

bot = RhoBot()

# Rho Optional Components
bot.register_plugin('rho_bot_storage_client', module='rhobot.components')
bot.register_plugin('rho_bot_rdf_publish', module='rhobot.components')
bot.register_plugin('rho_bot_representation_manager', module='rhobot.components')

# Bot Specific Components
bot.register_plugin('foursquare_lookup', module='foursquare_bot.components')<commit_msg>Remove unneeded register_plugin calls.<commit_after>from rhobot.bot import RhoBot
from rhobot import configuration
import optparse

parser = optparse.OptionParser()
parser.add_option('-c', dest="filename", help="Configuration file for the bot", default='foursquare.rho')
(options, args) = parser.parse_args()

configuration.load_file(options.filename)

bot = RhoBot()
# Bot Specific Components
bot.register_plugin('foursquare_lookup', module='foursquare_bot.components')
{'fraction_non_alphanumeric': 0.11623931623931624, 'fraction_numerical': 0.0, 'mean_word_length': 9.008547008547009, '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': '6306686', 'n_tokens_mistral': 350, 'n_tokens_neox': 342, 'n_words': 73}