<commit_before># -*- encoding: utf-8 -*-
import tweepy
import json 
import simplejson
import time
import jsonio

filename = "config.json"

data = jsonio.get(filename)

consumer_key = data["twitter"]["consumer_key"]
consumer_secret = data["twitter"]["consumer_secret"]
access_token = data["twitter"]["access_token"]
access_token_secret = data["twitter"]["access_token_secret"]

if consumer_key is None:
	print "Consumer keys and Access tokens are necesary"
	print "https://dev.twitter.com/docs/auth/tokens-devtwittercom"
	print "Enable read and write permissions"

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

api = tweepy.API(auth)


print "Loged as: " + api.me().name

while (1) :
	now = int (time.time())
	for reminder in data["reminders"]:
		time_on = reminder["last_time"] + reminder["repeat"]#repeat are seconds
		if now > time_on:
			message = reminder["message"] + " (" + str(reminder["count"]) + ")" 
			print "Twitteando!"
			reminder["last_time"] = now
			reminder["count"] += 1
			api.update_status(message)
			api.update_status('El Twitt anterior se repite cada '+str(reminder["repeat"])+' segundos. Última vez: '+str(reminder["last_time"]))
		else :
			print "Demasiado rápido!"
	jsonio.put(data, filename)
	time.sleep (10)<commit_msg>some changes<commit_after># -*- encoding: utf-8 -*-
import tweepy
import json 
import simplejson
import time
import jsonio

filename = "config.json"

data = jsonio.get(filename)

consumer_key = data["twitter"]["consumer_key"]
consumer_secret = data["twitter"]["consumer_secret"]
access_token = data["twitter"]["access_token"]
access_token_secret = data["twitter"]["access_token_secret"]

if consumer_key is None:
	print "Consumer keys and Access tokens are necesary"
	print "https://dev.twitter.com/docs/auth/tokens-devtwittercom"
	print "Enable read and write permissions"

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

api = tweepy.API(auth)


print "Loged as: " + api.me().name

while (1) :
	now = int (time.time())
	for reminder in data["reminders"]:
		time_on = reminder["last_time"] + reminder["repeat"]#repeat are seconds
		if now > time_on:
			message = reminder["message"] + " (" + str(reminder["count"]) + ")" 
			print "Twitteando!"
			reminder["last_time"] = now
			reminder["count"] += 1
			api.update_status(message)
			api.update_status('El Twitt anterior se repite cada '+str(reminder["repeat"])+' segundos. Última vez: '+int (time.time()))
		else :
			print "Demasiado rápido!"
	jsonio.put(data, filename)
	time.sleep (10)
{'fraction_non_alphanumeric': 0.14573820395738205, 'fraction_numerical': 0.00380517503805175, 'mean_word_length': 5.539800995024875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '3573634', 'n_tokens_mistral': 920, 'n_tokens_neox': 889, 'n_words': 205}