<commit_before><!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="Mazi Portal">
  <meta name="author" content="nitlab">

  <title><%= local_data[:config_data][:title] %></title>
  <link href="css/bootstrap.css" rel="stylesheet" type="text/css">
  <link href="css/jquery-ui.min.css" rel="stylesheet">
  <link href="css/index_main.css" rel="stylesheet" type="text/css">
  <link href="css/plugins/morris.css" rel="stylesheet" type="text/css">
  <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
  <script src="js/jquery.js"></script>
  <script src="js/jquery-ui.min.js"></script>
  <script src="js/bootstrap.min.js"></script>
  <script src="js/index_main.js"></script>
  <% js.each do |j| %>
  <script src="<%= j %>"></script>
  <% end %>
  <style type="text/css">
    @media(min-width:768px) {
      .side-nav {
        position: fixed;
        top: 51px;
        left: 225px;
        width: 225px;
        margin-left: -225px;
        border: none;
        border-radius: 0;
        overflow-y: auto;
        background-color: #<%= local_data[:config_data][:side_panel_color]%>;
        bottom: 0;
        overflow-x: hidden;
        padding-bottom: 40px;
      }

      .side-nav>li>a {
        width: 225px;
      }

      .side-nav li a:hover,
      .side-nav li a:focus {
        outline: none;
        background-color: #000 !important;
      }
    }

    .side-nav{
      background-color: #<%= local_data[:config_data][:side_panel_color]%> !important;
    }

    .navbar-inverse .navbar-nav > .active > a, 
    .navbar-inverse .navbar-nav > .active > a:hover, 
      .navbar-inverse .navbar-nav > .active > a:focus {
      background-color: #<%= local_data[:config_data][:side_panel_active_color]%> !important;
    }

    .side-nav li a:hover,
    .side-nav li a:focus {
      background-color: #<%= local_data[:config_data][:side_panel_active_color]%> !important;
    }

    .top-nav>li>a:hover,
    .top-nav>li>a:focus,
    .top-nav>.open>a,
    .top-nav>.open>a:hover,
    .top-nav>.open>a:focus {
      background-color: #<%= local_data[:config_data][:top_panel_active_color]%> !important;
    }

    .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form {
      background-color: #<%= local_data[:config_data][:top_panel_color]%> !important;
    }
  </style>
</head>

<body>

  <div id="wrapper">
    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="index"><%= local_data[:config_data][:title] %></a>
      </div>
      <% unless local_data[:notifications].nil? || local_data[:notifications].empty? %>
      <ul class="nav navbar-right top-nav">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-bell"></i> <b class="caret"></b></a>
          <ul class="dropdown-menu alert-dropdown">
            <% local_data[:notifications].each do |notification|%>
            <li>
              <a href="#" class="show-notification-button" id="show-notification-button-<%= notification.id %>" data-toggle="modal" data-target="#show-notification-modal-<%= notification.id %>">
                <%= local_data[:notifications_read].include?(notification.id) ? '<span class="label label-default">Read</span>' : '<span class="label label-success">New</span>'%> <%= notification.title %> 
              </a>
            </li>
            <% end %>
          </ul>
        </li>
      </ul>
      <% end %>
      <div class="collapse navbar-collapse navbar-ex1-collapse">
        <ul class="nav navbar-nav side-nav">
          <li class="active">
            <a href="index"><i class="fa fa-fw fa-dashboard"></i> Aplications</a>
          </li>
          <li>
            <a href="index"><i class="fa fa-fw fa-dashboard"></i> Statistics</a>
          </li>
        </ul>
      </div>
    </nav>

    <div id="page-wrapper">
      <div class="container-fluid">

        <% local_data[:error_msg] = error_msg %>
        <%= erb main_body, locals: local_data %>

      </div>
    </div>


    <% local_data[:notifications].each do |notification|%>

    <div class="modal fade" id="show-notification-modal-<%= notification.id %>" role="dialog">
      <div class="modal-dialog">
        <!-- Modal content-->
        <div class="modal-content">
          <div class="modal-header notification-modal-header">
            <button type="button" class="close" data-dismiss="modal">&times;</button>
            <h4 class="modal-title"><%= notification.title %></h4>
          </div>
          <div class="modal-body">
            <p>
              <%= notification.body %>
            </p>
          </div>
          <div class="modal-footer notification-modal-footer">
            <button type="button" class="btn btn-default notification-close" data-dismiss="modal" id="notification-close-<%= notification.id %>">Close</button>
          </div>
        </div>
      </div>
    </div>
    <% end %>
  </div>
