<commit_before><?php use_helper('I18N') ?>
<?php use_helper('jQuery') ?>

<?php if ($reviewsPager->getPage() == 1):?>
	<script type="text/javascript">
	  <!--
	  $(document).ready(function(){
		  $('#filterForm_f<?php echo $value ?>').change(function(){
			  var f = this.value;
			  var aUrl = '<?php echo url_for("sfReviewFront/filteredList?entityId=".$entity->getId()."&value=$value&sfReviewType=".$entity->getType() )?>' + (f!=''?("&filter="+f):'') ;
	
			  $('.reviews').tabs( "url" , <?php echo $value?$value==1?1:2:0?>, aUrl );
			  $('.reviews').tabs( "load" , <?php echo $value?$value==1?1:2:0?> );
			  FB.XFBML.Host.parseDomTree();
		  });
	  });
	  //-->
	</script>
		
	<form id="filterForm" method="get">
	  <p>
	    <label for="filterForm_f<?php echo $value ?>"><?php echo __("Filtrar Vootos:") ?></label>
	    <select id="filterForm_f<?php echo $value ?>" name="f">
	      <option value="" <?php echo (!isset($filter) || !$filter)?'selected="selected"':''?>><?php echo __("Todos los vootos") ?></option>
	      <option value="text" <?php echo (isset($filter) && $filter == "text")?'selected="selected"':''?>><?php echo __("Sólo vootos con texto") ?></option>
	    </select>
	  </p>
	</form>
<?php endif ?>

<?php if(!isset($lastReviewsPager) || $lastReviewsPager->getNbResults() > 0): ?>
	<?php if(isset($lastReviewsPager)): ?>
		<ol>
		  <?php foreach($lastReviewsPager->getResults() as $review): ?>
		    <?php include_partial('sfReviewFront/review', array('review' => $review, 'reviewable' =>  true, 'listValue' => str_replace  ('-', '_', $value ))) ?>
		  <?php endforeach ?>
		</ol>
	<?php endif ?>
	<?php if ($reviewsPager->getNbResults() > 0): ?>
	  <ol>
  	  <?php foreach($reviewsPager->getResults() as $review): ?>
  		  <?php include_partial('sfReviewFront/review', array('review' => $review, 'reviewable' =>  true, 'listValue' => str_replace  ('-', '_', $value ))) ?>
  		<?php endforeach ?>
	  </ol>
	<?php endif ?>
<?php else: ?>
	<p><?php echo __('Aún no hay ninguna opinión %1% sobre %2%', array('%1%' => ($value?($value==1?__('positiva'):__('negativa')):''), '%2%' => $entity))?></p>
<?php endif ?>

	
<div id="<?php echo "more_fr_${value}_".$reviewsPager->getPage()?>">
  <?php if ($reviewsPager->haveToPaginate() && $reviewsPager->getLastPage() > $reviewsPager->getPage()): ?>
      <?php echo jq_form_remote_tag(array(
    	'update'   => "more_fr_${value}_".$reviewsPager->getPage(),
    	'url'      => "sfReviewFront/filteredList",
      	'before'   => "re_loading( 'more_fr_". $value ."_". $reviewsPager->getPage() ."' )",
        'complete'	   => "FB.XFBML.Host.parseDomTree()"
		),
        array('id' => "frm_fr_${value}_"
      )) ?>
      <input type="hidden" id="entityId" name="entityId" value="<?php echo $entityId ?>" />
      <input type="hidden" id="value" name="value" value="<?php echo $value ?>" />
      <input type="hidden" id="value" name="sfReviewType" value="<?php echo $sfReviewType ?>" />
      <input type="hidden" id="page" name="page" value="<?php echo $reviewsPager->getPage()+1 ?>" />      
	  <center><input type="submit" value="<?php echo __('más') ?>" /></center>
	</form>
  <?php endif ?>
</div><commit_msg>Incluir valor de f en _reviewList<commit_after><?php use_helper('I18N') ?>
<?php use_helper('jQuery') ?>

