<commit_before><?php
/* @var $this ProjectController */
/* @var $model Project */

$url = Yii::app()->getBaseUrl(true);
$id = e($model->id);
$uuid = e($model->uuid);
$compatibility = $model->compatibility();

?>


<div class="report-content">
    <div class="row">
        <div class="col-lg-12 col-md-12 col-xs-12">
            <div class="page-title">
                <h2 class="section-title"><?php echo Yii::t('app', 'Project Info'); ?></h2>
            </div>
        </div>
        <div class="col-lg-12 col-md-12 col-sm-12 colxs-12">
            <div class="project-report">
                <div class="row">
                    <div class="col-lg-12 col-md-12 col-xs-12">
                        <div class="project-info">
                            <div class="col-md-12">
                                <div class="row">
                                    <div class="col-lg-12 col-md-6">
                                        <div class="label"><?php echo e($model->getAttributeLabel('name')); ?></div>
                                    </div>
                                    <div class="col-lg-12 col-md-6">
                                        <div class="value"><?php echo e($model->name); ?></div>
                                    </div>
                                </div>
                            </div>
                            <?php if (!empty($model->website)) : ?>
                                <div class="col-md-12">
                                    <div class="row">
                                        <div class="col-lg-12 col-md-6">
                                            <div class="label"><?php echo e($model->getAttributeLabel('website')); ?></div>
                                        </div>
                                        <div class="col-lg-12 col-md-6">
                                            <div class="value ellipsis"><a href="<?php echo e($model->website); ?>" target="_blank"><?php echo e($model->website); ?></a></div>
                                        </div>
                                    </div>
                                </div>
                            <?php endif; ?>
                            <?php if (!empty($model->repo)) : ?>
                                <div class="col-md-12">
                                    <div class="row">
                                        <div class="col-lg-12 col-md-6">
                                            <div class="label"><?php echo e($model->getAttributeLabel('repo')); ?></div>
                                        </div>
                                        <div class="col-lg-12 col-md-6">
                                            <div class="value ellipsis"><a href="<?php echo e($model->repo); ?>" target="_blank"><?php echo e($model->repo); ?></a></div>
                                        </div>
                                    </div>
                                </div>
                            <?php endif; ?>
                            <?php if (!empty($createdate)) : ?>
                                <div class="col-md-12">
                                    <div class="row">
                                        <div class="col-lg-12 col-md-6">
                                            <div class="label"><?php echo e($model->getAttributeLabel('createdate')); ?></div>
                                        </div>
                                        <div class="col-lg-12 col-md-6">
                                            <div class="value"><?php echo e($createdate); ?></div>
                                        </div>
                                    </div>
                                </div>
                            <?php endif; ?>
                        </div>
                    </div>
                    <div class="col-lg-12 col-md-12 col-xs-12"><hr /></div>
                    <div class="col-lg-12 col-md-12 col-xs-12">
                        <div class="page-title">
                            <h2 class="section-title"><?php echo Yii::t('app', 'Project Issues'); ?></h2>
                        </div>
                    </div>
                    <?php if ($compatibility['status'] != Compatible::STATUS_COMPATIBLE) : ?>
                    <div class="col-lg-12 col-md-12 col-xs-12">
                        <div class="alert alert-danger">
                            <p>There are some modules with licenses incompatibility issues:</p>
                            <?php if (!empty($compatibility['conflicts'])) : foreach ($compatibility['conflicts'] as $module): ?>
                                <i class="glyphicon glyphicon-thumbs-down thumbs" ></i><?php echo $module->name; ?><br>
                            <?php endforeach; endif; ?>
                        </div>
                    </div>
                    <?php else: ?>
                    <div class="col-lg-12 col-md-12 col-xs-12">
                        <div class="alert alert-success">
                            Well done!! Your project has no compatibility problems.
                            <i class="glyphicon glyphicon-thumbs-up thumbs" ></i><br>
                        </div>
                    </div>
                    <?php endif; ?>
                    <div class="col-lg-12 col-md-12 col-xs-12"><hr /></div>
                </div>
            </div>
        </div>
        <div class="col-lg-12 col-md-12 col-xs-12">
            <div class="page-title">
                <h2 class="section-title"><?php echo Yii::t('app', 'Project Modules'); ?></h2>
            </div>
        </div>
        <div class="col-lg-12 col-md-12 col-sm-12 colxs-12">
            <div class="modules-report">
                TODO : Show all project modules and status
            </div>
        </div>
        <div class="col-lg-12 col-md-12 col-xs-12"><hr /></div>
        <div class="col-lg-12 col-md-12 col-xs-12">
            <div class="page-title">
                <h2 class="section-title"><?php echo Yii::t('app', 'Share your Project'); ?></h2>
            </div>
        </div>
        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
            <div class="alert alert-info share-link">
                <p>
                    <strong>
                        Personal user info:
                    </strong>
                </p>
                <p class='report-link ellipsis'>
                  <i class="glyphicon glyphicon-link report-link-icon"></i>
                  <a href="<?php echo $url.'/project/report/id/'.$id.'/code/'.$uuid; ?>"><?php echo $url.'/project/report/id/'.$id.'/code/'.$uuid; ?></a>
                </p>
                <p>
                    <strong>
                        This is a public access, avoid to show.
                    </strong>
                </p>
            </div>
        </div>
        <div class="col-lg-12 col-md-12 col-sm-12 colxs-12">
            <div class="print-link">
                <a href="#" class=" btn btn-success right print">
                    <i class="glyphicon glyphicon-print set-right" data-toggle="tooltip"
                    data-original-title="<?php echo Yii::t('app', 'PRINT REPORT'); ?>"></i>
                </a>
            </div>
        </div>
    <div>