</body>
</html>
<commit_msg>notifications enabled taken into consideration<commit_after><!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="Mazi Portal">
  <meta name="author" content="nitlab">

  <title><%= local_data[:config_data][:title] %></title>
  <link href="css/bootstrap.css" rel="stylesheet" type="text/css">
  <link href="css/jquery-ui.min.css" rel="stylesheet">
  <link href="css/index_main.css" rel="stylesheet" type="text/css">
  <link href="css/plugins/morris.css" rel="stylesheet" type="text/css">
  <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
  <script src="js/jquery.js"></script>
  <script src="js/jquery-ui.min.js"></script>
  <script src="js/bootstrap.min.js"></script>
  <script src="js/index_main.js"></script>
  <% js.each do |j| %>
  <script src="<%= j %>"></script>
  <% end %>
  <style type="text/css">
    @media(min-width:768px) {
      .side-nav {
        position: fixed;
        top: 51px;
        left: 225px;
        width: 225px;
        margin-left: -225px;
        border: none;
        border-radius: 0;
        overflow-y: auto;
        background-color: #<%= local_data[:config_data][:side_panel_color]%>;
        bottom: 0;
        overflow-x: hidden;
        padding-bottom: 40px;
      }

      .side-nav>li>a {
        width: 225px;
      }

      .side-nav li a:hover,
      .side-nav li a:focus {
        outline: none;
        background-color: #000 !important;
      }
    }

    .side-nav{
      background-color: #<%= local_data[:config_data][:side_panel_color]%> !important;
    }

    .navbar-inverse .navbar-nav > .active > a, 
    .navbar-inverse .navbar-nav > .active > a:hover, 
      .navbar-inverse .navbar-nav > .active > a:focus {
      background-color: #<%= local_data[:config_data][:side_panel_active_color]%> !important;
    }

    .side-nav li a:hover,
    .side-nav li a:focus {
      background-color: #<%= local_data[:config_data][:side_panel_active_color]%> !important;
    }

    .top-nav>li>a:hover,
    .top-nav>li>a:focus,
    .top-nav>.open>a,
    .top-nav>.open>a:hover,
    .top-nav>.open>a:focus {
      background-color: #<%= local_data[:config_data][:top_panel_active_color]%> !important;
    }

    .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form {
      background-color: #<%= local_data[:config_data][:top_panel_color]%> !important;
    }
  </style>
</head>

<body>

  <div id="wrapper">
    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="index"><%= local_data[:config_data][:title] %></a>
      </div>
      <%
        flag = false
        local_data[:notifications].each do |notification|
          if notification.enabled
            flag = true
            break
          end
        end unless local_data[:notifications].nil? || local_data[:notifications].empty?
      %>
      <% if flag %>
      <ul class="nav navbar-right top-nav">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-bell"></i> <b class="caret"></b></a>
          <ul class="dropdown-menu alert-dropdown">
            <% local_data[:notifications].each do |notification|%>
            <% next unless notification.enabled %>
            <li>
              <a href="#" class="show-notification-button" id="show-notification-button-<%= notification.id %>" data-toggle="modal" data-target="#show-notification-modal-<%= notification.id %>">
                <%= local_data[:notifications_read].include?(notification.id) ? '<span class="label label-default">Read</span>' : '<span class="label label-success">New</span>'%> <%= notification.title %> 
              </a>
            </li>
            <% end %>
          </ul>
        </li>
      </ul>
      <% end %>
      <div class="collapse navbar-collapse navbar-ex1-collapse">
        <ul class="nav navbar-nav side-nav">
          <li class="active">
            <a href="index"><i class="fa fa-fw fa-dashboard"></i> Aplications</a>
          </li>
          <li>
            <a href="index"><i class="fa fa-fw fa-dashboard"></i> Statistics</a>
          </li>
        </ul>
      </div>
    </nav>

    <div id="page-wrapper">
      <div class="container-fluid">

        <% local_data[:error_msg] = error_msg %>
        <%= erb main_body, locals: local_data %>

      </div>
    </div>


    <% local_data[:notifications].each do |notification|%>

    <div class="modal fade" id="show-notification-modal-<%= notification.id %>" role="dialog">
      <div class="modal-dialog">
        <!-- Modal content-->
        <div class="modal-content">
          <div class="modal-header notification-modal-header">
            <button type="button" class="close" data-dismiss="modal">&times;</button>
            <h4 class="modal-title"><%= notification.title %></h4>
          </div>
          <div class="modal-body">
            <p>
              <%= notification.body %>
            </p>
          </div>
          <div class="modal-footer notification-modal-footer">
            <button type="button" class="btn btn-default notification-close" data-dismiss="modal" id="notification-close-<%= notification.id %>">Close</button>
          </div>
        </div>
      </div>
    </div>
    <% end %>
  </div>
</body>
</html>

{'fraction_non_alphanumeric': 0.1866100645617759, 'fraction_numerical': 0.005306447333510215, 'mean_word_length': 2.6093201404404724, 'pattern_counts': {'":': 0, '<': 279, '<?xml version=': 0, '>': 315, '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': '3266496', 'n_tokens_mistral': 3816, 'n_tokens_neox': 3602, 'n_words': 655}