<commit_before><div class="area" ng-controller="deploymentCtrl">
    <div ng-show="alerts && alerts.length > 0">
        <alert ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">
            {{alert.msg}}
        </alert>
    </div>
	<div ng-show="!confirmation && deployment.deployType ==='manual'">
		<div ng-hide="ha">
			<form class="css-form" novalidate>
				<div class="header">
					<h3>Deployment Information</h3>
				</div>
			</form>
            <alert type="warning">
                If you have any web server running on port 80 on your local machine, docker, kubernetes or others, please turn it off before you proceed otherwise it will conflict with the NGINX that SOAJS requires.
            </alert>
			<p>
				You have selected manual deployment in <b>Overview</b> section.<br />
				Manual Deployment has no extra configuration, click proceed to start the deployment.
				<input type="button" class="btn btn-sm btn-primary" value="Proceed" ng-click="goToFinal()" />
			</p>
		</div>
	</div>
    <form ng-hide="confirmation" name="deploymentForm" class="css-form" novalidate
          ng-submit="submit(deploymentForm)" ng-show="ha">
        <div class="header">
            <h3>Deployment Information</h3>
        </div>
        <table width="100%" cellspacing="0" cellpadding="0" border="0">
            <tbody>
            <tr class="form-group tr-code-wrapper" ng-show="!ha">
                <td class="form-select">
                    <p>In case manual was selected</p>
                </td>
            </tr>
            </tbody>
        </table>
        <fieldset ng-show="docker||kubernetes">
        <table width="100%" cellspacing="0" cellpadding="0" border="0">
            <tbody>
            <tr class="form-group tr-code-wrapper">
                <td class="form-select">
                    <div id="containerHost-wrapper">
                        <label>Master Node Hostname/IP</label>
                        <input type="text" ng-required="false" class="form-control" name="containerHost"
                               id="containerHost" ng-model="deployment.containerHost" placeholder="deployment.containerHost"/>
                        <div class="fieldMsg hint">Specify the Hostname/IP of the Master Node.</div>
                    </div>
                </td>
            </tr>
            <tr class="form-group tr-code-wrapper">
                <td class="form-select">
                    <div id="imagePrefix-wrapper">
                        <label>Image Prefix</label>
                        <input type="text" ng-required="false" class="form-control" name="imagePrefix" id="imagePrefix"
                               ng-model="deployment.imagePrefix" placeholder="deployment.imagePrefix"/>
                        <div class="fieldMsg hint">Specify the Image Prefix to use for containers.</div>
                    </div>
                </td>
            </tr>
            <tr class="form-group tr-code-wrapper">
                <td class="form-select">
                    <div id="initialReplica-wrapper">
                        <label>Initial Number of Replicas</label>
                        <input type="number" ng-required="false" class="form-control" name="dockerReplica" ng-model="deployment.dockerReplica"
                               placeholder="deployment.dockerReplica" id="dockerReplica" min="1"/>
                        <div class="fieldMsg hint">Specify the Initial number of replicas per container to start with.
                        </div>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
        </fieldset>
        <br ng-if="deployment.certsRequired"/>
        <fieldset ng-show="deployment.certsRequired">
            <legend>Certificates</legend>
            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                <tbody>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="CA-wrapper">
                            <label>CA</label>
                            <input type="text" ng-required="deployment.certsRequired" class="form-control" name="caCertificate" id="caCertificate"
                                   ng-model="deployment.certificates.caCertificate" placeholder="~/certificate.ca"/>
                            <div class="fieldMsg hint">Specify the location of the certificate of type CA.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="Cert-wrapper">
                            <label>Cert</label>
                            <input type="text" ng-required="deployment.certsRequired" class="form-control" name="certCertificate" id="certCertificate"
                                   ng-model="deployment.certificates.certCertificate" placeholder="~/certificate.cert"/>
                            <div class="fieldMsg hint">Specify the location of the certificate of type Cert.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="Key-wrapper">
                            <label>Key</label>
                            <input type="text" ng-required="deployment.certsRequired" class="form-control" name="keyCertificate" id="keyCertificate"
                                   ng-model="deployment.certificates.keyCertificate" placeholder="~/certificate.key"/>
                            <div class="fieldMsg hint">Specify the location of the certificate of type Key.</div>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </fieldset>
        <br ng-if="kubernetes" />
        <fieldset ng-show="kubernetes">
            <legend>Kubernetes Authentication Token</legend>
            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                <tbody>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="authToken-wrapper">
                            <label>Kubernetes Authentication Token</label>
                            <input type="text" ng-required="kubernetes" class="form-control" name="kubeAuthToken" id="kubeAuthToken"
                                   ng-model="deployment.authentication.accessToken" placeholder="<Authentication token>"/>
                            <div class="fieldMsg hint">Insert the kubernetes authentication token</div>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </fieldset>
        <br ng-if="kubernetes" />
        <fieldset ng-show="kubernetes">
            <legend>Readiness Probe Parametes</legend>
            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                <tbody>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="initialDelaySeconds-wrapper">
                            <label>Initial Delay Seconds</label>
                            <input type="number" ng-required="false" class="form-control" name="initialDelaySeconds" id="initialDelaySeconds"
                                   ng-model="deployment.readinessProbe.initialDelaySeconds" placeholder="15"/>
                            <div class="fieldMsg hint">Specify the time (in seconds) before readiness probes are initiated..</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="timeoutSeconds-wrapper">
                            <label>Timeout Seconds</label>
                            <input type="number" ng-required="false" class="form-control" name="timeoutSeconds" id="timeoutSeconds"
                                   ng-model="deployment.readinessProbe.timeoutSeconds" placeholder="1"/>
                            <div class="fieldMsg hint">Specify the time (in seconds) after which the probe times out.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="periodSeconds-wrapper">
                            <label>Period Seconds</label>
                            <input type="number" ng-required="false" class="form-control" name="periodSeconds" id="periodSeconds"
                                   ng-model="deployment.readinessProbe.periodSeconds" placeholder="10"/>
                            <div class="fieldMsg hint">Specify the interval (in seconds) between readiness checks.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="successThreshold-wrapper">
                            <label>Success Threshold</label>
                            <input type="number" ng-required="false" class="form-control" name="successThreshold" id="successThreshold"
                                   ng-model="deployment.readinessProbe.successThreshold" placeholder="10"/>
                            <div class="fieldMsg hint">Specify the minimum consecutive successes for the probe to be considered successful.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="failureThreshold-wrapper">
                            <label>Failure Threshold</label>
                            <input type="number" ng-required="false" class="form-control" name="failureThreshold" id="failureThreshold"
                                   ng-model="deployment.readinessProbe.failureThreshold" placeholder="10"/>
                            <div class="fieldMsg hint">Specify the minimum consecutive successes for the probe to be considered failed.</div>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </fieldset>
        <br ng-if="kubernetes" />
        <fieldset ng-show="kubernetes">
            <legend>Namespace Configuration</legend>
            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                <tbody>
                    <tr class="form-group tr-code-wrapper">
                        <td class="form-select">
                            <div id="namespaceMode-wrapper">
                                <label>Default Namespace</label>
                                <input type="text" class="form-control" name="defaultNamespace" id="defaultNamespace"
                                       ng-required="kubernetes" ng-model="deployment.namespaces.default" placeholder="soajs"/>
                                <div class="fieldMsg hint">Specify the name of the default namespace for the project.</div>
                            </div>
                        </td>
                    </tr>
                    <tr class="form-group tr-code-wrapper">
                        <td class="form-select">
                            <div id="namespaceMode-wrapper">
                                <label>Namespace Mode</label>
                                <label class="radioLabel">
                                    <input type="radio" ng-required="kubernetes" ng-model="deployment.namespaces.perService" name="global" ng-value="false" />&nbsp;Global Namespace Per Project
                                </label>
                                <label class="radioLabel">
                                    <input type="radio" ng-required="kubernetes" ng-model="deployment.namespaces.perService" name="service" ng-value="true" />&nbsp;Specific Namespace Per Service
                                </label>

                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </fieldset>
        <br ng-if="kubernetes" />
        <fieldset ng-show="docker||kubernetes">
            <legend>Git Account</legend>
            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                <tbody>
                <tr class="form-group tr-code-wrapper">
	                <td class="form-select">
		                <div id="gitSource-wrapper">
			                <label>Provider</label>
			                <select name="gitSource" id="gitSource" ng-model="deployment.gitSource">
				                <option value="github">Github</option>
				                <option value="bitbucket">Bitbucket</option>
			                </select>
			                <div class="fieldMsg hint">Select the custom UI Source.</div>
		                </div>
	                </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
	                <td class="form-select">
		                <div id="gitProvider-wrapper">
			                <label>Git Domain</label>
			                <input type="text" ng-required="false" class="form-control" name="gitprovider" id="gitprovider"
			                       ng-model="deployment.gitProvider" placeholder="github.com"/>
			                <div class="fieldMsg hint">Specify the domain of the custom UI repo.</div>
		                </div>
	                </td>
                </tr>
	            <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="gitOwner-wrapper">
                            <label>Git Owner</label>
                            <input type="text" ng-required="false" class="form-control" name="gitOwner" id="gitOwner"
                                   ng-model="deployment.gitOwner" placeholder="soajs"/>
                            <div class="fieldMsg hint">Specify the owner of the git repository.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="gitRepo-wrapper">
                            <label>Git Repository</label>
                            <input type="text" ng-required="false" class="form-control" name="gitRepo" id="gitRepo"
                                   ng-model="deployment.gitRepo" placeholder="customUI"/>
                            <div class="fieldMsg hint">Specify the name of the git repository.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
	                <td class="form-select">
		                <div id="gitBranch-wrapper">
			                <label>Git Branch</label>
			                <input type="text" ng-required="false" class="form-control" name="gitBranch" id="gitBranch"
			                       ng-model="deployment.gitBranch" placeholder="master"/>
			                <div class="fieldMsg hint">Specify the branch to use.</div>
		                </div>
	                </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="gitToken-wrapper">
                            <label>Git Token</label>
                            <input type="text" ng-required="false" class="form-control" name="gitToken" id="gitToken"
                                   ng-model="deployment.gitToken" placeholder="Token ID"/>
                            <div class="fieldMsg hint">Specify the token of the git repository.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
	                <td class="form-select">
		                <div id="gitPath-wrapper">
			                <label>Git Path</label>
			                <input type="text" ng-required="false" class="form-control" name="gitPath" id="gitPath"
			                       ng-model="deployment.gitPath" placeholder="/"/>
			                <div class="fieldMsg hint">Specify the path of the git repository.</div>
		                </div>
	                </td>
                </tr>
                </tbody>
            </table>
        </fieldset>
        <br />
        <fieldset ng-show="docker||kubernetes">
            <legend>NGINX</legend>
            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                <tbody>
                <tr class="form-group tr-code-wrapper" ng-show="kubernetes">
                    <td class="form-select">
                        <div id="nginxDeployType-wrapper">
                            <label>Service Deployment Type</label>
                            <select ng-required="kubernetes" name="nginxDeployType" id="nginxDeployType" ng-model="deployment.nginxDeployType">
                                <option value="NodePort">NodePort</option>
                                <option value="LoadBalancer">Load Balancer</option>
                            </select>
                            <div class="fieldMsg hint" ng-show="deployment.nginxDeployType==='LoadBalancer'">Load Balancer option uses automatic public IP / ELB provisioning when running Kubernetes cluster in AWS or GCE.</div>
                            <div class="fieldMsg hint" ng-show="deployment.nginxDeployType==='NodePort'">Current NGINX exposed port: {{deployment.nginxPort}}</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper" ng-show="deployment.nginxDeployType==='NodePort'">
                    <td class="form-select">
                        <div id="nginxPort-wrapper">
                            <label>NGINX Port</label>
                            <input type="number" ng-required="false" class="form-control" name="nginxPort"
                                   id="nginxPort" ng-model="deployment.nginxPort" placeholder="deployment.nginxPort" min="1"/>
                            <div class="fieldMsg hint">Specify the NGINX port number.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper" ng-show="deployment.nginxDeployType==='NodePort'">
                    <td class="form-select">
                        <div id="nginxSecurePort-wrapper">
                            <label>NGINX Secure Port</label>
                            <input type="number" ng-required="false" class="form-control" name="nginxSecurePort"
                                   id="nginxSecurePort" ng-model="deployment.nginxSecurePort" placeholder="deployment.nginxSecurePort" min="1"/>
                            <div class="fieldMsg hint">Specify the NGINX secure port number.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper" ng-show="deployment.nginxDeployType==='NodePort'">
                    <td class="form-select">
                        <div id="nginxSsl-wrapper">
                            <input class="f-left form-control" id="nginxSsl" name="nginxSsl" ng-model="deployment.nginxSsl"
                                   tooltip="Check the box if you want SSL certificates to be created with NGINX."
                                   ng-required="false" type="checkbox"/>&nbsp;<label>NGINX SSL</label>
                            <div class="fieldMsg hint">Specify if SSL certificates should be created with NGINX</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper" ng-show="deployment.nginxDeployType==='NodePort'&&kubernetes&&deployment.nginxSsl">
                    <td class="form-select">
                        <div id="nginxSsl-ssc">
                            <input class="f-left form-control" id="nginxSslCertGen" name="nginxSslCertGen" ng-model="deployment.generateSsc"
                                   tooltip="Check the box if you want SOAJS to create self signed certificates."
                                   ng-required="false" type="checkbox"/>&nbsp;<label>Self Signed Certificates Generation</label>
                            <div class="fieldMsg hint">Check the box if you want SOAJS to create self signed certificates.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper" ng-show="deployment.nginxDeployType==='NodePort'&&kubernetes&&deployment.nginxSsl&&!deployment.generateSsc">
                    <td class="form-select">
                        <div id="nginxSslSecret-wrapper">
                            <label>NGINX Certificates Kubernetes Secret</label>
                            <input type="string" ng-required="false" class="form-control" name="nginxKubeSecret"
                                   id="nginxKubeSecret" ng-model="deployment.nginxKubeSecret" placeholder="Kubernetes Secret"/>
                            <div class="fieldMsg hint">Specify the kubernetes secret containing the NGINX certificates.</div>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </fieldset>
	    <fieldset ng-show="(docker||kubernetes) && !deployment.mongoExt ">
		    <legend>Mongo</legend>
		    <table width="100%" cellspacing="0" cellpadding="0" border="0">
			    <tbody>
				    <tr class="form-group tr-code-wrapper">
					    <td class="form-select">
						    <div id="mongoExposedPort-wrapper">
							    <label>Mongo Exposed Port</label>
							    <input type="string" ng-required="false" class="form-control" name="mongoExposedPort"
							           id="mongoExposedPort" ng-model="deployment.mongoExposedPort" placeholder="Mongo Exposed Port"/>
							    <div class="fieldMsg hint">Specify the Mongo Exposed port number</div>
						    </div>
					    </td>
				    </tr>
			    </tbody>
		    </table>
	    </fieldset>
        <br />
        <fieldset ng-show="docker">
            <legend>Docker</legend>
            <table width="100%" cellspacing="0" cellpadding="0" border="0"width="100%" cellspacing="0" cellpadding="0" border="0">
                <tbody>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select"><commit_msg>small fix<commit_after><div class="area" ng-controller="deploymentCtrl">
    <div ng-show="alerts && alerts.length > 0">
        <alert ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">
            {{alert.msg}}
        </alert>
    </div>
	<div ng-show="!confirmation && deployment.deployType ==='manual'">
		<div ng-hide="ha">
			<form class="css-form" novalidate>
				<div class="header">
					<h3>Deployment Information</h3>
				</div>
			</form>
            <alert type="warning">
                If you have any web server running on port 80 on your local machine, docker, kubernetes or others, please turn it off before you proceed otherwise it will conflict with the NGINX that SOAJS requires.
            </alert>
			<p>
				You have selected manual deployment in <b>Overview</b> section.<br />
				Manual Deployment has no extra configuration, click proceed to start the deployment.
				<input type="button" class="btn btn-sm btn-primary" value="Proceed" ng-click="goToFinal()" />
			</p>
		</div>
	</div>
    <form ng-hide="confirmation" name="deploymentForm" class="css-form" novalidate
          ng-submit="submit(deploymentForm)" ng-show="ha">
        <div class="header">
            <h3>Deployment Information</h3>
        </div>
        <table width="100%" cellspacing="0" cellpadding="0" border="0">
            <tbody>
            <tr class="form-group tr-code-wrapper" ng-show="!ha">
                <td class="form-select">
                    <p>In case manual was selected</p>
                </td>
            </tr>
            </tbody>
        </table>
        <fieldset ng-show="docker||kubernetes">
        <table width="100%" cellspacing="0" cellpadding="0" border="0">
            <tbody>
            <tr class="form-group tr-code-wrapper">
                <td class="form-select">
                    <div id="containerHost-wrapper">
                        <label>Master Node Hostname/IP</label>
                        <input type="text" ng-required="false" class="form-control" name="containerHost"
                               id="containerHost" ng-model="deployment.containerHost" placeholder="deployment.containerHost"/>
                        <div class="fieldMsg hint">Specify the Hostname/IP of the Master Node.</div>
                    </div>
                </td>
            </tr>
            <tr class="form-group tr-code-wrapper">
                <td class="form-select">
                    <div id="imagePrefix-wrapper">
                        <label>Image Prefix</label>
                        <input type="text" ng-required="false" class="form-control" name="imagePrefix" id="imagePrefix"
                               ng-model="deployment.imagePrefix" placeholder="deployment.imagePrefix"/>
                        <div class="fieldMsg hint">Specify the Image Prefix to use for containers.</div>
                    </div>
                </td>
            </tr>
            <tr class="form-group tr-code-wrapper">
                <td class="form-select">
                    <div id="initialReplica-wrapper">
                        <label>Initial Number of Replicas</label>
                        <input type="number" ng-required="false" class="form-control" name="dockerReplica" ng-model="deployment.dockerReplica"
                               placeholder="deployment.dockerReplica" id="dockerReplica" min="1"/>
                        <div class="fieldMsg hint">Specify the Initial number of replicas per container to start with.
                        </div>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
        </fieldset>
        <br ng-if="deployment.certsRequired"/>
        <fieldset ng-show="deployment.certsRequired">
            <legend>Certificates</legend>
            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                <tbody>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="CA-wrapper">
                            <label>CA</label>
                            <input type="text" ng-required="deployment.certsRequired" class="form-control" name="caCertificate" id="caCertificate"
                                   ng-model="deployment.certificates.caCertificate" placeholder="~/certificate.ca"/>
                            <div class="fieldMsg hint">Specify the location of the certificate of type CA.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="Cert-wrapper">
                            <label>Cert</label>
                            <input type="text" ng-required="deployment.certsRequired" class="form-control" name="certCertificate" id="certCertificate"
                                   ng-model="deployment.certificates.certCertificate" placeholder="~/certificate.cert"/>
                            <div class="fieldMsg hint">Specify the location of the certificate of type Cert.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="Key-wrapper">
                            <label>Key</label>
                            <input type="text" ng-required="deployment.certsRequired" class="form-control" name="keyCertificate" id="keyCertificate"
                                   ng-model="deployment.certificates.keyCertificate" placeholder="~/certificate.key"/>
                            <div class="fieldMsg hint">Specify the location of the certificate of type Key.</div>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </fieldset>
        <br ng-if="kubernetes" />
        <fieldset ng-show="kubernetes">
            <legend>Kubernetes Authentication Token</legend>
            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                <tbody>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="authToken-wrapper">
                            <label>Kubernetes Authentication Token</label>
                            <input type="text" ng-required="kubernetes" class="form-control" name="kubeAuthToken" id="kubeAuthToken"
                                   ng-model="deployment.authentication.accessToken" placeholder="<Authentication token>"/>
                            <div class="fieldMsg hint">Insert the kubernetes authentication token</div>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </fieldset>
        <br ng-if="kubernetes" />
        <fieldset ng-show="kubernetes">
            <legend>Readiness Probe Parametes</legend>
            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                <tbody>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="initialDelaySeconds-wrapper">
                            <label>Initial Delay Seconds</label>
                            <input type="number" ng-required="false" class="form-control" name="initialDelaySeconds" id="initialDelaySeconds"
                                   ng-model="deployment.readinessProbe.initialDelaySeconds" placeholder="15"/>
                            <div class="fieldMsg hint">Specify the time (in seconds) before readiness probes are initiated..</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="timeoutSeconds-wrapper">
                            <label>Timeout Seconds</label>
                            <input type="number" ng-required="false" class="form-control" name="timeoutSeconds" id="timeoutSeconds"
                                   ng-model="deployment.readinessProbe.timeoutSeconds" placeholder="1"/>
                            <div class="fieldMsg hint">Specify the time (in seconds) after which the probe times out.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="periodSeconds-wrapper">
                            <label>Period Seconds</label>
                            <input type="number" ng-required="false" class="form-control" name="periodSeconds" id="periodSeconds"
                                   ng-model="deployment.readinessProbe.periodSeconds" placeholder="10"/>
                            <div class="fieldMsg hint">Specify the interval (in seconds) between readiness checks.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="successThreshold-wrapper">
                            <label>Success Threshold</label>
                            <input type="number" ng-required="false" class="form-control" name="successThreshold" id="successThreshold"
                                   ng-model="deployment.readinessProbe.successThreshold" placeholder="10"/>
                            <div class="fieldMsg hint">Specify the minimum consecutive successes for the probe to be considered successful.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="failureThreshold-wrapper">
                            <label>Failure Threshold</label>
                            <input type="number" ng-required="false" class="form-control" name="failureThreshold" id="failureThreshold"
                                   ng-model="deployment.readinessProbe.failureThreshold" placeholder="10"/>
                            <div class="fieldMsg hint">Specify the minimum consecutive successes for the probe to be considered failed.</div>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </fieldset>
        <br ng-if="kubernetes" />
        <fieldset ng-show="kubernetes">
            <legend>Namespace Configuration</legend>
            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                <tbody>
                    <tr class="form-group tr-code-wrapper">
                        <td class="form-select">
                            <div id="namespaceMode-wrapper">
                                <label>Default Namespace</label>
                                <input type="text" class="form-control" name="defaultNamespace" id="defaultNamespace"
                                       ng-required="kubernetes" ng-model="deployment.namespaces.default" placeholder="soajs"/>
                                <div class="fieldMsg hint">Specify the name of the default namespace for the project.</div>
                            </div>
                        </td>
                    </tr>
                    <tr class="form-group tr-code-wrapper">
                        <td class="form-select">
                            <div id="namespaceMode-wrapper">
                                <label>Namespace Mode</label>
                                <label class="radioLabel">
                                    <input type="radio" ng-required="kubernetes" ng-model="deployment.namespaces.perService" name="global" ng-value="false" />&nbsp;Global Namespace Per Project
                                </label>
                                <label class="radioLabel">
                                    <input type="radio" ng-required="kubernetes" ng-model="deployment.namespaces.perService" name="service" ng-value="true" />&nbsp;Specific Namespace Per Service
                                </label>

                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </fieldset>
        <br ng-if="kubernetes" />
        <fieldset ng-show="docker||kubernetes">
            <legend>Git Account</legend>
            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                <tbody>
                <tr class="form-group tr-code-wrapper">
	                <td class="form-select">
		                <div id="gitSource-wrapper">
			                <label>Provider</label>
			                <select name="gitSource" id="gitSource" ng-model="deployment.gitSource">
				                <option value="github">Github</option>
				                <option value="bitbucket">Bitbucket</option>
			                </select>
			                <div class="fieldMsg hint">Select the custom UI Source.</div>
		                </div>
	                </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
	                <td class="form-select">
		                <div id="gitProvider-wrapper">
			                <label>Git Domain</label>
			                <input type="text" ng-required="false" class="form-control" name="gitprovider" id="gitprovider"
			                       ng-model="deployment.gitProvider" placeholder="github.com"/>
			                <div class="fieldMsg hint">Specify the domain of the custom UI repo.</div>
		                </div>
	                </td>
                </tr>
	            <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="gitOwner-wrapper">
                            <label>Git Owner</label>
                            <input type="text" ng-required="false" class="form-control" name="gitOwner" id="gitOwner"
                                   ng-model="deployment.gitOwner" placeholder="soajs"/>
                            <div class="fieldMsg hint">Specify the owner of the git repository.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="gitRepo-wrapper">
                            <label>Git Repository</label>
                            <input type="text" ng-required="false" class="form-control" name="gitRepo" id="gitRepo"
                                   ng-model="deployment.gitRepo" placeholder="customUI"/>
                            <div class="fieldMsg hint">Specify the name of the git repository.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
	                <td class="form-select">
		                <div id="gitBranch-wrapper">
			                <label>Git Branch</label>
			                <input type="text" ng-required="false" class="form-control" name="gitBranch" id="gitBranch"
			                       ng-model="deployment.gitBranch" placeholder="master"/>
			                <div class="fieldMsg hint">Specify the branch to use.</div>
		                </div>
	                </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
                        <div id="gitToken-wrapper">
                            <label>Git Token</label>
                            <input type="text" ng-required="false" class="form-control" name="gitToken" id="gitToken"
                                   ng-model="deployment.gitToken" placeholder="Token ID"/>
                            <div class="fieldMsg hint">Specify the token of the git repository.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper">
	                <td class="form-select">
		                <div id="gitPath-wrapper">
			                <label>Git Path</label>
			                <input type="text" ng-required="false" class="form-control" name="gitPath" id="gitPath"
			                       ng-model="deployment.gitPath" placeholder="/"/>
			                <div class="fieldMsg hint">Specify the path of the git repository.</div>
		                </div>
	                </td>
                </tr>
                </tbody>
            </table>
        </fieldset>
        <br />
        <fieldset ng-show="docker||kubernetes">
            <legend>NGINX</legend>
            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                <tbody>
                <tr class="form-group tr-code-wrapper" ng-show="kubernetes">
                    <td class="form-select">
                        <div id="nginxDeployType-wrapper">
                            <label>Service Deployment Type</label>
                            <select ng-required="kubernetes" name="nginxDeployType" id="nginxDeployType" ng-model="deployment.nginxDeployType">
                                <option value="NodePort">NodePort</option>
                                <option value="LoadBalancer">Load Balancer</option>
                            </select>
                            <div class="fieldMsg hint" ng-show="deployment.nginxDeployType==='LoadBalancer'">Load Balancer option uses automatic public IP / ELB provisioning when running Kubernetes cluster in AWS or GCE.</div>
                            <div class="fieldMsg hint" ng-show="deployment.nginxDeployType==='NodePort'">Current NGINX exposed port: {{deployment.nginxPort}}</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper" ng-show="deployment.nginxDeployType==='NodePort'">
                    <td class="form-select">
                        <div id="nginxPort-wrapper">
                            <label>NGINX Port</label>
                            <input type="number" ng-required="false" class="form-control" name="nginxPort"
                                   id="nginxPort" ng-model="deployment.nginxPort" placeholder="deployment.nginxPort" min="1"/>
                            <div class="fieldMsg hint">Specify the NGINX port number.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper" ng-show="deployment.nginxDeployType==='NodePort'">
                    <td class="form-select">
                        <div id="nginxSecurePort-wrapper">
                            <label>NGINX Secure Port</label>
                            <input type="number" ng-required="false" class="form-control" name="nginxSecurePort"
                                   id="nginxSecurePort" ng-model="deployment.nginxSecurePort" placeholder="deployment.nginxSecurePort" min="1"/>
                            <div class="fieldMsg hint">Specify the NGINX secure port number.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper" ng-show="deployment.nginxDeployType==='NodePort'">
                    <td class="form-select">
                        <div id="nginxSsl-wrapper">
                            <input class="f-left form-control" id="nginxSsl" name="nginxSsl" ng-model="deployment.nginxSsl"
                                   tooltip="Check the box if you want SSL certificates to be created with NGINX."
                                   ng-required="false" type="checkbox"/>&nbsp;<label>NGINX SSL</label>
                            <div class="fieldMsg hint">Specify if SSL certificates should be created with NGINX</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper" ng-show="deployment.nginxDeployType==='NodePort'&&kubernetes&&deployment.nginxSsl">
                    <td class="form-select">
                        <div id="nginxSsl-ssc">
                            <input class="f-left form-control" id="nginxSslCertGen" name="nginxSslCertGen" ng-model="deployment.generateSsc"
                                   tooltip="Check the box if you want SOAJS to create self signed certificates."
                                   ng-required="false" type="checkbox"/>&nbsp;<label>Self Signed Certificates Generation</label>
                            <div class="fieldMsg hint">Check the box if you want SOAJS to create self signed certificates.</div>
                        </div>
                    </td>
                </tr>
                <tr class="form-group tr-code-wrapper" ng-show="deployment.nginxDeployType==='NodePort'&&kubernetes&&deployment.nginxSsl&&!deployment.generateSsc">
                    <td class="form-select">
                        <div id="nginxSslSecret-wrapper">
                            <label>NGINX Certificates Kubernetes Secret</label>
                            <input type="string" ng-required="false" class="form-control" name="nginxKubeSecret"
                                   id="nginxKubeSecret" ng-model="deployment.nginxKubeSecret" placeholder="Kubernetes Secret"/>
                            <div class="fieldMsg hint">Specify the kubernetes secret containing the NGINX certificates.</div>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </fieldset>
	    <fieldset ng-show="(docker||kubernetes) && !deployment.mongoExt ">
		    <legend>Mongo</legend>
		    <table width="100%" cellspacing="0" cellpadding="0" border="0">
			    <tbody>
				    <tr class="form-group tr-code-wrapper">
					    <td class="form-select">
						    <div id="mongoExposedPort-wrapper">
							    <label>Mongo Exposed Port</label>
							    <input type="number" ng-required="false" class="form-control" name="mongoExposedPort"
							           id="mongoExposedPort" ng-model="deployment.mongoExposedPort" placeholder="Mongo Exposed Port"/>
							    <div class="fieldMsg hint">Specify the Mongo Exposed port number</div>
						    </div>
					    </td>
				    </tr>
			    </tbody>
		    </table>
	    </fieldset>
        <br />
        <fieldset ng-show="docker">
            <legend>Docker</legend>
            <table width="100%" cellspacing="0" cellpadding="0" border="0"width="100%" cellspacing="0" cellpadding="0" border="0">
                <tbody>
                <tr class="form-group tr-code-wrapper">
                    <td class="form-select">
{'fraction_non_alphanumeric': 0.12343954604975993, 'fraction_numerical': 0.003710170231340026, 'mean_word_length': 1.441963334043914, 'pattern_counts': {'":': 0, '<': 879, '<?xml version=': 0, '>': 881, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 44, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1669921', 'n_tokens_mistral': 12009, 'n_tokens_neox': 10916, 'n_words': 2370}