<commit_before>extends layout
block content
  div.wrapper-admin
    section.admin
      h1 #{title}
      form(method='post', action='/blog/admin/articles/#{article == undefined ? "new" : article.slug}')
        p
          label Título:
          input.nice(type='text', name='title', value='#{article === undefined ? "" : article.title}')
        p
          label Slug:
          input.nice(type='text', name='slug', value='#{article === undefined ? "" : article.slug}') 
        p
          label Autor:
          input.nice(type='text', name='author', value='#{article === undefined ? "" : article.author}') 
        p
          label Categoria:
          input.nice(type='text', name='category', value='#{article === undefined ? "" : article.category}') 
        p
          label Tags (separados por comas):
          input.nice(type='text', name='tags', value='#{article === undefined ? "" : article.tags}')
        p
          label Resumen:
          textarea.nice(type='text', name='abstract') #{article === undefined ? "" : article.abstract}
        p
          label Contenido del artículo:
          textarea.nice(type='text', name='content') #{article === undefined ? "" : article.content}
        p.action
          input.save(type='submit', value='#{article === undefined ? "Crear" : "Actualizar"}')
          - if (article !== undefined) {
            input(type="hidden", name="_method", value="put")
          - }
          a.link.comment(href='/blog/admin/articles/#{article.slug}/comments') Comentarios
          a.link(href='/blog/admin/articles') Volver
<commit_msg>Fixed error when create an article<commit_after>extends layout
block content
  div.wrapper-admin
    section.admin
      h1 #{title}
      form(method='post', action='/blog/admin/articles/#{article == undefined ? "new" : article.slug}')
        p
          label Título:
          input.nice(type='text', name='title', value='#{article === undefined ? "" : article.title}')
        p
          label Slug:
          input.nice(type='text', name='slug', value='#{article === undefined ? "" : article.slug}') 
        p
          label Autor:
          input.nice(type='text', name='author', value='#{article === undefined ? "" : article.author}') 
        p
          label Categoria:
          input.nice(type='text', name='category', value='#{article === undefined ? "" : article.category}') 
        p
          label Tags (separados por comas):
          input.nice(type='text', name='tags', value='#{article === undefined ? "" : article.tags}')
        p
          label Resumen:
          textarea.nice(type='text', name='abstract') #{article === undefined ? "" : article.abstract}
        p
          label Contenido del artículo:
          textarea.nice(type='text', name='content') #{article === undefined ? "" : article.content}
        p.action
          input.save(type='submit', value='#{article === undefined ? "Crear" : "Actualizar"}')
          - if (article !== undefined) {
            input(type="hidden", name="_method", value="put")
            a.link.comment(href='/blog/admin/articles/#{article.slug}/comments') Comentarios  
          - }
          
          a.link(href='/blog/admin/articles') Volver

{'fraction_non_alphanumeric': 0.17288557213930347, 'fraction_numerical': 0.0006218905472636816, 'mean_word_length': 2.46286329386437, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2326956', 'n_tokens_mistral': 901, 'n_tokens_neox': 904, 'n_words': 185}