<commit_before>'use strict';
var gConfig = require("../../config.js");

//setting controller domain name per namespace
var namespace = gConfig.kubernetes.config.namespaces.default;
if (gConfig.kubernetes.config.namespaces.perService) {
	namespace += '-dashboard-controller-v1';
}

var components = {
	service: {
		"apiVersion": "v1",
		"kind": "Service",
		"metadata": {
			"name": "dashboard-nginx-service",
			"labels": {
				"soajs.content": "true",
				"soajs.env.code": "dashboard",

                "soajs.service.name": "nginx",
                "soajs.service.group": "soajs-nginx",
				"soajs.service.type": "server",
				"soajs.service.subtype": "nginx",
				"soajs.service.label": "dashboard-nginx",
				"soajs.service.mode": "daemonset"
			}
		},
		"spec": {
			"type": "NodePort",
			"externalTrafficPolicy": "Local",
			"selector": {
				"soajs.service.label": "dashboard-nginx"
			},
			"ports": [
				{
					"name": "http",
					"protocol": "TCP",
					"port": 80,
					"targetPort": 80,
					"nodePort": gConfig.nginx.port.http
				},
				{
					"name": "https",
					"protocol": "TCP",
					"port": 443,
					"targetPort": 443,
					"nodePort": gConfig.nginx.port.https
				}
			]
		}
	},
	deployment: {
		"apiVersion": "extensions/v1beta1",
		"kind": "DaemonSet",
		"metadata": {
			"name": "dashboard-nginx",
			"labels": {
				"soajs.content": "true",
				"soajs.env.code": "dashboard",

                "soajs.service.name": "nginx",
				"soajs.service.group": "soajs-nginx",
				"soajs.service.type": "server",
				"soajs.service.subtype": "nginx",
				"soajs.service.label": "dashboard-nginx",
				"soajs.service.mode": "deployment"
			}
		},
		"spec": {
			"replicas": gConfig.kubernetes.replicas,
			"selector": {
				"matchLabels": {
					"soajs.service.label": "dashboard-nginx"
				}
			},
			"template": {
				"metadata": {
					"name": "dashboard-nginx",
					"labels": {
						"soajs.content": "true",
						"soajs.env.code": "dashboard",

		                "soajs.service.name": "nginx",
						"soajs.service.group": "soajs-nginx",
						"soajs.service.type": "server",
						"soajs.service.subtype": "nginx",
						"soajs.service.label": "dashboard-nginx",
						"soajs.service.mode": "deployment"
					}
				},
				"spec": {
					"containers": [
						{
							"name": "dashboard-nginx",
							"image": gConfig.images.nginx.prefix + "/nginx:" + gConfig.images.nginx.tag,
							"imagePullPolicy": gConfig.imagePullPolicy,<commit_msg>fixes<commit_after>'use strict';
var gConfig = require("../../config.js");

//setting controller domain name per namespace
var namespace = gConfig.kubernetes.config.namespaces.default;
if (gConfig.kubernetes.config.namespaces.perService) {
	namespace += '-dashboard-controller-v1';
}

var components = {
	service: {
		"apiVersion": "v1",
		"kind": "Service",
		"metadata": {
			"name": "dashboard-nginx-service",
			"labels": {
				"soajs.content": "true",
				"soajs.env.code": "dashboard",

                "soajs.service.name": "nginx",
                "soajs.service.group": "soajs-nginx",
				"soajs.service.type": "server",
				"soajs.service.subtype": "nginx",
				"soajs.service.label": "dashboard-nginx",
				"soajs.service.mode": "daemonset"
			}
		},
		"spec": {
			"type": "NodePort",
			"externalTrafficPolicy": "Local",
			"selector": {
				"soajs.service.label": "dashboard-nginx"
			},
			"ports": [
				{
					"name": "http",
					"protocol": "TCP",
					"port": 80,
					"targetPort": 80,
					"nodePort": gConfig.nginx.port.http
				},
				{
					"name": "https",
					"protocol": "TCP",
					"port": 443,
					"targetPort": 443,
					"nodePort": gConfig.nginx.port.https
				}
			]
		}
	},
	deployment: {
		"apiVersion": "extensions/v1beta1",
		"kind": "DaemonSet",
		"metadata": {
			"name": "dashboard-nginx",
			"labels": {
				"soajs.content": "true",
				"soajs.env.code": "dashboard",

                "soajs.service.name": "nginx",
				"soajs.service.group": "soajs-nginx",
				"soajs.service.type": "server",
				"soajs.service.subtype": "nginx",
				"soajs.service.label": "dashboard-nginx",
				"soajs.service.mode": "daemonset"
			}
		},
		"spec": {
			"replicas": gConfig.kubernetes.replicas,
			"selector": {
				"matchLabels": {
					"soajs.service.label": "dashboard-nginx"
				}
			},
			"template": {
				"metadata": {
					"name": "dashboard-nginx",
					"labels": {
						"soajs.content": "true",
						"soajs.env.code": "dashboard",

		                "soajs.service.name": "nginx",
						"soajs.service.group": "soajs-nginx",
						"soajs.service.type": "server",
						"soajs.service.subtype": "nginx",
						"soajs.service.label": "dashboard-nginx",
						"soajs.service.mode": "daemonset"
					}
				},
				"spec": {
					"containers": [
						{
							"name": "dashboard-nginx",
							"image": gConfig.images.nginx.prefix + "/nginx:" + gConfig.images.nginx.tag,
							"imagePullPolicy": gConfig.imagePullPolicy,
{'fraction_non_alphanumeric': 0.19732034104750304, 'fraction_numerical': 0.005684125050751117, 'mean_word_length': 2.7354056103108415, 'pattern_counts': {'":': 128, '<': 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': '4222661', 'n_tokens_mistral': 2312, 'n_tokens_neox': 1829, 'n_words': 273}