<commit_before><?php
$db = DBManagerFactory::getInstance();



$sql = "SELECT id as idF FROM expan_franquiciado f, ";
$sql = $sql . " (select phone_home as phf, phone_mobile as pmf from expan_solicitud where id='e169842f-3481-1f9c-0d37-5d64dd7f207e') b ";
$sql = $sql . " WHERE  (phone_home =phf OR phone_home=pmf OR phone_mobile =phf OR phone_mobile=pmf) AND deleted=0;";

echo $sql."<BR>";

$GLOBALS['log'] -> info('[ExpandeNegocio][Creacion Franquiciado] Consulta'.$sql);

$result = $db -> query($sql, true);

while ($row = $db -> fetchByAssoc($result)) {
  $GLOBALS['log'] -> info('[ExpandeNegocio][Creacion Franquiciado] Entra Bucle-'.$row["idF"]);
  echo $row["idF"];
}<commit_msg>#7923 Se ha creado un script para calcularlo<commit_after><?php
require_once ('modules/Expan_Franquiciado/Expan_Franquiciado.php');

$db = DBManagerFactory::getInstance();

$sql = "SELECT id as idF FROM expan_franquiciado f ";

$GLOBALS['log'] -> info('[ExpandeNegocio][Creacion Franquiciado] Consulta'.$sql);

$result = $db -> query($sql, true);

while ($row = $db -> fetchByAssoc($result)) {
  echo $row["idF"]."-Actualizado<BR>";

  $expan_franquiciado= new Expan_Franquiciado();
  $expan_franquiciado->retrieve($row["idF"]);
  $expan_franquiciado ->estado= $expan_franquiciado->getEstado();
  $expan_franquiciado->save();
}
{'fraction_non_alphanumeric': 0.1796042617960426, 'fraction_numerical': 0.02054794520547945, 'mean_word_length': 6.146739130434782, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 16, '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': '5293745', 'n_tokens_mistral': 523, 'n_tokens_neox': 516, 'n_words': 102}