<commit_before>const fs = require('fs');
const  scrap = require('./scrap');
const manipulate = {
	isUpToDate : function (data) {
		let past = data.ultimoUpdate;
		return ((new Date() - new Date(past))/(1000*60*60)) < 0;
	},
	loadDataBase : function (callback) {
		fs.readFile(__dirname+'/public/data/dados.txt', 'utf-8', function(err, data){
			if(!err){
				let bd = JSON.parse(data);
				if(manipulate.isUpToDate(bd)){<commit_msg>tempo de sincronia mudado para 12 horas<commit_after>const fs = require('fs');
const  scrap = require('./scrap');
const manipulate = {
	isUpToDate : function (data) {
		let past = data.ultimoUpdate;
		return ((new Date() - new Date(past))/(1000*60*60)) < 12;
	},
	loadDataBase : function (callback) {
		fs.readFile(__dirname+'/public/data/dados.txt', 'utf-8', function(err, data){
			if(!err){
				let bd = JSON.parse(data);
				if(manipulate.isUpToDate(bd)){
{'fraction_non_alphanumeric': 0.18181818181818182, 'fraction_numerical': 0.025813692480359147, 'mean_word_length': 4.47239263803681, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6291443', 'n_tokens_mistral': 359, 'n_tokens_neox': 318, 'n_words': 69}