<commit_before>- if !user_signed_in?
  Para subir un esquema por favor
  = link_to 'identifíquese con su clave única', user_clave_unica_omniauth_authorize_path
- else
  = form_for @schema do |f|
    - if @schema.errors.any?
      #error_explanation
        %h2
          = pluralize(@schema.errors.count, "error")
          prohibited this schema from being saved:
        %ul
          - @schema.errors.full_messages.each do |message|
            %li= message
    .instance-panel
      .container
        .col-md-12{:class => "text-center"}
          .box-new-schema-file
            .box-title
              %span +
              %p Crear Esquema
            .input-group.box-input-file
              %label#label-file.input-group-btn
                %span#select-file.btn.btn-action-red.btn-lg
                  Seleccionar Archivo
                = f.file_field :spec_file, :style => 'display: none;', readonly: 'readonly'
              .field
                %input#input-file.form-control{:readonly => 'readonly', :type => 'text'}
              %span#remove-file
                %span.glyphicon.glyphicon-remove{":aria-hidden" => true}
    .container.new-schemas-container
      .row
        .col-md-6
          %h3 Indica nombre para el esquema
          = f.text_field :name, { :class => "form-control input-lg", :placeholder => "Ex. Patente Comercial"}
        .col-md-6
          %h3 Indica Categoría
          = f.collection_select :schema_category_id, SchemaCategory.all, :id, :name, {:include_blank => false}, {:class => 'form-control input-lg'}
          %br
          .text-right
            = f.submit 'Crear Esquema', class: 'btn btn-action-red btn-lg'<commit_msg>Add id to 'Crear Esquema' button on schema#new<commit_after>- if !user_signed_in?
  Para subir un esquema por favor
  = link_to 'identifíquese con su clave única', user_clave_unica_omniauth_authorize_path
- else
  = form_for @schema do |f|
    - if @schema.errors.any?
      #error_explanation
        %h2
          = pluralize(@schema.errors.count, "error")
          prohibited this schema from being saved:
        %ul
          - @schema.errors.full_messages.each do |message|
            %li= message
    .instance-panel
      .container
        .col-md-12{:class => "text-center"}
          .box-new-schema-file
            .box-title
              %span +
              %p Crear Esquema
            .input-group.box-input-file
              %label#label-file.input-group-btn
                %span#select-file.btn.btn-action-red.btn-lg
                  Seleccionar Archivo
                = f.file_field :spec_file, :style => 'display: none;', readonly: 'readonly'
              .field
                %input#input-file.form-control{:readonly => 'readonly', :type => 'text'}
              %span#remove-file
                %span.glyphicon.glyphicon-remove{":aria-hidden" => true}
    .container.new-schemas-container
      .row
        .col-md-6
          %h3 Indica nombre para el esquema
          = f.text_field :name, { :class => "form-control input-lg", :placeholder => "Ex. Patente Comercial"}
        .col-md-6
          %h3 Indica Categoría
          = f.collection_select :schema_category_id, SchemaCategory.all, :id, :name, {:include_blank => false}, {:class => 'form-control input-lg'}
          %br
          .text-right
            = f.submit 'Crear Esquema', class: 'btn btn-action-red btn-lg',
              id: "create-schema"
{'fraction_non_alphanumeric': 0.12244897959183673, 'fraction_numerical': 0.004081632653061225, 'mean_word_length': 1.890480202190396, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 21, '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': '3927826', 'n_tokens_mistral': 1093, 'n_tokens_neox': 1059, 'n_words': 228}