<commit_before>function cancelar(){
window.location.replace("index.php");
}
function iniciarTarea(id_schedule)
{  
    var idschedule = document.getElementById('id_schedule_act'+id_schedule).value;
    var accion = document.getElementById('hidden_schedule').value;
             
        $("#inicio_tar"+id_schedule).load("../Controles/Registro/CSchedule.php", 
            {
              hidden_schedule : accion,
              id_schedule_act: idschedule
            }, function(){
            }
            );    
    
        
        $("#div_finalizar_tarea"+id_schedule).load("../Controles/Registro/CSchedule.php", 
            {
              hidden_schedule : 'habilitar_finalizar',
              id_schedule_act: idschedule
            }, function(){
            }
            );   
    
}

function cambiarestado(id_actividad)
{  
//    aler('si llego');
//    exit();
    var idactividad = document.getElementById('id_hidden_eliminar'+id_actividad).value;
    var estado = document.getElementById('hidden_estado'+id_actividad).value;
             
        $("#estado_"+id_actividad).load("../Controles/Registro/CActividad.php", 
            {
              hidden_estado : estado,
              id_hidden_eliminar: idactividad,
              hidden_actividad: 'anular'
            }, function(){
            }
            );    
    
}
function cambiartws(id_actividad)
{  
//    aler('si llego');
//    exit();
    var idactividad = document.getElementById('id_hidden_tws'+id_actividad).value;
    var tws = document.getElementById('hidden_tws'+id_actividad).value;
             
        $("#tws_"+id_actividad).load("../Controles/Registro/CActividad.php", 
            {
              hidden_tws : tws,
              id_hidden_tws: idactividad,
              hidden_actividad: 'cambiar_tws'
            }, function(){
            }
            );    
    
}


function comentario_Tarea(id_schedule)
{
    $("#div_comentario_tarea"+id_schedule).load("../Controles/Registro/CSchedule.php", 
            {
              hidden_schedule : 'insertar_comentario',
              txt_comentario: document.getElementById('txt_comentario'+id_schedule).value,
              horainicio: document.getElementById('horainicio'+id_schedule).value,
              horafinal: document.getElementById('horafinal'+id_schedule).value,
              c_estado_tar: document.getElementById('c_estado_tar'+id_schedule).value,
              id_schedule_act: id_schedule
            }, function(){
            }
            );  
}


function finalizar_Tarea(id_schedule)
{
        $("#div_finalizatarea"+id_schedule).load("../Controles/Registro/CSchedule.php", 
            {
              hidden_schedule : 'finalizar_tarea',
              id_schedule_act: id_schedule
            }, function(){
            }
            ); 
    
    
    setTimeout(function(){
    
  
     $("#div_comentario_tarea"+id_schedule).load("../Controles/Registro/CSchedule.php", 
            {
              hidden_schedule : 'habilitar_comentario_tarea',
              id_schedule_act: id_schedule,
              hora_inicio : document.getElementById("id_marcado_hora_inicio"+id_schedule).value,
              hora_fin : document.getElementById("id_marcado_hora_fin"+id_schedule).value              
            }, function(){
            }
            ); 
    
    },1000);
    <commit_msg>settimeout<commit_after>function cancelar(){
window.location.replace("index.php");
}
function iniciarTarea(id_schedule)
{  
    var idschedule = document.getElementById('id_schedule_act'+id_schedule).value;
    var accion = document.getElementById('hidden_schedule').value;
             
        $("#inicio_tar"+id_schedule).load("../Controles/Registro/CSchedule.php", 
            {
              hidden_schedule : accion,
              id_schedule_act: idschedule
            }, function(){
            }
            );    
    
        
        $("#div_finalizar_tarea"+id_schedule).load("../Controles/Registro/CSchedule.php", 
            {
              hidden_schedule : 'habilitar_finalizar',
              id_schedule_act: idschedule
            }, function(){
            }
            );   
    
}

function cambiarestado(id_actividad)
{  
//    aler('si llego');
//    exit();
    var idactividad = document.getElementById('id_hidden_eliminar'+id_actividad).value;
    var estado = document.getElementById('hidden_estado'+id_actividad).value;
             
        $("#estado_"+id_actividad).load("../Controles/Registro/CActividad.php", 
            {
              hidden_estado : estado,
              id_hidden_eliminar: idactividad,
              hidden_actividad: 'anular'
            }, function(){
            }
            );    
    
}
function cambiartws(id_actividad)
{  
//    aler('si llego');
//    exit();
    var idactividad = document.getElementById('id_hidden_tws'+id_actividad).value;
    var tws = document.getElementById('hidden_tws'+id_actividad).value;
             
        $("#tws_"+id_actividad).load("../Controles/Registro/CActividad.php", 
            {
              hidden_tws : tws,
              id_hidden_tws: idactividad,
              hidden_actividad: 'cambiar_tws'
            }, function(){
            }
            );    
    
}


function comentario_Tarea(id_schedule)
{
    $("#div_comentario_tarea"+id_schedule).load("../Controles/Registro/CSchedule.php", 
            {
              hidden_schedule : 'insertar_comentario',
              txt_comentario: document.getElementById('txt_comentario'+id_schedule).value,
              horainicio: document.getElementById('horainicio'+id_schedule).value,
              horafinal: document.getElementById('horafinal'+id_schedule).value,
              c_estado_tar: document.getElementById('c_estado_tar'+id_schedule).value,
              id_schedule_act: id_schedule
            }, function(){
            }
            );  
}


function finalizar_Tarea(id_schedule)
{
        $("#div_finalizatarea"+id_schedule).load("../Controles/Registro/CSchedule.php", 
            {
              hidden_schedule : 'finalizar_tarea',
              id_schedule_act: id_schedule
            }, function(){
            }
            ); 
    
    
    setTimeout(function(){
    
  
     $("#div_comentario_tarea"+id_schedule).load("../Controles/Registro/CSchedule.php", 
            {
              hidden_schedule : 'habilitar_comentario_tarea',
              id_schedule_act: id_schedule,
              hora_inicio : document.getElementById("id_marcado_hora_inicio"+id_schedule).value,
              hora_fin : document.getElementById("id_marcado_hora_fin"+id_schedule).value              
            }, function(){
            }
            ); 
    
    },10000);
    
{'fraction_non_alphanumeric': 0.11885612153708669, 'fraction_numerical': 0.0013404825737265416, 'mean_word_length': 1.9857714539795466, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3915066', 'n_tokens_mistral': 1989, 'n_tokens_neox': 1977, 'n_words': 194}