<commit_before>@(message: String)(projectForm: Form[Project], projectInst:Project)

@import helper._
@implicitFieldConstructor = @{ FieldConstructor(twitterBootstrapInput.render) } 


@projectMngMain(message, projectInst) {
       @form(action = routes.ProjectApp.saveSetting(projectInst.name), 'class -> "form-horizontal", 'enctype -> "multipart/form-data", 'id -> "saveSetting"){
        <div class="row">
            <fieldset>                
                <div class="icon-question-sign" href = "#" id="project_name" rel="popover"
                    data-content="@Messages("project.name.alert")"
                    data-original-title="@Messages("project.name.rule")"
                ></div>
                @inputText(
                    projectForm("name"),
                    '_label -> Messages("project.name"),
                    '_help -> Messages("input.mandatory")
                )
                
                @textarea(
                    projectForm("overview"),
                    '_label -> Messages("project.description"),
                    '_help -> Messages("input.optional")
                )
                
                <div class="thumbnail">
                @if(projectForm("logoPath").value != null) {
                    <img src="http://localhost:9000/assets/uploadFiles/@projectForm("logoPath").value" alt="" width="234" height="168">
                    
                } else {
                    <img src="@routes.Assets.at("images/project_image_default.jpg")" alt="" width="234" height="168">
                }
                    <p>@Messages("project.logo.type")</p>
                    <p>@Messages("project.logo.fileSize")</p>
                    <p>@Messages("project.logo.size")</p>
                </div>                                
                                
                @inputFile(
                    projectForm("logoPath"),
                    '_label -> Messages("project.logo")
                )
                
                <div class="icon-question-sign" href = "#" id="share_option_explanation" rel="popover"
                    data-content="@Messages("project.shareOption.private.description")"
                    data-original-title="@Messages("project.shareOption")"
                ></div>
                @inputRadioGroup(
                    projectForm("share_option"),
                    options = options("false"->Messages("project.shareOption.private"), "true"->Messages("project.shareOption.public")),
                    '_label -> Messages("project.shareOption")
                )
                
                @inputText(
                    projectForm("url"),
                    '_label -> Messages("project.url"),
                    '_showConstraints -> false
                )
            </fieldset>
        </div>
        <div class="row">
            <div class="actions">
                <input type="submit" class="btn btn-primary" value="저장" id="save">
            </div>
        </div>
    }
    
   
    <table class="table table-bordered">
        <thead>
            <tr>
                <th><strong>@Messages("project.delete")</strong></th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                    <p align="left"><strong>@Messages("project.delete.description")</strong></p>
                    <p align="right">
                        <input type="checkbox" id="acceptDeletion"> <span>@Messages("project.delete.accept")</span>
                    </p>
                    <a id="deletion" data-toggle="modal" href="#alertDeletion" class="btn btn-danger">@Messages("project.delete")</a>
                </td>    
            </tr>
        </tbody>
    </table>
    
    <div class="modal hide" id="alertDeletion">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal">×</button>
            <h3>@Messages("project.delete.requestion")</h3>
        </div>
        <div class="modal-body">
            <p> @Messages("project.delete.description")</p>
            <p> @Messages("project.delete.reaccept") </p>
        </div>
        <div class="modal-footer">
            <a href="#" class="btn" data-dismiss="modal">@Messages("button.no")</a>
            <a href="@routes.ProjectApp.deleteProject(projectInst.name)" class="btn btn-danger">@Messages("button.yes")</a>
        </div>
    </div>
    
    <script>  
        $(document).ready(function(){
            var reg = /\.(gif|bmp|jpg|jpeg|png)$/i;
            var reg_name = /^[a-zA-Z0-9_]*$/;
            $("input[id='logoPath']").change(function(){
                if (!reg.test($(this).val())) { 
                    alert(@Messages("project.logo.alert"));
                    $(this).val('');
                } else { 
                    return $("form[id='saveSetting']").submit(); 
                }     
            });
            $("#save").click(function() {
                if(!reg_name.test($("input[id='name']").val())) {
                    alert(@Messages("project.name.alert"));
                    return false;
                } else {
                    return true;
                }
            });
            
            $("#project_name").popover();
            $("#share_option_explanation").popover();
            $("#terms").popover();
            $("#deletion").click(function() {
                if($("#acceptDeletion").is(":checked")) {
                    return true;    
                }else {
                    alert(@Messages("project.delete.alert"));
                    return false;
                } 
            });
        })
    </script>    
}<commit_msg>Modify broken jQueyr in project setting<commit_after>@(message: String)(projectForm: Form[Project], projectInst:Project)

@import helper._
@implicitFieldConstructor = @{ FieldConstructor(twitterBootstrapInput.render) } 


