<commit_before>'use strict';

angular.module('MarvelJSApp',
	[ 'ngRoute', 'MarvelJSApp.setup', 'ngSanitize', 'MarvelJSApp.filters', 'MarvelJSApp.services',
		'MarvelJSApp.directives', 'MarvelJSApp.controllers', 'angular-md5','ui.bootstrap',
		'MarvelJSApp.controllers', 'MarvelJSApp.services', 'jm.i18next', 'trNgGrid'])
	.config([ '$routeProvider', function($routeProvider) {
		$routeProvider.when('/comics', {
			templateUrl : 'partials/comics.html',
			controller : 'comicsCtrl'
		});
		$routeProvider.when('/comics/:id', {
			templateUrl : 'partials/comic.html',
			controller : 'comicCtrl'
		});
		$routeProvider.when('/characters', {
			templateUrl : 'partials/characters.html',
			controller : 'characterCtrl'
		});
		$routeProvider.when('/creators', {
			templateUrl : 'partials/creators.html',
			controller : 'creatorsCtrl'
		});
		$routeProvider.when('/events', {
			templateUrl : 'partials/events.html',
			controller : 'eventsCtrl'
		});
		$routeProvider.when('/series', {
			templateUrl : 'partials/series.html',
			controller : 'seriesCtrl'
		});
		$routeProvider.when('/stories', {
			templateUrl : 'partials/stories.html',
			controller : 'storiesCtrl'
		});
		$routeProvider.when('/config', {
			templateUrl : 'partials/config.html',
			controller : 'configCtrl'
		});
		$routeProvider.when('/conclusiongrid', {
			templateUrl : 'partials/conclusiongrid.html',
			controller : 'conclusionCtrl'
		});
		$routeProvider.when('/conclusionrwd', {
			templateUrl : 'partials/conclusionrwd.html',
			controller : 'conclusionrwdCtrl'
		});
		$routeProvider.otherwise({
			redirectTo : '/comics'
		});
	}
	])
	.config(['Setup','$i18nextProvider', function (Setup, $i18nextProvider) {
	$i18nextProvider.options = {
		lng: Setup.language,
		useCookie: true,
		useLocalStorage: false,
		fallbackLng: 'en',
		resGetPath: 'locales/__lng__/translation.json',
		defaultLoadingValue: '' // ng-i18next option, *NOT* directly supported by i18next
	};
	}])
	.config(function($httpProvider) {
		$httpProvider.interceptors.push('marvelAPIInterceptor');
	})
	.run(function ($rootScope, marvelAPIInvalidKeys, marvelAPIservice, $location) {
		$rootScope.$on('$routeChangeStart', function (ev, next, curr) {
		  if (next.$$route) {
			if (!marvelAPIservice.isConfigured() || marvelAPIInvalidKeys.hasInvalidKeys()) {
				$location.path('/config')
			}
		  }
		});
		/*
		TrNgGrid.tableCssClass = "tr-ng-grid table table-bordered table-hover";
	    TrNgGrid.cellCssClass = "tr-ng-cell";
	    TrNgGrid.headerCellCssClass = "tr-ng-column-header " + TrNgGrid.cellCssClass;
	    TrNgGrid.bodyCellCssClass = cellCssClass;
	    TrNgGrid.columnTitleCssClass = "tr-ng-title";
	    TrNgGrid.columnSortCssClass = "tr-ng-sort";
	    TrNgGrid.columnFilterCssClass = "tr-ng-column-filter";
	    TrNgGrid.columnFilterInputWrapperCssClass = "";
	    TrNgGrid.columnSortActiveCssClass = "tr-ng-sort-active text-info";
	    TrNgGrid.columnSortInactiveCssClass = "tr-ng-sort-inactive text-muted";
	    TrNgGrid.columnSortReverseOrderCssClass = "tr-ng-sort-order-reverse glyphicon glyphicon-chevron-up";
	    TrNgGrid.columnSortNormalOrderCssClass = "tr-ng-sort-order-normal glyphicon glyphicon-chevron-down";
	    TrNgGrid.rowSelectedCssClass = "active";
	    TrNgGrid.footerCssClass = "tr-ng-grid-footer form-inline";
	    */
	})
;<commit_msg>permit access to conclusion pages without needing a marvel developer key<commit_after>'use strict';

