<commit_before>'use strict';

goog.provide('cgAdmin.homeModule');

goog.require('cgAdmin.CommunicationException');

goog.require('cgAdmin.NotFoundException');


cgAdmin.homeModule = angular.module('copygrinderHome', [
  'angular-data.DSCacheFactory',
  'ngResource',
  'ui.router',
  'angularFileUpload',
  'ngCkeditor',
  'mm.foundation.accordion',
  'mm.foundation.dropdownToggle',
  'template/accordion/accordion-group.html',
  'template/accordion/accordion.html'
]);

/**
 * @param {!angular.$locationProvider} $locationProvider
 * @ngInject
 */
cgAdmin.homeModule.locationFunc = function($locationProvider) {
  $locationProvider.html5Mode(true);
};

cgAdmin.homeModule.config(cgAdmin.homeModule.locationFunc);

/**
 * @ngInject
 */
cgAdmin.homeModule.go = function($rootScope) {
  $rootScope.rootUrl = document.getElementById('baseMetaTag').getAttribute('data-copygrinder-url');
};

cgAdmin.homeModule.run(cgAdmin.homeModule.go);

/**
 * @expose
 */
cgAdmin.homeModule.$rootScope;

/**
 * @expose
 */
cgAdmin.homeModule.$rootScope.rootUrl;<commit_msg>attempted fix for proxied https.<commit_after>'use strict';

goog.provide('cgAdmin.homeModule');

goog.require('cgAdmin.CommunicationException');

goog.require('cgAdmin.NotFoundException');


cgAdmin.homeModule = angular.module('copygrinderHome', [
  'angular-data.DSCacheFactory',
  'ngResource',
  'ui.router',
  'angularFileUpload',
  'ngCkeditor',
  'mm.foundation.accordion',
  'mm.foundation.dropdownToggle',
  'template/accordion/accordion-group.html',
  'template/accordion/accordion.html'
]);

/**
 * @param {!angular.$locationProvider} $locationProvider
 * @ngInject
 */
cgAdmin.homeModule.locationFunc = function($locationProvider) {
  $locationProvider.html5Mode(true);
};

cgAdmin.homeModule.config(cgAdmin.homeModule.locationFunc);

/**
 * @ngInject
 */
cgAdmin.homeModule.go = function($rootScope) {
  var dataUrl = document.getElementById('baseMetaTag').getAttribute('data-copygrinder-url');
  if (window.location.protocol === 'https:') {
    dataUrl = dataUrl.replace('http:', 'https:');
  }
  $rootScope.rootUrl = dataUrl;
};

cgAdmin.homeModule.run(cgAdmin.homeModule.go);

/**
 * @expose
 */
cgAdmin.homeModule.$rootScope;

/**
 * @expose
 */
cgAdmin.homeModule.$rootScope.rootUrl;
{'fraction_non_alphanumeric': 0.16792202038103676, 'fraction_numerical': 0.0008861320336730173, 'mean_word_length': 5.700296735905044, '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': '4395287', 'n_tokens_mistral': 767, 'n_tokens_neox': 751, 'n_words': 80}