@projectMngMain(message, projectInst) {
       @form(action = routes.ProjectApp.saveSetting(projectInst.name), 'class -> "form-horizontal", 'enctype -> "multipart/form-data", 'id -> "saveSetting"){
        <div class="row">
            <fieldset>                
                <div class="icon-question-sign" href = "#" id="project_name" rel="popover"
                    data-content="@Messages("project.name.alert")"
                    data-original-title="@Messages("project.name.rule")"
                ></div>
                @inputText(
                    projectForm("name"),
                    '_label -> Messages("project.name"),
                    '_help -> Messages("input.mandatory")
                )
                
                @textarea(
                    projectForm("overview"),
                    '_label -> Messages("project.description"),
                    '_help -> Messages("input.optional")
                )
                
                <div class="thumbnail">
                @if(projectForm("logoPath").value != null) {
                    <img src="http://localhost:9000/assets/uploadFiles/@projectForm("logoPath").value" alt="" width="234" height="168">
                    
                } else {
                    <img src="@routes.Assets.at("images/project_image_default.jpg")" alt="" width="234" height="168">
                }
                    <p>@Messages("project.logo.type")</p>
                    <p>@Messages("project.logo.fileSize")</p>
                    <p>@Messages("project.logo.size")</p>
                </div>                                
                                
                @inputFile(
                    projectForm("logoPath"),
                    '_label -> Messages("project.logo")
                )
                
                <div class="icon-question-sign" href = "#" id="share_option_explanation" rel="popover"
                    data-content="@Messages("project.shareOption.private.description")"
                    data-original-title="@Messages("project.shareOption")"
                ></div>
                @inputRadioGroup(
                    projectForm("share_option"),
                    options = options("false"->Messages("project.shareOption.private"), "true"->Messages("project.shareOption.public")),
                    '_label -> Messages("project.shareOption")
                )
                
                @inputText(
                    projectForm("url"),
                    '_label -> Messages("project.url"),
                    '_showConstraints -> false
                )
            </fieldset>
        </div>
        <div class="row">
            <div class="actions">
                <input type="submit" class="btn btn-primary" value="저장" id="save">
            </div>
        </div>
    }
    
   
    <table class="table table-bordered">
        <thead>
            <tr>
                <th><strong>@Messages("project.delete")</strong></th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                    <p align="left"><strong>@Messages("project.delete.description")</strong></p>
                    <p align="right">
                        <input type="checkbox" id="acceptDeletion"> <span>@Messages("project.delete.accept")</span>
                    </p>
                    <a id="deletion" data-toggle="modal" href="#alertDeletion" class="btn btn-danger">@Messages("project.delete")</a>
                </td>    
            </tr>
        </tbody>
    </table>
    
    <div class="modal hide" id="alertDeletion">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal">×</button>
            <h3>@Messages("project.delete.requestion")</h3>
        </div>
        <div class="modal-body">
            <p> @Messages("project.delete.description")</p>
            <p> @Messages("project.delete.reaccept") </p>
        </div>
        <div class="modal-footer">
            <a href="#" class="btn" data-dismiss="modal">@Messages("button.no")</a>
            <a href="@routes.ProjectApp.deleteProject(projectInst.name)" class="btn btn-danger">@Messages("button.yes")</a>
        </div>
    </div>

    <script>  
        $(document).ready(function(){
            var reg = /\.(gif|bmp|jpg|jpeg|png)$/i;
            var reg_name = /^[a-zA-Z0-9_]*$/;
            $("input[id='logoPath']").change(function(){
                if (!reg.test($(this).val())) { 
                    alert('@Messages("project.logo.alert")');
                    $(this).val('');
                } else { 
                    return $("form[id='saveSetting']").submit(); 
                }     
            });
            $("#save").click(function() {
                if(!reg_name.test($("input[id='name']").val())) {
                    alert('@Messages("project.name.alert")');
                    return false;
                } else {
                    return true;
                }
            });
            
            $("#project_name").popover();
            $("#share_option_explanation").popover();
            $("#terms").popover();
            $("#deletion").click(function() {
                if($("#acceptDeletion").is(":checked")) {
                    return true;    
                }else {
                    alert('@Messages("project.delete.alert")');
                    return false;
                } 
            });
        })
    </script>    
}
{'fraction_non_alphanumeric': 0.1613751973338011, 'fraction_numerical': 0.0035081564637782846, 'mean_word_length': 1.4220475785896347, 'pattern_counts': {'":': 2, '<': 147, '<?xml version=': 0, '>': 173, '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': '4651887', 'n_tokens_mistral': 3064, 'n_tokens_neox': 2857, 'n_words': 399}