<commit_before>/**************

Copyright 2016 Open Effect

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:

http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

***************/
const config = __CONFIG__;
import angular from "angular";
import ngRoute from "angular-route";
import ngEnter from "./modules/Enter/enter";
import ngCookies from "angular-cookies";
import ngMessages from "angular-messages";
import ngSanitize from "angular-sanitize";
import ngclipboard from "angular-clipboard";
import ngTranslate from "angular-translate";
import "angular-translate-loader-static-files";
window.Page = require("./modules/canvasDoc/canvasdoc").Page;
window.Document = require("./modules/canvasDoc/canvasdoc").Document;
window.SVGInjector = require("svg-injector");
import angularChart from "angular-chart.js";
import dataProviderService from "./modules/dataProviderService/dataproviderservice";
import ProgressBarNav from "./modules/ProgressBarNav/progressbarnav";
import FormItem from "./modules/formItem/formitem";
import AMIRequest from "./modules/AMIRequest/amirequest";
import requestTemplate from "./modules/requestTemplate/requesttemplate";
import LanguageCtrl from "./controllers/language";
import LangStyleCtrl from "./controllers/langstyle";
import IndustryCtrl from "./controllers/industry";
import CompanyCtrl from "./controllers/company";
import QuestionsCtrl from "./controllers/questions";
import SubscriberCtrl from "./controllers/subscriberInfo";
import RequestCtrl from "./controllers/request";
import StatsCtrl from "./controllers/stats";
import HeaderCtrl from "./controllers/header";
import UnsubscribeCtrl from "./controllers/unsubscribe";
import VerificationCtrl from "./controllers/verify";
import ContentCtrl from "./controllers/content";

// Wire up custom libraries into the angular 
angular.module('ngEnter', []).directive('ngEnter', ngEnter);
angular.module('dataProviderService', []).factory('dataProviderService', dataProviderService);
angular.module('ProgressBarNav', []).service('NavCollection', ProgressBarNav.navCollection).controller('ProgressCtrl', ProgressBarNav.controller);
angular.module('requestTemplate', []).directive('requestTemplate', requestTemplate);
angular.module('AMIRequest', []).service("AMIRequest", AMIRequest);
angular.module('formItem', []).directive('formItem', FormItem);

