<commit_before>.description-container
  .description-body
    - too_long = true if model.description && model.description.length > 500

    <!--[if IE 7]>
    .long-description.model-description
      ~ markdown(model.description)
    <![endif]-->
    
    <!--[if !IE 7]><!-->
    .short-description.model-description
      ~ markdown(truncate(model.description, length: 500, omission: '...', separator: ' '))
    .long-description.model-description{style: "display: none"}
      ~ markdown(model.description)
    = link_to "Show More", "#", class: 'see-more' if too_long
    <!--<![endif]-->
    
    - if can? :edit_description, model
      = link_to "Edit #{model_name} info", "#", class: "edit-description edit-#{model_name}-description"

  - if can? :edit_description, model
    = form_tag send("edit_description_#{model_name}_path"), :id => "description-edit-form", :class => "hidden", :remote => true do |f|
      = hidden_field_tag 'id'
      .control-group
        - class_str = 'inputError limit-250' if model_name == "group"
        = text_area_tag 'description', model.description, {id: 'description-input', class: class_str, :autofocus => true }
        - unless model_name == "discussion"
          .character-counter
      .save-buttons.clearfix
        = submit_tag "Save", class: 'btn btn-small btn-grey run-validations', id: 'add-description-submit', :data => {:disable_with => "Saving"}
        = link_to "Cancel", "#", id: 'cancel-add-description'<commit_msg>Fixed implicit parameter for edit_description path<commit_after>.description-container
  .description-body
    - too_long = true if model.description && model.description.length > 500

    <!--[if IE 7]>
    .long-description.model-description
      ~ markdown(model.description)
    <![endif]-->
    
    <!--[if !IE 7]><!-->
    .short-description.model-description
      ~ markdown(truncate(model.description, length: 500, omission: '...', separator: ' '))
    .long-description.model-description{style: "display: none"}
      ~ markdown(model.description)
    = link_to "Show More", "#", class: 'see-more' if too_long
    <!--<![endif]-->
    
    - if can? :edit_description, model
      = link_to "Edit #{model_name} info", "#", class: "edit-description edit-#{model_name}-description"

  - if can? :edit_description, model
    = form_tag send("edit_description_#{model_name}_path", model), :id => "description-edit-form", :class => "hidden", :remote => true do |f|
      = hidden_field_tag 'id'
      .control-group
        - class_str = 'inputError limit-250' if model_name == "group"
        = text_area_tag 'description', model.description, {id: 'description-input', class: class_str, :autofocus => true }
        - unless model_name == "discussion"
          .character-counter
      .save-buttons.clearfix
        = submit_tag "Save", class: 'btn btn-small btn-grey run-validations', id: 'add-description-submit', :data => {:disable_with => "Saving"}
        = link_to "Cancel", "#", id: 'cancel-add-description'
{'fraction_non_alphanumeric': 0.16544607190412783, 'fraction_numerical': 0.007323568575233023, 'mean_word_length': 3.2624113475177303, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 27, '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': '6261331', 'n_tokens_mistral': 946, 'n_tokens_neox': 911, 'n_words': 203}