<commit_before><?php // -*- mode: php; tab-width:2 -*-
if (file_exists('root.php'))
  include_once('root.php');
if (isset($_SERVER['REMOTE_ADDR'])) die('Forbidden connection from '.$_SERVER['REMOTE_ADDR']);

include_once('journalier2-head.php');

// RAZ capitale
$now = time();
$requete = "UPDATE royaume set fin_raz_capitale = 0 where fin_raz_capitale > 0 and fin_raz_capitale < $now";
$req = $db->query($requete);

//Récupération de points de victoire
$requete = "UPDATE royaume r SET point_victoire = point_victoire + (select count(1) from map where type = 3 and royaume = r.id and r.id <> 0)";
$req = $db->query($requete);

//Entretien des batiments et constructions
$semaine = time() - (3600 * 24 * 7);
$royaumes = array();
// On récupère le niveau moyen
$requete = "select sum(level)/count(id) moy from perso WHERE statut = 'actif'";
$req = $db->query($requete);
$row = $db->read_row($req);<commit_msg>réparation de la ville à la fin du sac<commit_after><?php // -*- mode: php; tab-width:2 -*-
if (file_exists('root.php'))
  include_once('root.php');
if (isset($_SERVER['REMOTE_ADDR'])) die('Forbidden connection from '.$_SERVER['REMOTE_ADDR']);

include_once('journalier2-head.php');

// RAZ capitale
$now = time();
$requete = "UPDATE royaume set fin_raz_capitale = 0, capitale_hp = 30000 where fin_raz_capitale > 0 and fin_raz_capitale < $now";
$req = $db->query($requete);

//Récupération de points de victoire
$requete = "UPDATE royaume r SET point_victoire = point_victoire + (select count(1) from map where type = 3 and royaume = r.id and r.id <> 0)";
$req = $db->query($requete);

//Entretien des batiments et constructions
$semaine = time() - (3600 * 24 * 7);
$royaumes = array();
// On récupère le niveau moyen
$requete = "select sum(level)/count(id) moy from perso WHERE statut = 'actif'";
$req = $db->query($requete);
$row = $db->read_row($req);
{'fraction_non_alphanumeric': 0.17293233082706766, 'fraction_numerical': 0.017722878625134265, 'mean_word_length': 5.009677419354839, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, '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': '2098402', 'n_tokens_mistral': 707, 'n_tokens_neox': 671, 'n_words': 187}