<commit_before><%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="model.mainObjects.*, model.inTheLab.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>Insert title here</title>
		<%
			String username = (String) request.getSession().getAttribute("logged");
			Person p = UserManager.getInstance().getUser(username);
			p.setCurrentLab(LaboratoryManager.getInstatnce().getLab(p.getLab_id()));
			DentalLaboratory dl =  p.getCurrentLab();
		%>
	</head>
	<body>
		<form action="AddServiceServlet" method="POST">
			<p>Service short name	</p>	<input type="text" name="service_short_name" 	required>
			<p>Service long name	</p>	<input type="text" name="service_long_name" 	required>
			<p>Service price		</p>	<input type="text" name="service_price" 		required>
			<input 	type="submit" value="Submit" href="manager_create_service.jsp"					>
		</form>
		<table border="solid">
			<tr>
				<th></th>
				<th>Long name</th>
				<th>Short name</th>
				<th>Price</th>
			</tr>
				<%for(Service s : dl.getAllServices().values()){	%>	
					<tr><commit_msg>fixed create service jsp to send to log in if session is missing<commit_after><%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="model.mainObjects.*, model.inTheLab.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>Insert title here</title>
		<%
			String username = (String) request.getSession().getAttribute("logged");
			RequestDispatcher rd = null;
			if (username == null) {
				rd = request.getRequestDispatcher("login.html");
				rd.forward(request, response);
			}
			if (request.getSession().getAttribute("lab") != null) {
				rd = request.getRequestDispatcher("manager_main.jsp");
				rd.forward(request, response);
			}
			Person p = UserManager.getInstance().getUser(username);
			p.setCurrentLab(LaboratoryManager.getInstatnce().getLab(p.getLab_id()));
			DentalLaboratory dl =  p.getCurrentLab();
		%>
	</head>
	<body>
		<form action="AddServiceServlet" method="POST">
			<p>Service short name	</p>	<input type="text" name="service_short_name" 	required>
			<p>Service long name	</p>	<input type="text" name="service_long_name" 	required>
			<p>Service price		</p>	<input type="text" name="service_price" 		required>
			<input 	type="submit" value="Submit" href="manager_create_service.jsp"					>
		</form>
		<table border="solid">
			<tr>
				<th></th>
				<th>Long name</th>
				<th>Short name</th>
				<th>Price</th>
			</tr>
				<%for(Service s : dl.getAllServices().values()){	%>	
					<tr>
{'fraction_non_alphanumeric': 0.18313253012048192, 'fraction_numerical': 0.014457831325301205, 'mean_word_length': 4.341911764705882, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6262670', 'n_tokens_mistral': 1205, 'n_tokens_neox': 1023, 'n_words': 196}