angular.module('MarvelJSApp',
	[ 'ngRoute', 'MarvelJSApp.setup', 'ngSanitize', 'MarvelJSApp.filters', 'MarvelJSApp.services',
		'MarvelJSApp.directives', 'MarvelJSApp.controllers', 'angular-md5','ui.bootstrap',
		'MarvelJSApp.controllers', 'MarvelJSApp.services', 'jm.i18next', 'trNgGrid'])
	.config([ '$routeProvider', function($routeProvider) {
		$routeProvider.when('/comics', {
			templateUrl : 'partials/comics.html',
			controller : 'comicsCtrl'
		});
		$routeProvider.when('/comics/:id', {
			templateUrl : 'partials/comic.html',
			controller : 'comicCtrl'
		});
		$routeProvider.when('/characters', {
			templateUrl : 'partials/characters.html',
			controller : 'characterCtrl'
		});
		$routeProvider.when('/creators', {
			templateUrl : 'partials/creators.html',
			controller : 'creatorsCtrl'
		});
		$routeProvider.when('/events', {
			templateUrl : 'partials/events.html',
			controller : 'eventsCtrl'
		});
		$routeProvider.when('/series', {
			templateUrl : 'partials/series.html',
			controller : 'seriesCtrl'
		});
		$routeProvider.when('/stories', {
			templateUrl : 'partials/stories.html',
			controller : 'storiesCtrl'
		});
		$routeProvider.when('/config', {
			templateUrl : 'partials/config.html',
			controller : 'configCtrl'
		});
		$routeProvider.when('/conclusiongrid', {
			templateUrl : 'partials/conclusiongrid.html',
			controller : 'conclusionCtrl'
		});
		$routeProvider.when('/conclusionrwd', {
			templateUrl : 'partials/conclusionrwd.html',
			controller : 'conclusionrwdCtrl'
		});
		$routeProvider.otherwise({
			redirectTo : '/comics'
		});
	}
	])
	.config(['Setup','$i18nextProvider', function (Setup, $i18nextProvider) {
	$i18nextProvider.options = {
		lng: Setup.language,
		useCookie: true,
		useLocalStorage: false,
		fallbackLng: 'en',
		resGetPath: 'locales/__lng__/translation.json',
		defaultLoadingValue: '' // ng-i18next option, *NOT* directly supported by i18next
	};
	}])
	.config(function($httpProvider) {
		$httpProvider.interceptors.push('marvelAPIInterceptor');
	})
	.run(function ($rootScope, marvelAPIInvalidKeys, marvelAPIservice, $location) {
		$rootScope.$on('$routeChangeStart', function (ev, next, curr) {
		  if (next.$$route) {
			if ((!marvelAPIservice.isConfigured() || marvelAPIInvalidKeys.hasInvalidKeys()) && next.$$route.originalPath != '/conclusiongrid' && next.$$route.originalPath != '/conclusionrwd') {
				$location.path('/config');
			}
		  }
		});
		/*
		TrNgGrid.tableCssClass = "tr-ng-grid table table-bordered table-hover";
	    TrNgGrid.cellCssClass = "tr-ng-cell";
	    TrNgGrid.headerCellCssClass = "tr-ng-column-header " + TrNgGrid.cellCssClass;
	    TrNgGrid.bodyCellCssClass = cellCssClass;
	    TrNgGrid.columnTitleCssClass = "tr-ng-title";
	    TrNgGrid.columnSortCssClass = "tr-ng-sort";
	    TrNgGrid.columnFilterCssClass = "tr-ng-column-filter";
	    TrNgGrid.columnFilterInputWrapperCssClass = "";
	    TrNgGrid.columnSortActiveCssClass = "tr-ng-sort-active text-info";
	    TrNgGrid.columnSortInactiveCssClass = "tr-ng-sort-inactive text-muted";
	    TrNgGrid.columnSortReverseOrderCssClass = "tr-ng-sort-order-reverse glyphicon glyphicon-chevron-up";
	    TrNgGrid.columnSortNormalOrderCssClass = "tr-ng-sort-order-normal glyphicon glyphicon-chevron-down";
	    TrNgGrid.rowSelectedCssClass = "active";
	    TrNgGrid.footerCssClass = "tr-ng-grid-footer form-inline";
	    */
	})
;
{'fraction_non_alphanumeric': 0.15854556160753716, 'fraction_numerical': 0.003827469453849551, 'mean_word_length': 4.5642915642915645, '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': '5729029', 'n_tokens_mistral': 2558, 'n_tokens_neox': 2322, 'n_words': 314}