<commit_before><!-- START: box -->
<div class="rounded-box-title box">
    <div class="box-inner clearfix">
         
         <div class="more-wrap">
            <a class="more reset-filters">Clear filters</a>
         </div>

        <form id="search-form" name="search" action="" method="get" class="sidebar-form">
            
            <div>
               <label for="location-1">Period: </label>
                <select  class="topics" multiple="" tabindex="-1"  >
                    <option value="all"></option>
                    <?php
                    //@TODO Decide how to render loop inside partial
                    foreach( $this->service['tags'] as $tagName ) {
                    ?>
                    <option value="<?php echo $tagName; ?>" ><?php echo $tagName; ?></option>
                    <?php
                    }
                    ?>
                </select>

                <p class="type-condition">
                     <input type="radio" checked="true" value="all" name="tc">All <input type="radio" value="alo" name="tc"> At least one
                </p> 
            </div>
            <div>
               <label for="location-1">Location: </label>
               <select name="region" id="region">
                    <option value="*" >All regions</option>
                    <?php
                     foreach ( $this->service['regions'] as $slug => $region ) {
                           $selected = ( $this->currents['region'] == $slug ) ? "selected" : "";
                    ?>
                    <option value="<?php echo $slug; ?>" <?php echo $selected ?> > <?php echo $region; ?></option>
                     <?php                       
                       }
                     ?>
               </select>
             </div>
             <div>
                  <label for="location-1">Period: </label>
                  <select name="period">
                     <option value="*" >All periods</option>

                     <?php
                     $currentDate = new \DateTime();
                     for( $monthRange = 0 ; $monthRange < 6 ; $monthRange++ ) {

                                   if( $monthRange > 0 )  {
                                    
                                       $DateInterval = new \DateInterval(P1M);
                                       $currentDate->add($DateInterval);

                                   }
                                   $selected = ( $this->currents['period'] == $currentDate->format("F-Y") ) ? "selected" : "";
                     ?>
                     <option value="<?php echo $currentDate->format("F-Y")?>" <?php echo $selected; ?>><?php echo $currentDate->format("F-Y") ?></option>
                     <?php
                     }  
                     ?>
                     </select>
             </div>
             <div class="loader"></div>
             <div class="count-loader"></div>
             <div class="result"></div>
             <div class="submit-loader"></div>
             <div>
                 <input type="submit" class="bigbutton" value="Refine">
             </div>
            </form>
      </div>
 </div>
<!-- END: box -->
                
            <commit_msg>fixed region, period and topics select<commit_after><!-- START: box -->
<div class="rounded-box-title box">
    <div class="box-inner clearfix">
         
         <div class="more-wrap">
            <a class="more reset-filters">Clear filters</a>
         </div>

        <form id="search-form" name="search" action="" method="get" class="sidebar-form">
            
            <div>
               <label for="location-1">Period: </label>
                <select  class="topics" multiple="" tabindex="-1"  >
                    <option value="all"></option>
                    <?php
                    //@TODO Decide how to render loop inside partial
                    foreach( $this->tags as $tagName ) {
                    ?>
                    <option value="<?php echo $tagName; ?>" ><?php echo $tagName; ?></option>
                    <?php
                    }
                    ?>
                </select>

                <p class="type-condition">
                     <input type="radio" checked="true" value="all" name="tc">All <input type="radio" value="alo" name="tc"> At least one
                </p> 
            </div>
            <div>
               <label for="location-1">Location: </label>
               <select name="region" class="regions">
                    <option value="*" >All regions</option>
                    <?php
                     foreach ( $this->regions as $region ) {
                           $selected = ( $this->currentRequest['region'] == $region->getSlug() ) ? "selected" : "";
                    ?>
                    <option value="<?php echo $region->getSlug(); ?>" <?php echo $selected ?> > <?php echo $region->getName(); ?></option>
                     <?php                       
                       }
                     ?>
               </select>
             </div>
             <div>
                  <label for="location-1">Period: </label>
                  <select name="period" class="periods">
                     <option value="*" >All periods</option>

                     <?php
                        foreach( $this->periods as $period) {
                           
                                   $formattedDate = $period["month_year"]->format("F Y");
                                   $selected = ( $this->currentRequest['period'] == $formattedDate ) ? "selected" : "";
                     ?>
                     <option value="<?php echo $formattedDate?>" <?php echo $selected; ?>><?php echo $formattedDate ?></option>
                     <?php
                        }  
                     ?>
                     </select>
             </div>
             <div class="loader"></div>
             <div class="count-loader"></div>
             <div class="result"></div>
             <div class="submit-loader"></div>
             <div>
                 <input type="submit" class="bigbutton" value="Refine">
             </div>
            </form>
      </div>
 </div>
<!-- END: box -->
                
            
{'fraction_non_alphanumeric': 0.15156349712827058, 'fraction_numerical': 0.0019144862795149968, 'mean_word_length': 1.0841090425531914, 'pattern_counts': {'":': 0, '<': 146, '<?xml version=': 0, '>': 164, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3216705', 'n_tokens_mistral': 1551, 'n_tokens_neox': 1470, 'n_words': 336}