<commit_before><?php
use yii\widgets\Pjax;
use yii\helpers\Html;
use common\components\CommonHelper;

?>
<div class="modal-body photo-gallery">
    <div class="profile-control photo-btn">
        <button class="btn file_browse_wrapper" type="button"> Upload Video or Photo</button>
        <button class="btn active" type="button"> Choose from Photos</button>
        <button class="btn" type="button"> Albums</button>
    </div>
    <div class="choose-photo mrg-tp-20 text-center">
        <div class="row" id="profile_list_popup">
            <?php
            if (count($model) > 0) {
                foreach ($model as $K => $V) {
                    ?>
                    <div class="col-md-3 col-sm-3 col-xs-6">
                        <?php $SELECTED = '';
                        if ($V['Is_Profile_Photo'] == 'YES') {
                            $SELECTED = "selected";
                        }
                        if ($PhotoSetType != Yii::$app->params['cover']) {
                            ?>

                        <div class="hovertool<?= ($V->eStatus == 'Approve') ? '' : ' img-blur' ?>">
                            <a class="<?= $SELECTED ?><?= ($V->eStatus == 'Approve') ? ' profile_set_kp set_profile_photo' : '' ?>"
                               data-toggle="tooltip" data-placement="top"
                               href="javascript:void(0)"
                                <?php if ($V->eStatus == 'Approve') { ?>
                                    data-original-title="<?= Yii::$app->params['photoSetAsCover'] ?>"
                                    data-id="<?= $V['iPhoto_ID'] ?>"
                                    data-target="#profilecrop" data-toggle="modal"
                                    data-item="<?= CommonHelper::getPhotos('USER', Yii::$app->user->identity->id, $V['File_Name']) ?>"
                                    data-name="<?= $V['File_Name'] ?>"
                                <?php } else { ?>
                                    data-original-title="<?= ($V->eStatus == 'Pending') ? Yii::$app->params['photoPendingMessage'] : Yii::$app->params['photoDisapproveMessage'] ?>"
                                <?php } ?>>
                                <?= Html::img(CommonHelper::getPhotos('USER', Yii::$app->user->identity->id, Yii::$app->params['thumbnailPrefix'] . "120_" . $V['File_Name'], 120), ['class' => 'img-responsive ' . $SELECTED, 'width' => '140', 'alt' => 'Photo' . $K]); ?>
                            </a>
                        </div>
                        <?php } else { ?>
                            <div class="hovertool<?= ($V->eStatus == 'Approve') ? '' : ' img-blur' ?>">
                                <a class="<?= $SELECTED ?><?= ($V->eStatus == 'Approve') ? 'cover_profile_set' : '' ?>"
                                   data-toggle="tooltip" data-placement="top"
                                   href="javascript:void(0)"
                                    <?php if ($V->eStatus == 'Approve') { ?>
                                        data-original-title="<?= Yii::$app->params['photoSetAsCover'] ?>"
                                        data-id="<?= $V['iPhoto_ID'] ?>"
                                        data-target="#photocovermodel" data-toggle="modal"
                                        data-item="<?= CommonHelper::getPhotos('USER', Yii::$app->user->identity->id, $V['File_Name']) ?>"
                                        data-name="<?= $V['File_Name'] ?>"
                                    <?php } else { ?>
                                        data-original-title="<?= ($V->eStatus == 'Pending') ? Yii::$app->params['photoPendingMessage'] : Yii::$app->params['photoDisapproveMessage'] ?>"
                                    <?php } ?>>
                                    <?= Html::img(CommonHelper::getPhotos('USER', Yii::$app->user->identity->id, Yii::$app->params['thumbnailPrefix'] . "120_" . $V['File_Name'], 120), ['class' => 'img-responsive ' . $SELECTED, 'width' => '140', 'alt' => 'Photo' . $K]); ?>
                                </a>
                            </div>
                        <?php } ?>
                    </div>
                <?php }
            } else {
                ?>
                <div class="col-md-12 col-sm-12 col-xs-12 text-center">
                    <p> <?= Yii::$app->params['noPhotoAvailable'] ?></p>
                </div>
            <?php } ?>
        </div>
    </div>
</div>
<commit_msg>**** My Profile Page ***** - Profile photo set as Cover Photo issue fix.<commit_after><?php
use yii\widgets\Pjax;
use yii\helpers\Html;
use common\components\CommonHelper;

