<commit_before><?php
    if($_SESSION['role'] != 'admin')
    {
        redirect('events');
    }
?>
<table class="striped">
    <thead>
        <tr>
            <th>City</th>
            <th>Events in the last 4 years</th>
        </tr>
    </thead>
    <tbody>
<?php
    $tmp = "";
    foreach ($list->result() as $row)
    {
        $id = $row->id;
        $city = $row->city;
        $e_name = $row->event_name;

        if($row->id == $tmp)
        {
            echo "<br>".$e_name." (".$row->event_startdate." - ".$row->event_enddate.")";
        }
        else
        {
            echo "</td></tr><tr><td>";
            echo $city;
            echo "</td><td>".$e_name." (".$row->event_startdate." - ".$row->event_enddate.")";
            $tmp = $row->id;
        }

    }
<<<<<<< HEAD
 ?></tbody>
=======
 ?>
 
 <div class="fixed-action-btn" style="bottom: 45px; right: 24px;">
  <a class="btn-floating btn-large waves-effect waves-light red" href="lcs_form"><i class="material-icons">add</i></a>
 </div>
>>>>>>> origin/master
</table>
<commit_msg>Undo Commit merge<commit_after><?php
    if($_SESSION['role'] != 'admin')
    {
        redirect('events');
    }
?>
<table class="striped">
    <thead>
        <tr>
            <th>City</th>
            <th>Events in the last 4 years</th>
        </tr>
    </thead>
    <tbody>
<?php
    $tmp = "";
    foreach ($list->result() as $row)
    {
        $id = $row->id;
        $city = $row->city;
        $e_name = $row->event_name;

        if($row->id == $tmp)
        {
            echo "<br>".$e_name." (".$row->event_startdate." - ".$row->event_enddate.")";
        }
        else
        {
            echo "</td></tr><tr><td>";
            echo $city;
            echo "</td><td>".$e_name." (".$row->event_startdate." - ".$row->event_enddate.")";
            $tmp = $row->id;
        }

    }
 ?></tbody>
</table> 
 <div class="fixed-action-btn" style="bottom: 45px; right: 24px;">
  <a class="btn-floating btn-large waves-effect waves-light red" href="lcs_form"><i class="material-icons">add</i></a>
 </div>

{'fraction_non_alphanumeric': 0.22950819672131148, 'fraction_numerical': 0.0048216007714561235, 'mean_word_length': 1.8819444444444444, 'pattern_counts': {'":': 0, '<': 64, '<?xml version=': 0, '>': 85, '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': '2965144', 'n_tokens_mistral': 745, 'n_tokens_neox': 725, 'n_words': 132}