<commit_before>#!/usr/bin/python

import time
import sys

from apscheduler.scheduler import Scheduler
from apscheduler.threadpool import ThreadPool

from core.voicesynthetizer import VoiceSynthetizer

from modules.command import Command
from modules.clock import Clock
from modules.identification import Identification
from modules.messages import Messages
from modules.twitterc import TwitterC
from modules.weather import Weather

from learning.morseteacher import MorseTeacher
from learning.reglamentos import Reglamentos

class CancunIrlp(object):

    def __init__(self):

        self.voicesynthetizer = VoiceSynthetizer("google", "spanish")
	self.sysargv = sys.argv

	print 'Number of arguments:', len(sys.argv), 'arguments.'
	print 'Argument List:', str(sys.argv)
	if len(sys.argv) == 1:
		print 'Please specify 1 Cancun module to run'
		sys.exit(1)

    def __del__(self):
        pass

    def modules(self):

        self.command = Command(self.voicesynthetizer)
        self.clock = Clock(self.voicesynthetizer)
        self.identification = Identification(self.voicesynthetizer)
        self.reglamentos = Reglamentos(self.voicesynthetizer)
        self.messages = Messages(self.voicesynthetizer)
        self.morseteacher = MorseTeacher(self.voicesynthetizer)
        self.twitterc = TwitterC(self.voicesynthetizer)
        self.weather = Weather(self.voicesynthetizer)

    def run(self):
	
	if self.sysargv[1] == 'identificacion':
                self.identification.identify()
	elif self.sysargv[1] == 'clima':
		self.weather.report()
	elif self.sysargv[1] == 'fecha':
		self.clock.date()
	elif self.sysargv[1] == 'hora':
		self.clock.hour()
	elif self.sysargv[1] == 'comandos':
		self.command.execute()
	elif self.sysargv[1] == 'sismologico':
                self.twitterc.sismologicomx()
	elif self.sysargv[1] == 'estaciones':
		self.messages.stations()
	elif self.sysargv[1] == 'morse':
		self.morseteacher.goask()
	elif self.sysargv[1] == 'bc':
		self.command.background()
	else:
		print 'No Cancun module found by that name'

	#while True:
		#self.identification.identify()
		#time.sleep(5)
		#self.clock.date()
		#time.sleep(5)<commit_msg>Project: Remove Twitter Commands<commit_after>#!/usr/bin/python

import time
import sys

from apscheduler.scheduler import Scheduler
from apscheduler.threadpool import ThreadPool

from core.voicesynthetizer import VoiceSynthetizer

from modules.command import Command
from modules.clock import Clock
from modules.identification import Identification
from modules.messages import Messages
#from modules.twitterc import TwitterC
from modules.weather import Weather

from learning.morseteacher import MorseTeacher
from learning.reglamentos import Reglamentos

class CancunIrlp(object):

    def __init__(self):

        self.voicesynthetizer = VoiceSynthetizer("google", "spanish")
	self.sysargv = sys.argv

	print 'Number of arguments:', len(sys.argv), 'arguments.'
	print 'Argument List:', str(sys.argv)
	if len(sys.argv) == 1:
		print 'Please specify 1 Cancun module to run'
		sys.exit(1)

    def __del__(self):
        pass

    def modules(self):

        self.command = Command(self.voicesynthetizer)
        self.clock = Clock(self.voicesynthetizer)
        self.identification = Identification(self.voicesynthetizer)
        self.reglamentos = Reglamentos(self.voicesynthetizer)
        self.messages = Messages(self.voicesynthetizer)
        self.morseteacher = MorseTeacher(self.voicesynthetizer)
        #self.twitterc = TwitterC(self.voicesynthetizer)
        self.weather = Weather(self.voicesynthetizer)

    def run(self):
	
	if self.sysargv[1] == 'identificacion':
                self.identification.identify()
	elif self.sysargv[1] == 'clima':
		self.weather.report()
	elif self.sysargv[1] == 'fecha':
		self.clock.date()
	elif self.sysargv[1] == 'hora':
		self.clock.hour()
	elif self.sysargv[1] == 'comandos':
		self.command.execute()
	#elif self.sysargv[1] == 'sismologico':
        #        self.twitterc.sismologicomx()
	elif self.sysargv[1] == 'estaciones':
		self.messages.stations()
	elif self.sysargv[1] == 'morse':
		self.morseteacher.goask()
	elif self.sysargv[1] == 'bc':
		self.command.background()
	else:
		print 'No Cancun module found by that name'

	#while True:
		#self.identification.identify()
		#time.sleep(5)
		#self.clock.date()
		#time.sleep(5)
{'fraction_non_alphanumeric': 0.11438434982738781, 'fraction_numerical': 0.006444188722669736, 'mean_word_length': 4.018475750577367, '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': '3544893', 'n_tokens_mistral': 1522, 'n_tokens_neox': 1411, 'n_words': 310}