<commit_before><section id="obras" class="bg-light-gray">
    <div class="container-fluid">
        <div class="row">
            <div class="col-lg-12 text-center">
                <h2 class="section-heading">Obras</h2>
                <h3 class="section-subheading text-muted">Algunas de nuestras obras.</h3>
            </div>
        </div>
        <div class="row container-fluid">
            
        <?php 
        if (isset($vivienda_unifamiliar)) {

            echo '<div class="row '.$vivienda_unifamiliar[0]['category'].'"id="'.$vivienda_unifamiliar[0]['category'].'">';
            echo "<div class='row col-md-6 col-md-offset-3'><h4>Vivienda Unifamiliares</h4></div>";;

            foreach ($vivienda_unifamiliar as $viv_uni) {
                $images = $viv_uni['images'];

                // foreach work it will show only first image
                if(isset($images[0])){
        ?>             

                    <div class="col-md-4 col-sm-6 portfolio-item" id="<?=$viv_uni['category']?>">
                        <a href="<?=base_url()?>works/show_work/<?=$viv_uni['id']?>" class="portfolio-link" data-toggle="modal">
                            <div class="portfolio-hover">
                                <div class="portfolio-hover-content">
                                     <p ><?=$viv_uni['description']?></p>
                                </div>
                            </div>
                            <img src="<?=base_url()?>img/uploads/<?=$images[0]['name']?>" class="img-responsive" >
                        </a>
                        <div class="portfolio-caption">
                            <h6 class="col-md-10"style="text-align:left;"><?=$viv_uni['title']?></h6>
                            <p class="col-md-2"style="text-align:right;"><?=$viv_uni['superficie']?> m2</p>
                        </div>
                    </div>

        <?php
                }                
            }
            echo "</div>";
        }
        if (isset($vivienda_multifamiliar)) {

            echo '<div class="row '.$vivienda_multifamiliar[0]['category'].'"id="'.$vivienda_multifamiliar[0]['category'].'">';
            echo "<div class='row col-md-6 col-md-offset-3' ><h4>Vivienda Multifamiliares</h4></div>";

            foreach ($vivienda_multifamiliar as $viv_multi) {
                $images = $viv_multi['images'];
                // foreach work it will show only first image
                if(isset($images[0])){
        ?>             

                    <div class="col-md-4 col-sm-6 portfolio-item" id="<?=$viv_multi['category']?>">
                        <a href="<?=base_url()?>works/show_work/<?=$viv_multi['id']?>" class="portfolio-link" data-toggle="modal">
                            <div class="portfolio-hover">
                                <div class="portfolio-hover-content">
                                     <p ><?=$viv_multi['description']?></p>
                                </div>
                            </div>
                            <img src="<?=base_url()?>img/uploads/<?=$images[0]['name']?>" class="img-responsive" >
                        </a>
                        <div class="portfolio-caption">
                            <h6 class="col-md-10"style="text-align:left;"><?=$viv_multi['title']?></h6>
                            <p class="col-md-2"style="text-align:right;"><?=$viv_multi['superficie']?> m2</p>
                        </div>
                    </div>

        <?php
                }                
            }
            echo "</div>";
        }
        

        if (isset($edificios)) {

            echo '<div class="row '.$edificios[0]['category'].'"id="'.$edificios[0]['category'].'">';
            echo "<div class='row col-md-6 col-md-offset-3'><h4>Varios</h4></div>";

            foreach ($edificios as $edificio) {
                $images = $edificio['images'];
                // foreach work it will show only first image
                if(isset($images[0])){
        ?>             

                    <div class="col-md-4 col-sm-6 portfolio-item">
                        <a href="<?=base_url()?>works/show_work/<?=$edificio['id']?>" class="portfolio-link" data-toggle="modal">
                            <div class="portfolio-hover">
                                <div class="portfolio-hover-content">
                                     <p ><?=$edificio['description']?></p>
                                </div>
                            </div>
                            <img src="<?=base_url()?>img/uploads/<?=$images[0]['name']?>" class="img-responsive" >
                        </a>
                        <div class="portfolio-caption">
                            <h6 class="col-md-10"style="text-align:left;"><?=$edificio['title']?></h6>
                            <p class="col-md-2"style="text-align:right;"><?=$edificio['superficie']?> m2</p>
                        </div>
                    </div>

        <?php
                }                
            }
            echo "</div>";

        }elseif (!isset($_SESSION['user_id'])){
        ?>
            
            <div class="row">
                <h4>No Works! You must log in to create works.</h4>
            </div>

        <?php 
        }
        if (isset($_SESSION['user_id'])) {
        ?><commit_msg>CSS - subtitle of portfolio images changes size to fit long names-ALL.10-2(left)<commit_after><section id="obras" class="bg-light-gray">
    <div class="container-fluid">
        <div class="row">
            <div class="col-lg-12 text-center">
                <h2 class="section-heading">Obras</h2>
                <h3 class="section-subheading text-muted">Algunas de nuestras obras.</h3>
            </div>
        </div>
        <div class="row container-fluid">
            
        <?php 
        if (isset($vivienda_unifamiliar)) {

            echo '<div class="row '.$vivienda_unifamiliar[0]['category'].'"id="'.$vivienda_unifamiliar[0]['category'].'">';
            echo "<div class='row col-md-6 col-md-offset-3'><h4>Vivienda Unifamiliares</h4></div>";;

            foreach ($vivienda_unifamiliar as $viv_uni) {
                $images = $viv_uni['images'];

                // foreach work it will show only first image
                if(isset($images[0])){
        ?>             

                    <div class="col-md-4 col-sm-6 portfolio-item" id="<?=$viv_uni['category']?>">
                        <a href="<?=base_url()?>works/show_work/<?=$viv_uni['id']?>" class="portfolio-link" data-toggle="modal">
                            <div class="portfolio-hover">
                                <div class="portfolio-hover-content">
                                     <p ><?=$viv_uni['description']?></p>
                                </div>
                            </div>
                            <img src="<?=base_url()?>img/uploads/<?=$images[0]['name']?>" class="img-responsive" >
                        </a>
                        <div class="portfolio-caption">
                            <h6 class="col-md-10"style="text-align:left;"><?=$viv_uni['title']?></h6>
                            <p class="col-md-2"style="text-align:left;"><?=$viv_uni['superficie']?> m2</p>
                        </div>
                    </div>

        <?php
                }                
            }
            echo "</div>";
        }
        if (isset($vivienda_multifamiliar)) {

            echo '<div class="row '.$vivienda_multifamiliar[0]['category'].'"id="'.$vivienda_multifamiliar[0]['category'].'">';
            echo "<div class='row col-md-6 col-md-offset-3' ><h4>Vivienda Multifamiliares</h4></div>";

            foreach ($vivienda_multifamiliar as $viv_multi) {
                $images = $viv_multi['images'];
                // foreach work it will show only first image
                if(isset($images[0])){
        ?>             

                    <div class="col-md-4 col-sm-6 portfolio-item" id="<?=$viv_multi['category']?>">
                        <a href="<?=base_url()?>works/show_work/<?=$viv_multi['id']?>" class="portfolio-link" data-toggle="modal">
                            <div class="portfolio-hover">
                                <div class="portfolio-hover-content">
                                     <p ><?=$viv_multi['description']?></p>
                                </div>
                            </div>
                            <img src="<?=base_url()?>img/uploads/<?=$images[0]['name']?>" class="img-responsive" >
                        </a>
                        <div class="portfolio-caption">
                            <h6 class="col-md-10"style="text-align:left;"><?=$viv_multi['title']?></h6>
                            <p class="col-md-2"style="text-align:left;"><?=$viv_multi['superficie']?> m2</p>
                        </div>
                    </div>

        <?php
                }                
            }
            echo "</div>";
        }
        

        if (isset($edificios)) {

            echo '<div class="row '.$edificios[0]['category'].'"id="'.$edificios[0]['category'].'">';
            echo "<div class='row col-md-6 col-md-offset-3'><h4>Varios</h4></div>";

            foreach ($edificios as $edificio) {
                $images = $edificio['images'];
                // foreach work it will show only first image
                if(isset($images[0])){
        ?>             

                    <div class="col-md-4 col-sm-6 portfolio-item">
                        <a href="<?=base_url()?>works/show_work/<?=$edificio['id']?>" class="portfolio-link" data-toggle="modal">
                            <div class="portfolio-hover">
                                <div class="portfolio-hover-content">
                                     <p ><?=$edificio['description']?></p>
                                </div>
                            </div>
                            <img src="<?=base_url()?>img/uploads/<?=$images[0]['name']?>" class="img-responsive" >
                        </a>
                        <div class="portfolio-caption">
                            <h6 class="col-md-10"style="text-align:left;"><?=$edificio['title']?></h6>
                            <p class="col-md-2"style="text-align:left;"><?=$edificio['superficie']?> m2</p>
                        </div>
                    </div>

        <?php
                }                
            }
            echo "</div>";

        }elseif (!isset($_SESSION['user_id'])){
        ?>
            
            <div class="row">
                <h4>No Works! You must log in to create works.</h4>
            </div>

        <?php 
        }
        if (isset($_SESSION['user_id'])) {
        ?>
{'fraction_non_alphanumeric': 0.17573843581645923, 'fraction_numerical': 0.010681775961359836, 'mean_word_length': 1.3224762726488353, 'pattern_counts': {'":': 0, '<': 227, '<?xml version=': 0, '>': 227, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1539357', 'n_tokens_mistral': 3089, 'n_tokens_neox': 2970, 'n_words': 450}