'use strict';
console.log(config);
var AMIApp = angular.module('AMIApp', [
    'ngRoute',
    'ngEnter',
    'ngCookies',
    'ngMessages',
    'ngSanitize',
    'dataProviderService',
    'ProgressBarNav',
    'formItem',
    'requestTemplate',
    'AMIRequest',
    'pascalprecht.translate',
    'angular-clipboard',
    'chart.js'
  ])
  .config(['$locationProvider', function($locationProvider) {
    $locationProvider.hashPrefix('');
  }])
  .constant("envOptions", config)
  .controller("LangStyle", LangStyleCtrl)
  .controller("LanguageCtrl", LanguageCtrl)
  .controller("IndustryCtrl", IndustryCtrl)
  .controller("CompanyCtrl", CompanyCtrl)
  .controller("QuestionsCtrl", QuestionsCtrl)
  .controller("SubscriberCtrl", SubscriberCtrl)
  .controller("RequestCtrl", RequestCtrl)
  .controller("StatsCtrl", StatsCtrl)
  .controller("HeaderCtrl", HeaderCtrl)
  .controller("VerificationCtrl", VerificationCtrl)
  .controller("UnsubscribeCtrl", UnsubscribeCtrl)
  .controller("ContentCtrl". ContentCtrl)
  .service('cmsStatus', ['$location', 'NavCollection', function($location, NavCollection){
    var online = false;
    var firstRun = true;
    var path;
    var redirect = false;
    this.isOnline = function(status){
      if(typeof status === "undefined"){
        return online;
      }
      if(!firstRun && !online && status){
        redirect = true;
      }
      else{
        redirect = false;
      }
      if(status === true){
        online = true;
        NavCollection.unRestrict('start');
      }
      else{
        online = false;<commit_msg>remove period<commit_after>/**************

Copyright 2016 Open Effect

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:

http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

***************/
const config = __CONFIG__;
import angular from "angular";
import ngRoute from "angular-route";
import ngEnter from "./modules/Enter/enter";
import ngCookies from "angular-cookies";
import ngMessages from "angular-messages";
import ngSanitize from "angular-sanitize";
import ngclipboard from "angular-clipboard";
import ngTranslate from "angular-translate";
import "angular-translate-loader-static-files";
window.Page = require("./modules/canvasDoc/canvasdoc").Page;
window.Document = require("./modules/canvasDoc/canvasdoc").Document;
window.SVGInjector = require("svg-injector");
import angularChart from "angular-chart.js";
import dataProviderService from "./modules/dataProviderService/dataproviderservice";
import ProgressBarNav from "./modules/ProgressBarNav/progressbarnav";
import FormItem from "./modules/formItem/formitem";
import AMIRequest from "./modules/AMIRequest/amirequest";
import requestTemplate from "./modules/requestTemplate/requesttemplate";
import LanguageCtrl from "./controllers/language";
import LangStyleCtrl from "./controllers/langstyle";
import IndustryCtrl from "./controllers/industry";
import CompanyCtrl from "./controllers/company";
import QuestionsCtrl from "./controllers/questions";
import SubscriberCtrl from "./controllers/subscriberInfo";
import RequestCtrl from "./controllers/request";
import StatsCtrl from "./controllers/stats";
import HeaderCtrl from "./controllers/header";
import UnsubscribeCtrl from "./controllers/unsubscribe";
import VerificationCtrl from "./controllers/verify";
import ContentCtrl from "./controllers/content";

// Wire up custom libraries into the angular 
angular.module('ngEnter', []).directive('ngEnter', ngEnter);
angular.module('dataProviderService', []).factory('dataProviderService', dataProviderService);
angular.module('ProgressBarNav', []).service('NavCollection', ProgressBarNav.navCollection).controller('ProgressCtrl', ProgressBarNav.controller);
angular.module('requestTemplate', []).directive('requestTemplate', requestTemplate);
angular.module('AMIRequest', []).service("AMIRequest", AMIRequest);
angular.module('formItem', []).directive('formItem', FormItem);

'use strict';
console.log(config);
var AMIApp = angular.module('AMIApp', [
    'ngRoute',
    'ngEnter',
    'ngCookies',
    'ngMessages',
    'ngSanitize',
    'dataProviderService',
    'ProgressBarNav',
    'formItem',
    'requestTemplate',
    'AMIRequest',
    'pascalprecht.translate',
    'angular-clipboard',
    'chart.js'
  ])
  .config(['$locationProvider', function($locationProvider) {
    $locationProvider.hashPrefix('');
  }])
  .constant("envOptions", config)
  .controller("LangStyle", LangStyleCtrl)
  .controller("LanguageCtrl", LanguageCtrl)
  .controller("IndustryCtrl", IndustryCtrl)
  .controller("CompanyCtrl", CompanyCtrl)
  .controller("QuestionsCtrl", QuestionsCtrl)
  .controller("SubscriberCtrl", SubscriberCtrl)
  .controller("RequestCtrl", RequestCtrl)
  .controller("StatsCtrl", StatsCtrl)
  .controller("HeaderCtrl", HeaderCtrl)
  .controller("VerificationCtrl", VerificationCtrl)
  .controller("UnsubscribeCtrl", UnsubscribeCtrl)
  .controller("ContentCtrl", ContentCtrl)
  .service('cmsStatus', ['$location', 'NavCollection', function($location, NavCollection){
    var online = false;
    var firstRun = true;
    var path;
    var redirect = false;
    this.isOnline = function(status){
      if(typeof status === "undefined"){
        return online;
      }
      if(!firstRun && !online && status){
        redirect = true;
      }
      else{
        redirect = false;
      }
      if(status === true){
        online = true;
        NavCollection.unRestrict('start');
      }
      else{
        online = false;
{'fraction_non_alphanumeric': 0.13351877607788595, 'fraction_numerical': 0.0018544274455261937, 'mean_word_length': 5.185663082437276, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5678160', 'n_tokens_mistral': 2276, 'n_tokens_neox': 2254, 'n_words': 622}