<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/.
 */


var loadNext = ['jQueryUi', 'angularResource', 'angularUi', 'uiBootstrap', 'bootstrap', 'localStorage', 'services','reports' ,''];
var loadFirst = ['jQuery', 'underscore', 'angular'];

requirejs.config({
  baseUrl: '/public/js/shared',
  paths: {
    jQuery: '../../lib/jquery/jquery-1.8.2.min',
    jQueryUi: '../../lib/jquery/jquery-ui-1.9.2.custom.min',
    underscore: '../../lib/underscore/underscore-min',
    angular: '../../lib/angular/angular',
    angularResource: '../../lib/angular/angular-resource',
    bootstrap: '../../lib/bootstrap/js/bootstrap.min',
    angularUi: '../../lib/angular-ui/angular-ui.min',
    uiBootstrap: '../../lib/angular-ui/bootstrap/ui-bootstrap-0.1.0.min',
    localStorage: '../../lib/localstorage/localStorage',
    services: 'services/services',
    reports: 'services/reports',
    messageService: 'services/message-service',
    navigateBackService: 'services/navigate-back-service',
    authorizationService: 'services/authorization-service',
    headerController: 'controller/header-controller',
    loginController: 'controller/login-controller',
    navigationController: 'controller/navigation-controller',
    directives: 'directives',
    commentBox: 'directives/comment-box',
    formToolbar: 'directives/form-toolbar',
    openlmisMessage: 'directives/openlmis-message',
    openlmisPagination: 'directives/openlmis-pagination',
    modalEvents: 'directives/modal-events',
    placeholder: 'directives/placeholder',
    tabScroll: 'directives/tab-scroll',
    fixedTableHeader: 'directives/fixed-table-header',
    uiNav: 'directives/ui-nav',
    ngGrid: '../../lib/angular-ui/ng-grid/ng-grid-2.0.5.min',
    ngGridFlexibleHeight: '../../lib/angular-ui/ng-grid/ng-grid-flexible-height',
    jQueryForm: '../../lib/jquery/jquery.form',
    select2: '../../lib/select2/select2',
    select2Ext: 'select2-ext'
  },
  shim: {
    'angular': {deps: ['jQuery']},
    'messageService': {deps: loadNext},
    'authorizationService': {deps: loadNext},
    'navigateBackService': {deps: loadNext},
    'loginController': {deps: loadNext},
    'headerController': {deps: loadNext},
    'navigationController': {deps: loadNext},
    'localStorageKeys': {deps: loadNext},
    'util': {deps: loadNext},
    'open-lmis-dialog': {deps: loadNext},
    'jQueryUi': {deps: loadFirst},
    'angularResource': {deps: loadFirst},
    'angularUi': {deps: loadFirst},
    'uiBootstrap': {deps: loadFirst},
    'bootstrap': { deps: loadFirst},
    'localStorage': {deps: loadFirst},
    'services': {deps: loadFirst},
    'reports': {deps:['services']},
    'ngGrid': {deps: ['angularResource']},
    'ngGridFlexibleHeight' : {deps: ['ngGrid']},
    'directives': {deps: ['messageService'] },
    'commentBox': {deps: ['directives']},
    'formToolbar': {deps: ['directives']},
    'openlmisMessage': { deps: ['directives']},
    'openlmisPagination': { deps: ['directives']},
    'modalEvents': { deps: ['directives']},
    'placeholder': { deps: ['directives']},
    'tabScroll': {deps: ['directives']},
    'fixedTableHeader': {deps: ['directives']},
    'uiNav': {deps: ['directives']},
    'jQueryForm': {deps: ['jQuery']},
    'select2': {deps: ['angularResource']},
    'select2Ext': {deps: ['select2', 'angularResource']}
  }
});

