<commit_before>#!/usr/bin/python

import random

from core.camera import Camera
from core.phonetic import Phonetic
from core.twitterc import TwitterC

class PoCTwitter(object):

    def __init__(self, voicesynthetizer):

	self.camera = Camera(voicesynthetizer)
        self.phonetic = Phonetic()
	self.twitterc = TwitterC('twython')
        self.voicesynthetizer = voicesynthetizer

    def execute(self):
        self.camera.execute()
        message = 'Proyecto Cancun id ' + str(random.random())
        media='output/camerapygame.jpg'
        self.twitterc.timeline_set(message, media)
        message = "Foto en twitter.com/ " + ' <NAME>'
        self.voicesynthetizer.speechit(message)
        message = ' '.join(self.phonetic.decode("arjaccancun"))
        self.voicesynthetizer.speechit(message)
<commit_msg>Modules: PoC Twitter Random Id<commit_after>#!/usr/bin/python

import random

from core.camera import Camera
from core.phonetic import Phonetic
from core.randomizer import randomize
from core.twitterc import TwitterC

class PoCTwitter(object):

    def __init__(self, voicesynthetizer):

	self.camera = Camera(voicesynthetizer)
        self.phonetic = Phonetic()
	self.twitterc = TwitterC('twython')
        self.voicesynthetizer = voicesynthetizer

    def execute(self):
        self.camera.execute()
        message = randomize(6) + ' #ProyectoCancun '
        media='output/camerapygame.jpg'
        self.twitterc.timeline_set(message, media)
        message = "Foto en twitter.com/ " + ' <NAME>'
        self.voicesynthetizer.speechit(message)
        message = ' '.join(self.phonetic.decode("arjaccancun"))
        self.voicesynthetizer.speechit(message)

{'fraction_non_alphanumeric': 0.1073345259391771, 'fraction_numerical': 0.0005963029218843172, 'mean_word_length': 3.486631016042781, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4294041', 'n_tokens_mistral': 559, 'n_tokens_neox': 531, 'n_words': 102}