<commit_before><!--
  ~ Copyright © 2013 VillageReach.  All Rights Reserved.  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  ~
  ~ If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
  -->

<div class="navigation" ng-controller="NavigationController" ui-nav>
    <ul class="clearfix" style="display:none">
        <li><a href="/">Home</a></li>

        <li ng-show="hasPermission('CREATE_REQUISITION') || hasPermission('AUTHORIZE_REQUISITION') || hasPermission('APPROVE_REQUISITION') ||
       hasPermission('CONVERT_TO_ORDER') || hasPermission('VIEW_REQUISITION')  ">
            <a href="javascript: void(0)">Requisitions</a>
            <div class="submenu">
              <ul>
                <li ng-show="hasPermission('CREATE_REQUISITION') || hasPermission('AUTHORIZE_REQUISITION')">
                  <a href="/public/pages/logistics/rnr/index.html#/">Create / Authorize</a>
                </li>
                <li ng-show="hasPermission('APPROVE_REQUISITION')">
                  <a href="/public/pages/logistics/rnr/index.html#/rnr-for-approval">Approve</a>
                </li>
                <li ng-show="hasPermission('CONVERT_TO_ORDER')">
                  <a href="/public/pages/logistics/rnr/index.html#/requisitions-for-convert-to-order">Convert to Order</a>
                </li>
                <li ng-show="hasPermission('VIEW_REQUISITION')">
                  <a href="/public/pages/logistics/rnr/index.html#/view-requisitions">View</a>
                </li>
                <li class="beak"></li>
              </ul>
            </div>

        </li>

        <li ng-show="hasPermission('VIEW_ORDER')">
            <a href="javascript: void(0)">Orders</a>

            <div class="submenu">
                <ul>
                    <li ng-show="hasPermission('VIEW_ORDER')">
                        <a href="/public/pages/logistics/order/index.html#/">View Orders</a>
                    </li>
                    <li class="beak"></li>
                </ul>
            </div>

        </li>

        <li>
            <a href="javascript: void(0)">Administration</a>
            <div class="submenu">
              <ul>
                  <li ng-show="hasPermission('UPLOADS')">
                      <a href="/public/pages/admin/upload/index.html">Upload</a>
                  </li>

                  <li class="has-children">
                      <a href="javascript: void(0);">Configure</a>
                      <div class="submenu">
                        <ul>
                            <li ng-show="hasPermission('CONFIGURE_RNR')">
                                <a href="/public/pages/admin/rnr-template/create.html">R &amp; R Template</a>
                            </li>
                            <li class="beak"></li>
                        </ul>
                      </div>
                  </li>

                  <li class="has-children">
                      <a href="/public/pages/admin/facility/index.html#/search">Manage</a>
                      <div class="submenu">
                        <ul>
                            <li ng-show="hasPermission('MANAGE_FACILITY')">
                                <a href="/public/pages/admin/facility/index.html#/search">Facilities</a>
                            </li>
                            <li ng-show="hasPermission('MANAGE_ROLE')">
                                <a href="/public/pages/admin/role/index.html">Roles</a>
                            </li>
                            <li ng-show="hasPermission('MANAGE_SCHEDULE')">
                                <a href="/public/pages/admin/schedule/index.html">Schedules</a>
                            </li>
                            <li ng-show="hasPermission('MANAGE_USERS')">
                                <a href="/public/pages/admin/user/index.html#/search">Users</a>
                            </li>
                            <li class="beak"></li>
                        </ul>
                      </div>
                  </li>
                  <li class="beak"></li>
              </ul>
          </div>

        </li>
        <li>
            <a href="javascript: void(0);">Reports</a>
            <div class="submenu">
                <ul>
                    <li ng-show="hasPermission('VIEW_FACILITY_REPORT')">
                        <a href="/public/pages/reports/facilitylist/index.html">Facility List (V1)</a>
                    </li>
                    <li ng-show="hasPermission('VIEW_MAILING_LABEL_REPORT')">
                        <a href="/public/pages/reports/mailinglabels/index.html">Facility List (V2)</a>
                    </li>
                    <li ng-show="hasPermission('VIEW_SUMMARY_REPORT')">
                        <a href="/public/pages/reports/summary/index.html">Summary Report</a>
                    </li>
                   <li ng-show="hasPermission('VIEW_CONSUMPTION_REPORT')">
                        <a href="/public/pages/reports/consumption/index.html">Consumption Report</a>
                    </li>
                    <li ng-show="hasPermission('VIEW_AVERAGE_CONSUMPTION_REPORT')">
                        <a href="/public/pages/reports/averageconsumption/index.html">Consumption Average By Report</a>
                    </li>
                    <li ng-show="hasPermission('VIEW_REPORTING_RATE_REPORT')">
                        <a href="/public/pages/reports/reportingrate/index.html">Reporting Rate</a>
                    </li>
                    <li ng-show="hasPermission('VIEW_NON_REPORTING_FACILITIES')">
                        <a href="/public/pages/reports/non_reporting/index.html">Non Reporting Facilities</a>
                    </li>
                    <li ng-show="hasPermission('VIEW_ADJUSTMENT_SUMMARY_REPORT')">
                        <a href="/public/pages/reports/adjustmentsummary/index.html">Adjustment Summary By Product</a>
                    </li>
                </ul>
            </div>
        </li>
    </ul>