define(["messageService", "authorizationService", "navigateBackService", "loginController", "headerController", "navigationController", "localStorageKeys", "util", "open-lmis-dialog",
  'commentBox', 'formToolbar', 'openlmisMessage', 'openlmisPagination', 'modalEvents', 'placeholder', 'tabScroll', 'fixedTableHeader', 'uiNav', 'ngGrid', 'jQueryForm', 'select2', 'select2Ext'], function () {

  var loadApp = function () {

    'use strict';

    /* App Module */
    var app = angular.module('openlmis', ['openlmis.services', 'openlmis.localStorage', 'ui.directives', 'openlmis.directives'], function ($routeProvider, $locationProvider, $httpProvider) {
      var interceptor = ['$rootScope', '$q', '$window', function (scope, $q, $window) {
        function success(response) {
          angular.element('#loader').hide();
          return response;
        }

        function error(response) {
          angular.element('#loader').hide();
          switch (response.status) {
            case 403:
              $window.location = "/public/pages/access-denied.html";
              break;
            case 401:
              scope.modalShown = true;
              break;
            default:
              break;
          }
          return $q.reject(response);
        }<commit_msg>Fixed ng-grid-flexibile-height plugin path<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/.
 */


var loadNext = ['jQueryUi', 'angularResource', 'angularUi', 'uiBootstrap', 'bootstrap', 'localStorage', 'services','reports' ,''];
var loadFirst = ['jQuery', 'underscore', 'angular'];

requirejs.config({
  baseUrl: '/public/js/shared',
  paths: {
    jQuery: '../../lib/jquery/jquery-1.8.2.min',
    jQueryUi: '../../lib/jquery/jquery-ui-1.9.2.custom.min',
    underscore: '../../lib/underscore/underscore-min',
    angular: '../../lib/angular/angular',
    angularResource: '../../lib/angular/angular-resource',
    bootstrap: '../../lib/bootstrap/js/bootstrap.min',
    angularUi: '../../lib/angular-ui/angular-ui.min',
    uiBootstrap: '../../lib/angular-ui/bootstrap/ui-bootstrap-0.1.0.min',
    localStorage: '../../lib/localstorage/localStorage',
    services: 'services/services',
    reports: 'services/reports',
    messageService: 'services/message-service',
    navigateBackService: 'services/navigate-back-service',
    authorizationService: 'services/authorization-service',
    headerController: 'controller/header-controller',
    loginController: 'controller/login-controller',
    navigationController: 'controller/navigation-controller',
    directives: 'directives',
    commentBox: 'directives/comment-box',
    formToolbar: 'directives/form-toolbar',
    openlmisMessage: 'directives/openlmis-message',
    openlmisPagination: 'directives/openlmis-pagination',
    modalEvents: 'directives/modal-events',
    placeholder: 'directives/placeholder',
    tabScroll: 'directives/tab-scroll',
    fixedTableHeader: 'directives/fixed-table-header',
    uiNav: 'directives/ui-nav',
    ngGrid: '../../lib/angular-ui/ng-grid/ng-grid-2.0.5.min',
    ngGridFlexibleHeight: '../../lib/angular-ui/ng-grid-flexible-height',
    jQueryForm: '../../lib/jquery/jquery.form',
    select2: '../../lib/select2/select2',
    select2Ext: 'select2-ext'
  },
  shim: {
    'angular': {deps: ['jQuery']},
    'messageService': {deps: loadNext},
    'authorizationService': {deps: loadNext},
    'navigateBackService': {deps: loadNext},
    'loginController': {deps: loadNext},
    'headerController': {deps: loadNext},
    'navigationController': {deps: loadNext},
    'localStorageKeys': {deps: loadNext},
    'util': {deps: loadNext},
    'open-lmis-dialog': {deps: loadNext},
    'jQueryUi': {deps: loadFirst},
    'angularResource': {deps: loadFirst},
    'angularUi': {deps: loadFirst},
    'uiBootstrap': {deps: loadFirst},
    'bootstrap': { deps: loadFirst},
    'localStorage': {deps: loadFirst},
    'services': {deps: loadFirst},
    'reports': {deps:['services']},
    'ngGrid': {deps: ['angularResource']},
    'ngGridFlexibleHeight' : {deps: ['ngGrid']},
    'directives': {deps: ['messageService'] },
    'commentBox': {deps: ['directives']},
    'formToolbar': {deps: ['directives']},
    'openlmisMessage': { deps: ['directives']},
    'openlmisPagination': { deps: ['directives']},
    'modalEvents': { deps: ['directives']},
    'placeholder': { deps: ['directives']},
    'tabScroll': {deps: ['directives']},
    'fixedTableHeader': {deps: ['directives']},
    'uiNav': {deps: ['directives']},
    'jQueryForm': {deps: ['jQuery']},
    'select2': {deps: ['angularResource']},
    'select2Ext': {deps: ['select2', 'angularResource']}
  }
});

define(["messageService", "authorizationService", "navigateBackService", "loginController", "headerController", "navigationController", "localStorageKeys", "util", "open-lmis-dialog",
  'commentBox', 'formToolbar', 'openlmisMessage', 'openlmisPagination', 'modalEvents', 'placeholder', 'tabScroll', 'fixedTableHeader', 'uiNav', 'ngGrid','ngGridFlexibleHeight', 'jQueryForm', 'select2', 'select2Ext'], function () {

  var loadApp = function () {

    'use strict';

    /* App Module */
    var app = angular.module('openlmis', ['openlmis.services', 'openlmis.localStorage', 'ui.directives', 'openlmis.directives'], function ($routeProvider, $locationProvider, $httpProvider) {
      var interceptor = ['$rootScope', '$q', '$window', function (scope, $q, $window) {
        function success(response) {
          angular.element('#loader').hide();
          return response;
        }

        function error(response) {
          angular.element('#loader').hide();
          switch (response.status) {
            case 403:
              $window.location = "/public/pages/access-denied.html";
              break;
            case 401:
              scope.modalShown = true;
              break;
            default:
              break;
          }
          return $q.reject(response);
        }
{'fraction_non_alphanumeric': 0.18430807248764416, 'fraction_numerical': 0.007413509060955519, 'mean_word_length': 3.5751295336787563, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '676191', 'n_tokens_mistral': 3022, 'n_tokens_neox': 3005, 'n_words': 599}