<?php if ($reviewsPager->getPage() == 1):?>
	<script type="text/javascript">
	  <!--
	  $(document).ready(function(){
		  $('#filterForm_f<?php echo $value ?>').change(function(){
			  var f = this.value;
			  var aUrl = '<?php echo url_for("sfReviewFront/filteredList?entityId=".$entity->getId()."&value=$value&sfReviewType=".$entity->getType() )?>' + (f!=''?("&filter="+f):'') ;
	
			  $('.reviews').tabs( "url" , <?php echo $value?$value==1?1:2:0?>, aUrl );
			  $('.reviews').tabs( "load" , <?php echo $value?$value==1?1:2:0?> );
			  FB.XFBML.Host.parseDomTree();
		  });
	  });
	  //-->
	</script>
		
	<form id="filterForm" method="get">
	  <p>
	    <label for="filterForm_f<?php echo $value ?>"><?php echo __("Filtrar Vootos:") ?></label>
	    <select id="filterForm_f<?php echo $value ?>" name="f">
	      <option value="" <?php echo (!isset($filter) || !$filter)?'selected="selected"':''?>><?php echo __("Todos los vootos") ?></option>
	      <option value="text" <?php echo (isset($filter) && $filter == "text")?'selected="selected"':''?>><?php echo __("Sólo vootos con texto") ?></option>
	    </select>
	  </p>
	</form>
<?php endif ?>

<?php if(!isset($lastReviewsPager) || $lastReviewsPager->getNbResults() > 0): ?>
	<?php if(isset($lastReviewsPager)): ?>
		<ol>
		  <?php foreach($lastReviewsPager->getResults() as $review): ?>
		    <?php include_partial('sfReviewFront/review', array('review' => $review, 'reviewable' =>  true, 'listValue' => str_replace  ('-', '_', $value ))) ?>
		  <?php endforeach ?>
		</ol>
	<?php endif ?>
	<?php if ($reviewsPager->getNbResults() > 0): ?>
	  <ol>
  	  <?php foreach($reviewsPager->getResults() as $review): ?>
  		  <?php include_partial('sfReviewFront/review', array('review' => $review, 'reviewable' =>  true, 'listValue' => str_replace  ('-', '_', $value ))) ?>
  		<?php endforeach ?>
	  </ol>
	<?php endif ?>
<?php else: ?>
	<p><?php echo __('Aún no hay ninguna opinión %1% sobre %2%', array('%1%' => ($value?($value==1?__('positiva'):__('negativa')):''), '%2%' => $entity))?></p>
<?php endif ?>

	
<div id="<?php echo "more_fr_${value}_".$reviewsPager->getPage()?>">
  <?php if ($reviewsPager->haveToPaginate() && $reviewsPager->getLastPage() > $reviewsPager->getPage()): ?>
      <?php echo jq_form_remote_tag(array(
    	'update'   => "more_fr_${value}_".$reviewsPager->getPage(),
    	'url'      => "sfReviewFront/filteredList",
      	'before'   => "re_loading( 'more_fr_". $value ."_". $reviewsPager->getPage() ."' )",
        'complete'	   => "FB.XFBML.Host.parseDomTree()"
		),
        array('id' => "frm_fr_${value}_"
      )) ?>
      <input type="hidden" id="entityId" name="entityId" value="<?php echo $entityId ?>" />
      <input type="hidden" id="value" name="value" value="<?php echo $value ?>" />
      <input type="hidden" id="value" name="sfReviewType" value="<?php echo $sfReviewType ?>" />
      <input type="hidden" id="page" name="page" value="<?php echo $reviewsPager->getPage()+1 ?>" />      
      <input type="hidden" id="f" name="f" value="<?php echo $f ?>" />      
	  <center><input type="submit" value="<?php echo __('más') ?>" /></center>
	</form>
  <?php endif ?>
</div>
{'fraction_non_alphanumeric': 0.2536085674375291, 'fraction_numerical': 0.005897873661337886, 'mean_word_length': 4.308072487644152, 'pattern_counts': {'":': 0, '<': 143, '<?xml version=': 0, '>': 203, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3022786', 'n_tokens_mistral': 2424, 'n_tokens_neox': 2332, 'n_words': 437}