?>
<div class="modal-body photo-gallery">
    <div class="profile-control photo-btn">
        <button class="btn file_browse_wrapper" type="button"> Upload Video or Photo</button>
        <button class="btn active" type="button"> Choose from Photos</button>
        <button class="btn" type="button"> Albums</button>
    </div>
    <div class="choose-photo mrg-tp-20 text-center">
        <div class="row" id="profile_list_popup">
            <?php
            if (count($model) > 0) {
                foreach ($model as $K => $V) {
                    ?>
                    <div class="col-md-3 col-sm-3 col-xs-6">
                        <?php $SELECTED = '';
                        if ($V['Is_Profile_Photo'] == 'YES') {
                            $SELECTED = "selected";
                        }
                        if ($PhotoSetType != Yii::$app->params['cover']) {
                            ?>

                        <div class="hovertool<?= ($V->eStatus == 'Approve') ? '' : ' img-blur' ?>">
                            <a class="<?= $SELECTED ?><?= ($V->eStatus == 'Approve') ? ' profile_set_kp set_profile_photo' : '' ?>"
                               data-toggle="tooltip" data-placement="top"
                               href="javascript:void(0)"
                                <?php if ($V->eStatus == 'Approve') { ?>
                                    data-original-title="<?= Yii::$app->params['photoSetAsCover'] ?>"
                                    data-id="<?= $V['iPhoto_ID'] ?>"
                                    data-target="#profilecrop" data-toggle="modal"
                                    data-item="<?= CommonHelper::getPhotos('USER', Yii::$app->user->identity->id, $V['File_Name']) ?>"
                                    data-name="<?= $V['File_Name'] ?>"
                                <?php } else { ?>
                                    data-original-title="<?= ($V->eStatus == 'Pending') ? Yii::$app->params['photoPendingMessage'] : Yii::$app->params['photoDisapproveMessage'] ?>"
                                <?php } ?>>
                                <?= Html::img(CommonHelper::getPhotos('USER', Yii::$app->user->identity->id, Yii::$app->params['thumbnailPrefix'] . "120_" . $V['File_Name'], 120), ['class' => 'img-responsive ' . $SELECTED, 'width' => '140', 'alt' => 'Photo' . $K]); ?>
                            </a>
                        </div>
                        <?php } else { ?>
                            <div class="hovertool<?= ($V->eStatus == 'Approve') ? '' : ' img-blur' ?>">
                                <a class="<?= $SELECTED ?> <?= ($V->eStatus == 'Approve') ? 'cover_profile_set' : '' ?>"
                                   data-toggle="tooltip" data-placement="top"
                                   href="javascript:void(0)"
                                    <?php if ($V->eStatus == 'Approve') { ?>
                                        data-original-title="<?= Yii::$app->params['photoSetAsCover'] ?>"
                                        data-id="<?= $V['iPhoto_ID'] ?>"
                                        data-target="#photocovermodel" data-toggle="modal"
                                        data-item="<?= CommonHelper::getPhotos('USER', Yii::$app->user->identity->id, $V['File_Name']) ?>"
                                        data-name="<?= $V['File_Name'] ?>"
                                    <?php } else { ?>
                                        data-original-title="<?= ($V->eStatus == 'Pending') ? Yii::$app->params['photoPendingMessage'] : Yii::$app->params['photoDisapproveMessage'] ?>"
                                    <?php } ?>>
                                    <?= Html::img(CommonHelper::getPhotos('USER', Yii::$app->user->identity->id, Yii::$app->params['thumbnailPrefix'] . "120_" . $V['File_Name'], 120), ['class' => 'img-responsive ' . $SELECTED, 'width' => '140', 'alt' => 'Photo' . $K]); ?>
                                </a>
                            </div>
                        <?php } ?>
                    </div>
                <?php }
            } else {
                ?>
                <div class="col-md-12 col-sm-12 col-xs-12 text-center">
                    <p> <?= Yii::$app->params['noPhotoAvailable'] ?></p>
                </div>
            <?php } ?>
        </div>
    </div>
</div>

{'fraction_non_alphanumeric': 0.1849345462613712, 'fraction_numerical': 0.0071000665631240295, 'mean_word_length': 1.3015062547868266, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 199, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 40, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6946075', 'n_tokens_mistral': 2464, 'n_tokens_neox': 2383, 'n_words': 393}