<commit_before><%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="/tags/mifos-html" prefix="mifos"%>
<%@taglib uri="http://struts.apache.org/tags-html-el" prefix="html-el"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<jsp:useBean id="newQuestionChoices" type="java.util.Collection" scope="session" />
<tiles:insert definition=".view">
<tiles:put name="body" type="string">
	<script src="pages/application/surveys/js/questions.js" type="text/javascript"></script>
			<table width="95%" border="0" cellpadding="0" cellspacing="0">
			  <tr>
          		<td class="bluetablehead05">
	             <span class="fontnormal8pt">
	          	 	<html-el:link action="AdminAction.do?method=load&randomNUm=${sessionScope.randomNUm}">
						<mifos:mifoslabel name="Surveys.linkAdmin" bundle="SurveysUIResources"/>	
					</html-el:link> /
	              </span>
	              <span class="fontnormal8ptbold">
     				<mifos:mifoslabel name="Surveys.AddQuestions" bundle="SurveysUIResources"/>
	              </span>
    	        </td>
	    	  </tr>
			</table>
      <table width="95%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="70%" align="left" valign="middle" class="paddingL15T15"><table width="98%" border="0" cellspacing="0" cellpadding="3">
            <tr>
              <td width="35%" class="headingorange"><mifos:mifoslabel name="Surveys.AddQuestions" bundle="SurveysUIResources"/></td>
            </tr>

          </table>     
          <br>

<font class="fontnormalRedBold"><html-el:errors bundle="SurveysUIResources" /></font>
<!-- actual form content -->
            <html-el:form action="/questionsAction.do?method=defineQuestions" focus="questionText">
            <table width="98%" border="0" cellpadding="3" cellspacing="0">
              <tr class="fontnormal">
                <td width="24%" align="right"><mifos:mifoslabel name="Surveys.QuestionName" bundle="SurveysUIResources" mandatory="yes"/></td>
                <td width="76%"><html-el:text property="value(shortName)"/></td>
              </tr>
              <tr class="fontnormal">
                <td width="24%" align="right"><mifos:mifoslabel name="Surveys.Question" bundle="SurveysUIResources" mandatory="yes"/></td>
                <td width="76%"><html-el:text property="value(questionText)"/></td>
              </tr>

              <tr class="fontnormal">
                <td align="right"><mifos:mifoslabel name="Surveys.Answertype" bundle="SurveysUIResources" mandatory="yes"/></td>

                <td><html-el:select property="value(answerType)" styleId="answerType" onchange="setDisable();">
                  <html-el:option value="1"><mifos:mifoslabel name="Surveys.Multiselect"/></html-el:option>
                  <html-el:option value="2"><mifos:mifoslabel name="Surveys.Freetext"/></html-el:option>
                  <html-el:option value="3"><mifos:mifoslabel name="Surveys.Number"/></html-el:option>
                  <html-el:option value="4"><mifos:mifoslabel name="Surveys.Singleselect"/></html-el:option>
                  <html-el:option value="5"><mifos:mifoslabel name="Surveys.Date"/></html-el:option><commit_msg><NAME>'s patch to fix issue 1719-- Thanks, Steve!<commit_after><%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="/tags/mifos-html" prefix="mifos"%>
<%@taglib uri="http://struts.apache.org/tags-html-el" prefix="html-el"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<jsp:useBean id="newQuestionChoices" type="java.util.Collection" scope="session" />
<tiles:insert definition=".view">
<tiles:put name="body" type="string">
	<script src="pages/application/surveys/js/questions.js" type="text/javascript"></script>
			<table width="95%" border="0" cellpadding="0" cellspacing="0">
			  <tr>
          		<td class="bluetablehead05">
	             <span class="fontnormal8pt">
	          	 	<html-el:link action="AdminAction.do?method=load&randomNUm=${sessionScope.randomNUm}">
						<mifos:mifoslabel name="Surveys.linkAdmin" bundle="SurveysUIResources"/>	
					</html-el:link> /
	              </span>
	              <span class="fontnormal8ptbold">
     				<mifos:mifoslabel name="Surveys.AddQuestions" bundle="SurveysUIResources"/>
	              </span>
    	        </td>
	    	  </tr>
			</table>
      <table width="95%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="70%" align="left" valign="middle" class="paddingL15T15"><table width="98%" border="0" cellspacing="0" cellpadding="3">
            <tr>
              <td width="35%" class="headingorange"><mifos:mifoslabel name="Surveys.AddQuestions" bundle="SurveysUIResources"/></td>
            </tr>

          </table>     
          <br>

<font class="fontnormalRedBold"><html-el:errors bundle="SurveysUIResources" /></font>
<!-- actual form content -->
            <html-el:form action="/questionsAction.do?method=defineQuestions" focus="questionText">
            <table width="98%" border="0" cellpadding="3" cellspacing="0">
              <tr class="fontnormal">
                <td width="24%" align="right"><mifos:mifoslabel name="Surveys.QuestionName" bundle="SurveysUIResources" mandatory="yes"/></td>
                <td width="76%"><mifos:mifosalphanumtext property="value(shortName)" maxlength="50" /></td>
              </tr>
              <tr class="fontnormal">
                <td width="24%" align="right"><mifos:mifoslabel name="Surveys.Question" bundle="SurveysUIResources" mandatory="yes"/></td>
                <td width="76%"><mifos:mifosalphanumtext property="value(questionText)" maxlength="1000" /></td>
              </tr>

              <tr class="fontnormal">
                <td align="right"><mifos:mifoslabel name="Surveys.Answertype" bundle="SurveysUIResources" mandatory="yes"/></td>

                <td><html-el:select property="value(answerType)" styleId="answerType" onchange="setDisable();">
                  <html-el:option value="1"><mifos:mifoslabel name="Surveys.Multiselect"/></html-el:option>
                  <html-el:option value="2"><mifos:mifoslabel name="Surveys.Freetext"/></html-el:option>
                  <html-el:option value="3"><mifos:mifoslabel name="Surveys.Number"/></html-el:option>
                  <html-el:option value="4"><mifos:mifoslabel name="Surveys.Singleselect"/></html-el:option>
                  <html-el:option value="5"><mifos:mifoslabel name="Surveys.Date"/></html-el:option>
{'fraction_non_alphanumeric': 0.1855210574853981, 'fraction_numerical': 0.01537042729787888, 'mean_word_length': 3.2418513689700132, 'pattern_counts': {'":': 0, '<': 158, '<?xml version=': 0, '>': 158, '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': '3317967', 'n_tokens_mistral': 2252, 'n_tokens_neox': 2088, 'n_words': 288}