<commit_before><%@ page import="photogallery.Photo" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <title>Edit Photo</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list">List</g:link></span>
            <span class="menuButton"><g:link class="create" action="create">New</g:link></span>
        </div>
        <div class="body">
            <h1></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${photo}">
            <div class="errors">
                <g:renderErrors bean="${photo}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post"  enctype="multipart/form-data">
                <g:hiddenField name="id" value="${photo?.id}" />
                <g:hiddenField name="version" value="${photo?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="thumbnail">Thumbnail</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: photo, field: 'thumbnail', 'errors')}">
                                    <input type="file" id="thumbnail" name="thumbnail" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="caption">Caption</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: photo, field: 'caption', 'errors')}">
                                    <g:textField name="caption" value="${photo?.caption}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="image">Image</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: photo, field: 'image', 'errors')}">
                                    <input type="file" id="image" name="image" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="width">Width</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: photo, field: 'width', 'errors')}">
                                    <g:textField name="width" value="${fieldValue(bean: photo, field: 'width')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="height">Height</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: photo, field: 'height', 'errors')}">
                                    <g:textField name="height" value="${fieldValue(bean: photo, field: 'height')}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="Update" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="Delete" onclick="return confirm('Are you sure?');" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
<commit_msg>edit photo.gsp updated<commit_after><%@ page import="photogallery.Photo" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <title>Edit Photo</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list">List</g:link></span>
            <span class="menuButton"><g:link class="create" action="create">New</g:link></span>
        </div>
        <div class="body">
            <h1></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${photo}">
            <div class="errors">
                <g:renderErrors bean="${photo}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post"  enctype="multipart/form-data">
                <g:hiddenField name="id" value="${photo?.id}" />
                <g:hiddenField name="version" value="${photo?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>                      
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="caption">Caption</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: photo, field: 'caption', 'errors')}">
                                    <g:textField name="caption" value="${photo?.caption}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="image">Image</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: photo, field: 'image', 'errors')}">
                                    <input type="file" id="image" name="image" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="width">Width</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: photo, field: 'width', 'errors')}">
                                    <g:textField name="width" value="${fieldValue(bean: photo, field: 'width')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="height">Height</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: photo, field: 'height', 'errors')}">
                                    <g:textField name="height" value="${fieldValue(bean: photo, field: 'height')}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="Update" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="Delete" onclick="return confirm('Are you sure?');" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>

{'fraction_non_alphanumeric': 0.15274924471299095, 'fraction_numerical': 0.0007250755287009063, 'mean_word_length': 1.0515617253346554, 'pattern_counts': {'":': 0, '<': 196, '<?xml version=': 0, '>': 196, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 36, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5876676', 'n_tokens_mistral': 2063, 'n_tokens_neox': 1947, 'n_words': 382}