<commit_before>mqWebApp.directive('mqConfig', ['MQWEB_CONFIG', function(config) {
	return {
		restrict: 'E',
		replace: true,
		link : function(scope, element, attrs) 
		{ 
			if ( attrs['name'] )
			{
				element.text(config[attrs['name']]);
			}
		}
	};
}]);

mqWebApp.directive('mqTemplate',
		['MQWEB_CONFIG',
			function (config) {
				return {
				 restrict: 'E',
				 templateUrl: '/static/html/' + config['html']
				};
}]);

mqWebApp.controller('ChannelsController', ['$scope', '$http', 'MQWEB_CONFIG', function($scope, $http, config) {
	$scope.loading = false;
	$scope.mqweb = null;
	$scope.channels = null;
	$scope.error = null;
	
	$scope.formData = {
		channelName : config.channelName ? config.channelName : "*",
		channelType : config.channelType ? config.channelType : "All",
		channelExcludeSystem : false
	};

	$scope.load = function() {
		$scope.loading = true;
		$http.get('/channel/list.json/' + config.qmgrName, {
							  cache: false,
							  params : $scope.formData
						  }) 
			.success(function(data, status) {
				$scope.loading = false;<commit_msg>Don't create mqWebApp here anymore / general code moved to mqwebapp.js<commit_after>var mqWebApp = angular.module('mqWebApp');

mqWebApp.controller('ChannelsController', ['$scope', '$http', 'MQWEB_CONFIG', function($scope, $http, config) {
	$scope.loading = false;
	$scope.mqweb = null;
	$scope.channels = null;
	$scope.error = null;
	
	$scope.formData = {
		channelName : config.channelName ? config.channelName : "*",
		channelType : config.channelType ? config.channelType : "All",
		channelExcludeSystem : false
	};

	$scope.load = function() {
		$scope.loading = true;
		$http.get('/channel/list.json/' + config.qmgrName, {
							  cache: false,
							  params : $scope.formData
						  }) 
			.success(function(data, status) {
				$scope.loading = false;
{'fraction_non_alphanumeric': 0.16720955483170466, 'fraction_numerical': 0.0, 'mean_word_length': 3.6776649746192893, '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': '4496829', 'n_tokens_mistral': 720, 'n_tokens_neox': 619, 'n_words': 114}