<commit_before>     
		<li class="category cat-<?php echo strtolower($cat); ?>">
        	<a class="categorytab <?php echo strtolower($cat); ?>"><?php echo $cat; ?></a>
        	 <ul>
            	<?php foreach($locations as $loc) : ?>
                
                    <div class="item item-title">
                        <strong class="item-name link<?php echo strtolower($cat); ?>"><a href="locdescription.php?id=<?php echo $loc['id']; ?>"><?php echo $loc['name']; ?></a></strong>
						<img class="<?php echo $loc['name']; ?>" src="images/bigtogglebutton.png" />
						
						<!--if time is 0 then dont display time bar -->
						<?php if(!($loc['time_start'] == 0) ||!( $loc['time_end'] == 0))  { ?>
							 <div class="time-bar-wrapper location-time-bar">
								<div class="time-bar" style="left:<?php echo (($loc['time_start'] - $min_start_time) / $time_diff) * 100; ?>%;right:<?php echo (($max_end_time - $loc['time_end']) / $time_diff) * 100; ?>%;">
									<p class="time-bar-times"><span class="time-bar-start"><?php echo $loc['time_start']; ?></span> <span class="time-bar-end"><?php echo $loc['time_end']; ?></span></p>
								</div>
							 </div>
						<?php } ?><!--close if condition time = 0 -->
                    
	                    <?php
									if($loc['paid'] == 0) {
										$ispaid = 'free';
									}
									else {
										$ispaid = '$';
									}
						?>
								<span class= "pay"><?php echo $ispaid; ?></span>
                    
                    
                    
                    <!--adding rating for each location-->
                    <?php
								if ($loc['rate_count'] > 0) {
									$rating = round($loc['rate_total'] / $loc['rate_count']);
								} else {
									$rating = 0;
								}
								
								
					?>
			                    <ul class="rater rater-usable">
								<?php for ($i = 1; $i <= 5; $i++) : 
								$class = ($i <= $rating) ? 'is-rated' : '';
								?>
							
                                <li class="rater-level <?php echo $class; ?>"><a href="rate-location.php?id=<?php echo $loc['id']; ?>&rate=<?php echo $i; ?>">★</a></li>
                                
								<?php endfor; ?>
								</ul>
                     </div>
                    
                    
                    <!---------------------------------------->
                    
                    <ul class="events">
                    	<?php
							$event_sql->bindValue(':location_id', $loc['id'], PDO::PARAM_INT);
							$event_sql->execute();
							$events = $event_sql->fetchAll();
							
							foreach($events as $ev) :
						?>
							<?php  //here put the category equal to galleries
								if ($ev['rate_count'] > 0) {
									$rating = round($ev['rate_total'] / $ev['rate_count']);
								} else {
									$rating = 0;
								}<commit_msg>Added toggle id to img.<commit_after>     
		<li class="category cat-<?php echo strtolower($cat); ?>">
        	<a class="categorytab <?php echo strtolower($cat); ?>"><?php echo $cat; ?></a>
        	 <ul>
            	<?php foreach($locations as $loc) : ?>
                
                    <div class="item item-title">
                        <strong class="item-name link<?php echo strtolower($cat); ?>"><a href="locdescription.php?id=<?php echo $loc['id']; ?>"><?php echo $loc['name']; ?></a></strong>
						<img id="toggle" class="<?php echo $loc['name']; ?>" src="images/bigtogglebutton.png" />
						
						<!--if time is 0 then dont display time bar -->
						<?php if(!($loc['time_start'] == 0) ||!( $loc['time_end'] == 0))  { ?>
							 <div class="time-bar-wrapper location-time-bar">
								<div class="time-bar" style="left:<?php echo (($loc['time_start'] - $min_start_time) / $time_diff) * 100; ?>%;right:<?php echo (($max_end_time - $loc['time_end']) / $time_diff) * 100; ?>%;">
									<p class="time-bar-times"><span class="time-bar-start"><?php echo $loc['time_start']; ?></span> <span class="time-bar-end"><?php echo $loc['time_end']; ?></span></p>
								</div>
							 </div>
						<?php } ?><!--close if condition time = 0 -->
                    
	                    <?php
									if($loc['paid'] == 0) {
										$ispaid = 'free';
									}
									else {
										$ispaid = '$';
									}
						?>
								<span class= "pay"><?php echo $ispaid; ?></span>
                    
                    
                    
                    <!--adding rating for each location-->
                    <?php
								if ($loc['rate_count'] > 0) {
									$rating = round($loc['rate_total'] / $loc['rate_count']);
								} else {
									$rating = 0;
								}
								
								
					?>
			                    <ul class="rater rater-usable">
								<?php for ($i = 1; $i <= 5; $i++) : 
								$class = ($i <= $rating) ? 'is-rated' : '';
								?>
							
                                <li class="rater-level <?php echo $class; ?>"><a href="rate-location.php?id=<?php echo $loc['id']; ?>&rate=<?php echo $i; ?>">★</a></li>
                                
								<?php endfor; ?>
								</ul>
                     </div>
                    
                    
                    <!---------------------------------------->
                    
                    <ul class="events events-<?php echo $loc['name']; ?>"</ul><!--this code doesnt work-->
                    	<?php
							$event_sql->bindValue(':location_id', $loc['id'], PDO::PARAM_INT);
							$event_sql->execute();
							$events = $event_sql->fetchAll();
							
							foreach($events as $ev) :
						?>
							<?php  //here put the category equal to galleries
								if ($ev['rate_count'] > 0) {
									$rating = round($ev['rate_total'] / $ev['rate_count']);
								} else {
									$rating = 0;
								}
{'fraction_non_alphanumeric': 0.21107446623850026, 'fraction_numerical': 0.005901753167852804, 'mean_word_length': 1.4519148936170212, 'pattern_counts': {'":': 0, '<': 126, '<?xml version=': 0, '>': 129, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3305380', 'n_tokens_mistral': 2342, 'n_tokens_neox': 1667, 'n_words': 370}