</div><commit_msg>report page added<commit_after><?php
/* @var $this ProjectController */
/* @var $model Project */

$url = Yii::app()->getBaseUrl(true);
$id = e($model->id);
$uuid = e($model->uuid);
$compatibility = $model->compatibility();
$available = $model->availableLicenses();
$modules = $model->modules;
$compclasses = array(
  Compatible::STATUS_INCOMPATIBLE => 'incompatible',
  Compatible::STATUS_COMPATIBLE   => 'compatible',
  Compatible::STATUS_UNKNOWN      => 'unknown',
  Compatible::STATUS_DISABLED     => 'disabled',
);

?>

<?php /*
foreach ($modules as $item) {
    echo "<p>".$item->name."</p>";
    echo "<p>".$item->fullLicenseName()."</p>";
    echo "<p>".$item->fullRelation()."</p>";
    echo "<p>".$item->fullType()."</p>";
    echo "<p>".$item->fullIntegrationDate()."</p>";
    echo "____________________________________";
}
*/?>


<div class="report-content">
    <div class="row">
        <div class="col-lg-12 col-md-12 col-xs-12"> <?php /* Project-info */ ?>
            <div class="page-title">
                <h2 class="section-title"><?php echo Yii::t('app', 'Project Info'); ?></h2>
            </div>
            <div class="row">
                <div class="col-lg-12 col-md-12 col-xs-12">
                    <div class="project-info">
                        <div class="col-md-12">
                            <div class="row">
                                <div class="col-lg-12 col-md-6">
                                    <div class="label"><?php echo e($model->getAttributeLabel('name')); ?></div>
                                </div>
                                <div class="col-lg-12 col-md-6">
                                    <div class="value"><?php echo e($model->name); ?></div>
                                </div>
                            </div>
                        </div>
                        <?php if (!empty($model->website)) : ?>
                            <div class="col-md-12">
                                <div class="row">
                                    <div class="col-lg-12 col-md-6">
                                        <div class="label"><?php echo e($model->getAttributeLabel('website')); ?></div>
                                    </div>
                                    <div class="col-lg-12 col-md-6">
                                        <div class="value ellipsis"><a href="<?php echo e($model->website); ?>" target="_blank"><?php echo e($model->website); ?></a></div>
                                    </div>
                                </div>
                            </div>
                        <?php endif; ?>
                        <?php if (!empty($model->repo)) : ?>
                            <div class="col-md-12">
                                <div class="row">
                                    <div class="col-lg-12 col-md-6">
                                        <div class="label"><?php echo e($model->getAttributeLabel('repo')); ?></div>
                                    </div>
                                    <div class="col-lg-12 col-md-6">
                                        <div class="value ellipsis"><a href="<?php echo e($model->repo); ?>" target="_blank"><?php echo e($model->repo); ?></a></div>
                                    </div>
                                </div>
                            </div>
                        <?php endif; ?>
                        <?php if (!empty($createdate)) : ?>
                            <div class="col-md-12">
                                <div class="row">
                                    <div class="col-lg-12 col-md-6">
                                        <div class="label"><?php echo e($model->getAttributeLabel('createdate')); ?></div>
                                    </div>
                                    <div class="col-lg-12 col-md-6">
                                        <div class="value"><?php echo e($createdate); ?></div>
                                    </div>
                                </div>
                            </div>
                        <?php endif; ?>
                    </div>
                </div>
                <div class="col-lg-12 col-md-12 col-xs-12"><hr /></div>
            </div>
        </div>
        <div class="col-lg-12 col-md-12 col-xs-12"><?php /* Project-licenses */ ?>
            <div class="page-title">
                <h2 class="section-title"><?php echo Yii::t('app', 'Project Licenses'); ?></h2>
            </div>
            <div class="row">
                <div class="col-lg-12 col-md-12 col-xs-12">
                    <div class="row">
                        <div class="col-lg-12 col-md-12 col-xs-12">
                            <div class="font-faq">
                            <?php echo Yii::t('app','Here you have a list of compartible licenses to be used with your project.'); ?>
                            </div>
                        </div>
                        <div class="project-licenses">
                            <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
                                <div class="list-title">
                                    <h4><?php echo Yii::t('app', 'Static'); ?></h4><hr />
                                </div>
                                <div class="static-list">
                                <?php if (!empty($available['static'])) : ?>
                                    <ul>
                                    <?php foreach ($available['static'] as $license): ?>
                                        <li class="ellipsis">
                                            <?php if (!empty($license->url)) : ?>
                                                <a href="<?php echo $license->url; ?>" target="_blank">
                                            <?php endif; ?>
                                            <?php echo $license->name; ?>
                                            <?php if (!empty($license->url)) : ?>
                                                </a>
                                            <?php endif; ?>
                                        </li>
                                    <?php endforeach ?>
                                    </ul>
                                </div>
                                <?php else : ?>
                                        No license is compatible with project modules
                                <?php endif; ?>
                            </div>
                            <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
                                <div class="list-title">
                                    <h4><?php echo Yii::t('app', 'Dinamic'); ?></h4><hr />
                                </div>
                                <div class="dinamic-list">
                                <?php if (!empty($available['dinamic'])) : ?>
                                    <ul>
                                    <?php foreach ($available['dinamic'] as $license): ?>
                                        <li class="ellipsis">
                                            <?php if (!empty($license->url)) : ?>
                                                <a href="<?php echo $license->url; ?>" target="_blank">
                                            <?php endif; ?>
                                            <?php echo $license->name; ?>
                                            <?php if (!empty($license->url)) : ?>
                                                </a>
                                            <?php endif; ?>
                                        </li>
                                    <?php endforeach ?>
                                    </ul>
                                </div>
                                <?php else : ?>
                                    No license is compatible with project modules
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-12 col-md-12 col-xs-12"><hr /></div>
            </div>
        </div>
        <div class="col-lg-12 col-md-12 col-xs-12"><?php /* Project-modules */ ?>
            <div class="page-title">
                <h2 class="section-title"><?php echo Yii::t('app', 'Project Modules'); ?></h2>
            </div>
        </div>
        <div class="col-lg-12 col-md-12 col-sm-12 colxs-12">
            <?php foreach($modules as $item): ?>
                <?php $compatibility = $item->compatibility(); ?>
                <div class="project-modules">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="row">
                                <div class="col-lg-12 col-md-6">
                                    <div class="value module-title ellipsis">
                                         <i class="glyphicon glyphicon-cog cog"></i>
                                        <?php echo e($item->name); ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-12">
                            <div class="row">
                                <div class="col-lg-12 col-md-6">
                                    <div class="label">
                                        <?php echo e($item->getAttributeLabel('license_id')); ?>
                                    </div>
                                </div>
                                <div class="col-lg-12 col-md-6">
                                    <div class="value ellipsis">
                                        <?php if (!empty($license_url)) : ?>
                                        <a href="<?php echo e($license_url); ?>" target="_blank">
                                        <?php endif; ?>
                                            <?php echo e($item->fullLicenseName()); ?>
                                        <?php if (!empty($license_url)) : ?>
                                        </a>
                                        <?php endif; ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <?php if (!empty($item->website)) : ?>
                        <div class="col-md-12">
                            <div class="row">
                                <div class="col-lg-12 col-md-6">
                                    <div class="label">
                                        <?php echo e($model->getAttributeLabel('website')); ?>
                                    </div>
                                </div>
                                <div class="col-lg-12 col-md-6">
                                    <div class="value ellipsis">
                                        <a href="<?php echo e($model->website); ?>" target="_blank">
                                            <?php echo e($model->website); ?>
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <?php endif; ?>
                        <?php if (!empty($item->repo)) : ?>
                        <div class="col-md-12">
                            <div class="row">
                                <div class="col-lg-12 col-md-6">
                                    <div class="label">
                                        <?php echo e($model->getAttributeLabel('repo')); ?>
                                    </div>
                                </div>
                                <div class="col-lg-12 col-md-6">
                                    <div class="value ellipsis">
                                        <a href="<?php echo e($model->repo); ?>" target="_blank">
                                            <?php echo e($model->repo); ?>
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <?php endif; ?>
                        <?php if (!empty($item->relation)) : ?>
                        <div class="col-md-12">
                            <div class="row">
                                <div class="col-lg-12 col-md-6">
                                    <div class="label">
                                        <?php echo e($item->getAttributeLabel('relation')); ?>
                                    </div>
                                </div>
                                <div class="col-lg-12 col-md-6">
                                    <div class="value ellipsis">
                                        <?php echo e($item->fullRelation()); ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <?php endif; ?>
                        <?php if (!empty($item->type)) : ?>
                        <div class="col-md-12">
                            <div class="row">
                                <div class="col-lg-12 col-md-6">
                                    <div class="label">
                                        <?php echo e($model->getAttributeLabel('type')); ?>
                                    </div>
                                </div>
                                <div class="col-lg-12 col-md-6">
                                    <div class="value ellipsis">
                                        <?php echo e($item->fullType()); ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <?php endif; ?>
                        <?php if (!empty($item->createdate)) : ?>
                        <div class="col-md-12">
                            <div class="row">
                                <div class="col-lg-12 col-md-6">
                                    <div class="label">
                                        <?php echo e($model->getAttributeLabel('integrationdate')); ?>
                                    </div>
                                </div>
                                <div class="col-lg-12 col-md-6">
                                    <div class="value ellipsis">
                                        <?php echo e($item->fullIntegrationDate()); ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <?php endif; ?>
                        <div class="col-md-12">
                            <div class="row">
                                <div class="col-lg-12 col-md-6">
                                    <div class="label">
                                        <?php echo e($model->getAttributeLabel('status')); ?>
                                    </div>
                                </div>
                                <div class="col-lg-12 col-md-6">
                                    <div class="value ellipsis">
                                        <?php echo Compatible::statusPrint($compatibility['status']); ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            <?php endforeach;?>
        </div>
        <div class="col-lg-12 col-md-12 col-xs-12"><hr /></div>
        <div class="col-lg-12 col-md-12 col-xs-12">
            <div class="page-title">
                <h2 class="section-title"><?php echo Yii::t('app', 'Link to Report'); ?></h2>
            </div>
        </div>
        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
            <div class="alert alert-info share-link">
                <p>
                    <strong>
                        <?php echo Yii::t('app',
                        'This is a public link. Anyone may access to your project report so be carefull 
                        with whom we share it.'
                        );?>
                    </strong>
                </p>
                <p class='report-link ellipsis'>
                  <i class="glyphicon glyphicon-link report-link-icon"></i>
                  <a href="<?php echo $url.'/project/report/id/'.$id.'/code/'.$uuid; ?>"><?php echo $url.'/project/report/id/'.$id.'/code/'.$uuid; ?></a>
                </p>
            </div>
        </div>
        <div class="col-lg-12 col-md-12 col-sm-12 colxs-12">
            <div class="print-link">
                <a class=" btn btn-success right print" onClick="window.print()">
                    <i class="glyphicon glyphicon-print set-right" data-toggle="tooltip"
                    data-original-title="<?php echo Yii::t('app', 'PRINT REPORT'); ?>"></i>
                </a>
            </div>
        </div>
    <div>
</div>
{'fraction_non_alphanumeric': 0.144953979645623, 'fraction_numerical': 0.01333982078417062, 'mean_word_length': 0.789970244575078, 'pattern_counts': {'":': 0, '<': 542, '<?xml version=': 0, '>': 614, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 209, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4484101', 'n_tokens_mistral': 5917, 'n_tokens_neox': 5564, 'n_words': 1186}