</div><commit_msg>Refactor the reports navigation to display the reports in different categories<commit_after><!--
  ~ Copyright © 2013 VillageReach.  All Rights Reserved.  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  ~
  ~ If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
  -->

<div class="navigation" ng-controller="NavigationController" ui-nav>
    <ul class="clearfix" style="display:none">
        <li><a href="/">Home</a></li>

        <li ng-show="hasPermission('CREATE_REQUISITION') || hasPermission('AUTHORIZE_REQUISITION') || hasPermission('APPROVE_REQUISITION') ||
       hasPermission('CONVERT_TO_ORDER') || hasPermission('VIEW_REQUISITION')  ">
            <a href="javascript: void(0)">Requisitions</a>
            <div class="submenu">
              <ul>
                <li ng-show="hasPermission('CREATE_REQUISITION') || hasPermission('AUTHORIZE_REQUISITION')">
                  <a href="/public/pages/logistics/rnr/index.html#/">Create / Authorize</a>
                </li>
                <li ng-show="hasPermission('APPROVE_REQUISITION')">
                  <a href="/public/pages/logistics/rnr/index.html#/rnr-for-approval">Approve</a>
                </li>
                <li ng-show="hasPermission('CONVERT_TO_ORDER')">
                  <a href="/public/pages/logistics/rnr/index.html#/requisitions-for-convert-to-order">Convert to Order</a>
                </li>
                <li ng-show="hasPermission('VIEW_REQUISITION')">
                  <a href="/public/pages/logistics/rnr/index.html#/view-requisitions">View</a>
                </li>
                <li class="beak"></li>
              </ul>
            </div>

        </li>

        <li ng-show="hasPermission('VIEW_ORDER')">
            <a href="javascript: void(0)">Orders</a>

            <div class="submenu">
                <ul>
                    <li ng-show="hasPermission('VIEW_ORDER')">
                        <a href="/public/pages/logistics/order/index.html#/">View Orders</a>
                    </li>
                    <li class="beak"></li>
                </ul>
            </div>

        </li>

        <li>
            <a href="javascript: void(0)">Administration</a>
            <div class="submenu">
              <ul>
                  <li ng-show="hasPermission('UPLOADS')">
                      <a href="/public/pages/admin/upload/index.html">Upload</a>
                  </li>

                  <li class="has-children">
                      <a href="javascript: void(0);">Configure</a>
                      <div class="submenu">
                        <ul>
                            <li ng-show="hasPermission('CONFIGURE_RNR')">
                                <a href="/public/pages/admin/rnr-template/create.html">R &amp; R Template</a>
                            </li>
                            <li class="beak"></li>
                        </ul>
                      </div>
                  </li>

                  <li class="has-children">
                      <a href="/public/pages/admin/facility/index.html#/search">Manage</a>
                      <div class="submenu">
                        <ul>
                            <li ng-show="hasPermission('MANAGE_FACILITY')">
                                <a href="/public/pages/admin/facility/index.html#/search">Facilities</a>
                            </li>
                            <li ng-show="hasPermission('MANAGE_ROLE')">
                                <a href="/public/pages/admin/role/index.html">Roles</a>
                            </li>
                            <li ng-show="hasPermission('MANAGE_SCHEDULE')">
                                <a href="/public/pages/admin/schedule/index.html">Schedules</a>
                            </li>
                            <li ng-show="hasPermission('MANAGE_USERS')">
                                <a href="/public/pages/admin/user/index.html#/search">Users</a>
                            </li>
                            <li class="beak"></li>
                        </ul>
                      </div>
                  </li>
                  <li class="beak"></li>
              </ul>
          </div>

        </li>
        <li>
            <a href="javascript: void(0);">Generic Reports</a>
            <div class="submenu">
                <ul>
                    <li ng-show="hasPermission('VIEW_FACILITY_REPORT')">
                        <a href="/public/pages/reports/facilitylist/index.html">Facility List (V1)</a>
                    </li>
                    <li ng-show="hasPermission('VIEW_MAILING_LABEL_REPORT')">
                        <a href="/public/pages/reports/mailinglabels/index.html">Facility List (V2)</a>
                    </li>
                    <li ng-show="hasPermission('VIEW_SUMMARY_REPORT')">
                        <a href="/public/pages/reports/summary/index.html">Summary Report</a>
                    </li>
                   <li ng-show="hasPermission('VIEW_CONSUMPTION_REPORT')">
                        <a href="/public/pages/reports/consumption/index.html">Consumption Report</a>
                    </li>

                </ul>
            </div>
        </li>
        <li>
            <a href="javascript: void(0);">Product Reports</a>
            <div class="submenu">
                <ul>
                    <li ng-show="hasPermission('VIEW_AVERAGE_CONSUMPTION_REPORT')">
                        <a href="/public/pages/reports/averageconsumption/index.html">Consumption Average by Product</a>
                    </li>
                    <li ng-show="hasPermission('VIEW_ADJUSTMENT_SUMMARY_REPORT')">
                        <a href="/public/pages/reports/adjustmentsummary/index.html">Adjustment Summary</a>
                    </li>
                    <li ng-show="hasPermission('VIEW_STOCKED_OUT_REPORT')">
                        <a href="/public/pages/reports/stocked_out/index.html">Stocked Out</a>
                    </li>
                </ul>
            </div>
        </li>
        <li>
            <a href="javascript: void(0);">Performance Reports</a>
            <div class="submenu">
                <ul>
                    <li ng-show="hasPermission('VIEW_NON_REPORTING_FACILITIES')">
                        <a href="/public/pages/reports/non_reporting/index.html">Non Reporting Facilities</a>
                    </li>
                    <li ng-show="hasPermission('VIEW_REPORTING_RATE_REPORT')">
                        <a href="/public/pages/reports/reportingrate/index.html">Reporting Rate</a>
                    </li>
                </ul>
            </div>
        </li>
    </ul>
</div>
{'fraction_non_alphanumeric': 0.14508702099430265, 'fraction_numerical': 0.002497463513618981, 'mean_word_length': 1.3677014042867701, 'pattern_counts': {'":': 0, '<': 309, '<?xml version=': 0, '>': 309, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5936068', 'n_tokens_mistral': 3681, 'n_tokens_neox': 3461, 'n_words': 532}