<commit_before><#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->

<#-- Upload a replacement main image for an Individual. -->

${scripts.add("/js/jquery.js")}
${scripts.add("/js/imageUpload/imageUploadUtils.js")}



${stylesheets.addFromTheme("/uploadImages.css")}

<#if errorMessage??>
   <script type="text/javascript">  
    window.onload = load;  
	function load(){  
 		alert("${errorMessage}");
 		}
 	</script>
</#if>

<div id="photoUploadContainer">
       <h2>Photo Upload</h2>
       <div id="photoUploadDefaultImageContainer">
              <h6>Current Photo</h6>
              <img src="${thumbnailUrl}" width="115" height="115" />
       <a href='javascript:delete_photo("${deleteUrl}");'>Delete photo</a></div>
       <div id="photoUploadForm">
              <form action="${formAction}" enctype="multipart/form-data" method="post">
                     <label>Replace Photo <span> (JPEG, GIF or PNG)</span></label>
                     <input  type="file" name="datafile" size="30">
                     <input   type="submit" value="Upload photo"> or <a class="cancelUpload" href="${cancelUrl}">Cancel</a>
              </form>
       </div>
</div><commit_msg>deleted image attributes for width and height, so preexisting images are displayed correctly<commit_after><#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->

<#-- Upload a replacement main image for an Individual. -->

${scripts.add("/js/jquery.js")}
${scripts.add("/js/imageUpload/imageUploadUtils.js")}



${stylesheets.addFromTheme("/uploadImages.css")}

<#if errorMessage??>
   <script type="text/javascript">  
    window.onload = load;  
	function load(){  
 		alert("${errorMessage}");
 		}
 	</script>
</#if>

<div id="photoUploadContainer">
       <h2>Photo Upload</h2>
       <div id="photoUploadDefaultImageContainer">
              <h6>Current Photo</h6>
              <img src="${thumbnailUrl}" />
       <a href='javascript:delete_photo("${deleteUrl}");'>Delete photo</a></div>
       <div id="photoUploadForm">
              <form action="${formAction}" enctype="multipart/form-data" method="post">
                     <label>Replace Photo <span> (JPEG, GIF or PNG)</span></label>
                     <input  type="file" name="datafile" size="30">
                     <input   type="submit" value="Upload photo"> or <a class="cancelUpload" href="${cancelUrl}">Cancel</a>
              </form>
       </div>
</div>
{'fraction_non_alphanumeric': 0.17540322580645162, 'fraction_numerical': 0.007258064516129033, 'mean_word_length': 2.931854199683043, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, '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': '1921550', 'n_tokens_mistral': 766, 'n_tokens_neox': 736, 'n_words': 165}