<commit_before>
<?php
use yii\helpers\Html;
use yii\widgets\LinkPager;


$this->title = "Coupon Search";
?>
<style>
    .top-buffer { margin-top:20px; }
    option {
        height: 25px;
        font-size: 16px;
    }
    option:active{
        height: 28px;
        -webkit-appearance: none;
    }
</style>
    
<script src="js/script.js"></script>
<div class="container-fluid" style="margin-top:-10px;">
    <div class="row">
        <div class="col-md-4" >
            <div class="panel-group" id="" style="position:fixed; width:300px">
                <h1><?= "Coupon Search" ?></h1>
                <form role="form" onchange="refreshWithUpdatedDetails();">
                <div id="accordion" class="panel-group">
                    <div class="panel panel-default modal-content">
                        <div class="panel-heading">
                            <h4 class="panel-title">
                                <a data-toggle="collapse" class='modal-head' data-parent="#accordion" href="#collapseOne">Coupon Type</a>
                            </h4>
                        </div>
                        <div id="collapseOne" class="panel-collapse collapse">
                            <div class="panel-body modal-body">
                                <label>
                                        <select name='couponType' id='couponType' multiple size='3' class='selectpicker' style='width: 250px;'>
                                            <option value='all' selected>Select All</option>
                                            <option value='1'>Deal</option>
                                            <option value='0'>Coupon</option>
                                        </select>                                        
                                    </label>
                            </div>
                        </div>
                    </div>
                    <div class="panel panel-default modal-content">
                        <div class="panel-heading">
                            <h4 class="panel-title">
                                <a data-toggle="collapse" class='modal-head' data-parent="#accordion" href="#collapseTwo">Store</a>
                            </h4>
                        </div>
                        <div id="collapseTwo" class="panel-collapse collapse">
                            <div class="panel-body modal-body">
                                <label>
                                        <select name='Stores' id='Stores' multiple='multiple' size='15' class='selectpicker' style='width: 250px;'>
                                            <option value='all' selected> Select All </option>                                                           
                                            <?php foreach ($stores as $website) { ?>
                                            <option value='<?= $website->WebsiteID; ?>'><?= $website->WebsiteName; ?></option>
                                            <?php } ?> 
                                        </select>  
                                    </label>
                            </div>
                        </div>
                    </div>
                    <div class="panel panel-default modal-content">
                        <div class="panel-heading">
                            <h4 class="panel-title">
                                <a data-toggle="collapse" class='modal-head' data-parent="#accordion" href="#collapseThree">Category</a>
                            </h4>
                        </div>
                        <div id="collapseThree" class="panel-collapse collapse">
                            <div class="panel-body modal-body">
                                    <label>
                                        <select name='Category' id='Category' multiple='multiple' size='15' class='input-medium' style='width: 250px;'>
                                            <option value='all' selected> Select All </option>                                                           
                                            <?php foreach ($category as $cat) { ?>
                                            <option value='<?= $cat->CategoryID; ?>'><?= $cat->Name; ?></option>
                                            <?php } ?> 
                                        </select> 
                                    </label>
                            </div>
                        </div>
                    </div>
                </div>
                    <div class='panel-body col-md-offset-3'>
                        <input type="button" class="btn btn-success" onclick="downloadDataAsExcel();" value="Download Excel"/>
                    </div>                
            </form>
            </div>
	</div>
        <?php yii\widgets\Pjax::begin() ?>
        <div id="ajax-data">   
            <div class="col-md-8">
		<div class="row">
                    <?php foreach ($coupons as $coupon){ ?>
                        <div class="col-md-12 modal-content top-buffer">
                            <div class="row modal-header"> <commit_msg>enhancement<commit_after>
<?php
use yii\helpers\Html;
use yii\widgets\LinkPager;


$this->title = "Coupon Search";
?>
<style>
    .top-buffer { margin-top:20px; }
    option {
        height: 25px;
        font-size: 16px;
    }
    option:active{
        height: 28px;
        -webkit-appearance: none;
    }
</style>
    
<script src="js/script.js"></script>
<div class="container-fluid" style="margin-top:-10px;">
    <div class="row">
        <div class="col-md-4" >
            <div class="panel-group" id="" style="position:fixed; width:300px">
                <h1><?= "Coupon Search" ?></h1>
                <form role="form" onchange="refreshWithUpdatedDetails();">
                <div id="accordion" class="panel-group">
                    <div class="panel panel-default modal-content">
                        <div class="panel-heading">
                            <h4 class="panel-title">
                                <a data-toggle="collapse" class='modal-head' data-parent="#accordion" href="#collapseOne">Coupon Type</a>
                            </h4>
                        </div>
                        <div id="collapseOne" class="panel-collapse collapse">
                            <div class="panel-body modal-body">
                                <label>
                                        <select name='couponType' id='couponType' multiple size='3' class='selectpicker' style='width: 250px;'>
                                            <option value='all' selected>Select All</option>
                                            <option value='1'>Deal</option>
                                            <option value='0'>Coupon</option>
                                        </select>                                        
                                    </label>
                            </div>
                        </div>
                    </div>
                    <div class="panel panel-default modal-content">
                        <div class="panel-heading">
                            <h4 class="panel-title">
                                <a data-toggle="collapse" class='modal-head' data-parent="#accordion" href="#collapseTwo">Store</a>
                            </h4>
                        </div>
                        <div id="collapseTwo" class="panel-collapse collapse">
                            <div class="panel-body modal-body">
                                <label>
                                        <select name='Stores' id='Stores' multiple='multiple' size='15' class='selectpicker' style='width: 250px;'>
                                            <option value='all' selected> Select All </option>                                                           
                                            <?php foreach ($stores as $website) { ?>
                                            <option value='<?= $website->WebsiteID ?>'><?= $website->WebsiteName ?></option>
                                            <?php } ?> 
                                        </select>  
                                    </label>
                            </div>
                        </div>
                    </div>
                    <div class="panel panel-default modal-content">
                        <div class="panel-heading">
                            <h4 class="panel-title">
                                <a data-toggle="collapse" class='modal-head' data-parent="#accordion" href="#collapseThree">Category</a>
                            </h4>
                        </div>
                        <div id="collapseThree" class="panel-collapse collapse">
                            <div class="panel-body modal-body">
                                    <label>
                                        <select name='Category' id='Category' multiple='multiple' size='15' class='input-medium' style='width: 250px;'>
                                            <option value='all' selected> Select All </option>                                                           
                                            <?php foreach ($category as $cat) { ?>
                                            <option value='<?= $cat->CategoryID ?>'><?= $cat->Name ?></option>
                                            <?php } ?> 
                                        </select> 
                                    </label>
                            </div>
                        </div>
                    </div>
                </div>
                    <div class='panel-body col-md-offset-3'>
                        <input type="button" class="btn btn-success" onclick="downloadDataAsExcel();" value="Download Excel"/>
                    </div>                
            </form>
            </div>
	</div>
        <?php yii\widgets\Pjax::begin() ?>
        <div id="ajax-data">   
            <div class="col-md-8">
		<div class="row">
                    <?php foreach ($coupons as $coupon){ ?>
                        <div class="col-md-12 modal-content top-buffer">
                            <div class="row modal-header"> 
{'fraction_non_alphanumeric': 0.12550921435499515, 'fraction_numerical': 0.008147429679922406, 'mean_word_length': 0.9414422895876483, 'pattern_counts': {'":': 0, '<': 199, '<?xml version=': 0, '>': 209, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 84, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6413283', 'n_tokens_mistral': 2350, 'n_tokens_neox': 2202, 'n_words': 466}