<commit_before><?php
use yii\helpers\registerCss;

//Se aplican estilos al horario
$this->registerCss("table {width: 100%; margin: 0 auto; border:#000000;} td.c{background-color:#FACC2E; color:#0B0B61; font-weight: bold;}  td{width: 13%; text-align: center;} td.rw{background-color:#0B0B61;color:#FACC2E} .emptyRow{ background-color:#FFFFFF;}");


//Se despliega información del maestro
echo "<br><br><br><h4> Horario del semestre ".$semester->name."</h4>";
$horario=setSchedule($interval);

//Variable para representar los dias
$days = array(1,2,3,4,5);





 if($semester){
        $subjects = $semester->subjects;
        foreach ($subjects as $subject) {
        setClassesIntoSchedule2($subject->classes,$horario);
    }}
//printMatrix($horario);

// Pruebas
$ini = createIni($interval);
$ini2 = createIni($interval);
//EtiquetaDias
$dayDistribution = [];
$dayDistribution[] = "";
$dayDistribution2 = [];
$dayDistribution2[] = "";

// Crea el horario al tamaño adecuado

foreach ($days as $day) {
 $cols = numCol($day,$subjects,$interval);
 $sub = groupByDay($day,$subjects);
 $section = createSection($cols,count($interval),$sub,$interval); 
 $test = cutSchedule($section);
 $ini2 = mergeSections($ini2,$test);
 $dayDistribution2[] = sizeof($test[0]);
}
$sch2 =  setLabels($dayDistribution2,$ini2);
printSchedule($sch2);
//placeAvailable($interval);
<commit_msg>Se agrega vista horario semestre<commit_after><?php
use yii\helpers\registerCss;

//Se aplican estilos al horario
$this->registerCss("table {width: 100%; margin: 0 auto; border:#000000;} td.c{background-color:#FACC2E; color:#0B0B61; font-weight: bold;}  td{width: 13%; text-align: center;} td.rw{background-color:#0B0B61;color:#FACC2E} .emptyRow{ background-color:#FFFFFF;}");


//Se despliega información del maestro
echo "<br><br><br><h4> Horario del semestre ".$semester->name."</h4>";
$horario=setSchedule($interval);

//Variable para representar los dias
$days = array(1,2,3,4,5);





 if($semester){
        $subjects = $semester->subjects;
        foreach ($subjects as $subject) {
        setClassesIntoSchedule2($subject->classes,$horario);
    }}
//printMatrix($horario);

// Pruebas
$ini2 = createIni($interval);
//EtiquetaDias
$dayDistribution2 = [];
$dayDistribution2[] = "";

// Crea el horario al tamaño adecuado

foreach ($days as $day) {
 $cols = numCol($day,$subjects,$interval);
 $sub = groupByDay($day,$subjects);
 $section = createSection($cols,count($interval),$sub,$interval); 
 $test = cutSchedule($section);
 $ini2 = mergeSections($ini2,$test);
 $dayDistribution2[] = sizeof($test[0]);
}
$sch2 =  setLabels($dayDistribution2,$ini2);
printSchedule($sch2);
//placeAvailable($interval);

{'fraction_non_alphanumeric': 0.1859596713965646, 'fraction_numerical': 0.030619865571321882, 'mean_word_length': 5.834183673469388, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 21, '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': '1204916', 'n_tokens_mistral': 987, 'n_tokens_neox': 918, 'n_words': 180}