<commit_before><#-- @ftlvariable name="model" type="ru.qatools.school.baguette.models.Post" -->
<#import "/layouts/main.ftl" as layout />
<@layout.layout title="Edit Post">
<div>
    <h1>
        <#if model.isNew()>Add new<#else>Edit</#if> post
    </h1>

    <form action="/post<#if !model.isNew()>/edit/${model.id}</#if>" method="post">
        <div>
            <label for="input-post-title">Title</label>
            <input id="input-post-title" name="title" type="text" value="${model.title!""}">
        </div>
        <div>
            <label for="textarea-post-body">Body</label>
            <textarea id="textarea-post-body" name="body" rows="10" placeholder="">${model.body!""}</textarea><commit_msg>Added trailing space to fix 405 error<commit_after><#-- @ftlvariable name="model" type="ru.qatools.school.baguette.models.Post" -->
<#import "/layouts/main.ftl" as layout />
<@layout.layout title="Edit Post">
<div>
    <h1>
        <#if model.isNew()>Add new<#else>Edit</#if> post
    </h1>

    <form action="/post/<#if !model.isNew()>edit/${model.id}</#if>" method="post">
        <div>
            <label for="input-post-title">Title</label>
            <input id="input-post-title" name="title" type="text" value="${model.title!""}">
        </div>
        <div>
            <label for="textarea-post-body">Body</label>
            <textarea id="textarea-post-body" name="body" rows="10" placeholder="">${model.body!""}</textarea>
{'fraction_non_alphanumeric': 0.22160664819944598, 'fraction_numerical': 0.007617728531855956, 'mean_word_length': 3.164265129682997, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '5303185', 'n_tokens_mistral': 504, 'n_tokens_neox': 486, 'n_words': 83}