<commit_before>@(form: Form[PullRequest], project: Project, pullRequest:models.PullRequest, result:models.PullRequestMergeResult)

@import utils.JodaDateUtil
@import utils.TemplateHelper._
@import utils.AccessControl._
@import models.enumeration
@import playRepository.GitCommit
@import scala.collection.Map

@implicitField = @{ helper.FieldConstructor(simpleForm) }

@getCodeURL(project: Project) = @{
    if(session == null){
        CodeApp.getURL(project.owner, project.name)
    } else {
        defining(ProjectUser.roleOf(session.get("loginId"), project)) { role =>
            if(role == "manager" || role == "member"){
                CodeApp.getURL(project.owner, project.name).replace("://", "://" + session.get("loginId") + "@")
            } else {
                CodeApp.getURL(project.owner, project.name)
            }
        }
    }
}

<input type="text" name="title" id="title" placeholder="" maxlength="maxlength" tabindex="1" class="text" value="@pullRequest.title">
<div style="position: relative;">
    @common.editor("body", pullRequest.body, Map("tabindex"->"2"))
</div>
@common.fileUploader(ResourceType.PULL_REQUEST, null)
@common.markdown(project)

<div class="actions">
    <button type="submit" class="ybtn ybtn-success">@Messages("button.save")</button>
    <a href="javascript:history.back();" class="ybtn">@Messages("button.cancel")</a><commit_msg>PullRequest: add missing attribute to textarea<commit_after>@(form: Form[PullRequest], project: Project, pullRequest:models.PullRequest, result:models.PullRequestMergeResult)

@import utils.JodaDateUtil
@import utils.TemplateHelper._
@import utils.AccessControl._
@import models.enumeration
@import playRepository.GitCommit
@import scala.collection.Map

@implicitField = @{ helper.FieldConstructor(simpleForm) }

@getCodeURL(project: Project) = @{
    if(session == null){
        CodeApp.getURL(project.owner, project.name)
    } else {
        defining(ProjectUser.roleOf(session.get("loginId"), project)) { role =>
            if(role == "manager" || role == "member"){
                CodeApp.getURL(project.owner, project.name).replace("://", "://" + session.get("loginId") + "@")
            } else {
                CodeApp.getURL(project.owner, project.name)
            }
        }
    }
}

<input type="text" name="title" id="title" placeholder="" maxlength="maxlength" tabindex="1" class="text" value="@pullRequest.title">
<div style="position: relative;">
    @common.editor("body", pullRequest.body, Map("tabindex"->"2", "id"->"body"))
</div>
@common.fileUploader(ResourceType.PULL_REQUEST, null)
@common.markdown(project)

<div class="actions">
    <button type="submit" class="ybtn ybtn-success">@Messages("button.save")</button>
    <a href="javascript:history.back();" class="ybtn">@Messages("button.cancel")</a>
{'fraction_non_alphanumeric': 0.1728922091782284, 'fraction_numerical': 0.001422981145499822, 'mean_word_length': 4.449612403100775, 'pattern_counts': {'":': 4, '<': 19, '<?xml version=': 0, '>': 24, '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': '6629974', 'n_tokens_mistral': 870, 'n_tokens_neox': 858, 'n_words': 141}