<commit_before>.row.publisher#publisher{class: ((aspect == :profile || publisher_open?) ? "mention_popup" : "closed")}
  .content_creation
    = form_for(StatusMessage.new) do |status|
      = status.error_messages
      %params
        .publisher-textarea-wrapper#publisher-textarea-wrapper
          - if current_user.getting_started?
            = status.text_area :text, :rows => 2, :value => h(publisher_formatted_text),
              :tabindex => 1, :placeholder => "#{t('contacts.index.start_a_conversation')}...",
              "data-title" => popover_with_close_html("1. " + t("shared.public_explain.share")),
              "data-content" => t("shared.public_explain.new_user_welcome_message"),
              "class" => "form-control mention-textarea"
          - else
            = status.text_area :text, :rows => 2, :value => h(publisher_formatted_text),
              :tabindex => 1, :placeholder => "#{t('contacts.index.start_a_conversation')}...",
              "class" => "form-control mention-textarea"
          .typeahead-mention-box-wrap
            %input.typeahead-mention-box.hidden{type: "text"}

          .container-fluid.photodropzone-container#photodropzone_container
            %ul#photodropzone
          .location-container.form-group{style: "padding: 4px 6px;"}
            = hidden_field :location, :coords
          .poll-creator-container#poll_creator_container
            -# handlebars template
          #button_container
            .publisher-buttonbar#publisher-images
              .btn.btn-link.poll-creator#poll_creator{title: t("shared.publisher.poll.add_a_poll")}
                %i.entypo-bar-graph
              .btn.btn-link.file-upload#file-upload
                %i.entypo-camera.publisher_image
              .btn.btn-link.locator#locator{title: t("shared.publisher.get_location")}
                %i.entypo-location.publisher_image
              .btn.btn-link.hide-location#hide_location{title: t("shared.publisher.remove_location")}
                %i.entypo-cross.publisher_image
            %span.markdownIndications
              != t("shared.publisher.formatWithMarkdown", markdown_link: link_to(t("help.markdown"),
                  "https://diasporafoundation.org/formatting", target: :blank))

      - if public_selected?(selected_aspects)
        = hidden_field_tag "aspect_ids[]", "public"
      - elsif all_aspects_selected?(selected_aspects)
        = hidden_field_tag "aspect_ids[]", "all_aspects"
      - else
        - for aspect_id in aspect_ids
          = hidden_field_tag "aspect_ids[]", aspect_id.to_s

      .hidden#publisher_spinner
        .loader
          .spinner
      .options_and_submit.col-sm-12
        .public_toggle.clearfix
          .btn-toolbar.pull-right
            = render partial: "aspects/aspect_dropdown", locals: {selected_aspects: selected_aspects}
            %button.btn.btn-group.btn-primary#submit= t("shared.publisher.share")

          .btn-toolbar.pull-right#publisher-service-icons
            - if current_user.services
              - current_user.services.each do |service|
                = service_button(service)
            .btn.btn-link.question_mark{title: t("shared.public_explain.manage"),
                           data: {toggle: "modal", target: "#publicExplainModal"}}
              %i.entypo-cog

    = link_to "", contacts_path(aspect_ids: aspect_ids), class: "selected_contacts_link hidden"

= render "shared/public_explain"<commit_msg>Fix default aspects on profile page and bookmarklet publisher<commit_after>.row.publisher#publisher{class: ((aspect == :profile || publisher_open?) ? "mention_popup" : "closed")}
  .content_creation
    = form_for(StatusMessage.new) do |status|
      = status.error_messages
      %params
        .publisher-textarea-wrapper#publisher-textarea-wrapper
          - if current_user.getting_started?
            = status.text_area :text, :rows => 2, :value => h(publisher_formatted_text),
              :tabindex => 1, :placeholder => "#{t('contacts.index.start_a_conversation')}...",
              "data-title" => popover_with_close_html("1. " + t("shared.public_explain.share")),
              "data-content" => t("shared.public_explain.new_user_welcome_message"),
              "class" => "form-control mention-textarea"
          - else
            = status.text_area :text, :rows => 2, :value => h(publisher_formatted_text),
              :tabindex => 1, :placeholder => "#{t('contacts.index.start_a_conversation')}...",
              "class" => "form-control mention-textarea"
          .typeahead-mention-box-wrap
            %input.typeahead-mention-box.hidden{type: "text"}

          .container-fluid.photodropzone-container#photodropzone_container
            %ul#photodropzone
          .location-container.form-group{style: "padding: 4px 6px;"}
            = hidden_field :location, :coords
          .poll-creator-container#poll_creator_container
            -# handlebars template
          #button_container
            .publisher-buttonbar#publisher-images
              .btn.btn-link.poll-creator#poll_creator{title: t("shared.publisher.poll.add_a_poll")}
                %i.entypo-bar-graph
              .btn.btn-link.file-upload#file-upload
                %i.entypo-camera.publisher_image
              .btn.btn-link.locator#locator{title: t("shared.publisher.get_location")}
                %i.entypo-location.publisher_image
              .btn.btn-link.hide-location#hide_location{title: t("shared.publisher.remove_location")}
                %i.entypo-cross.publisher_image
            %span.markdownIndications
              != t("shared.publisher.formatWithMarkdown", markdown_link: link_to(t("help.markdown"),
                  "https://diasporafoundation.org/formatting", target: :blank))

      - if public_selected?(selected_aspects)
        = hidden_field_tag "aspect_ids[]", "public"
      - elsif all_aspects_selected?(selected_aspects)
        = hidden_field_tag "aspect_ids[]", "all_aspects"
      - else
        - selected_aspects.each do |aspect|
          = hidden_field_tag "aspect_ids[]", aspect.id

      .hidden#publisher_spinner
        .loader
          .spinner
      .options_and_submit.col-sm-12
        .public_toggle.clearfix
          .btn-toolbar.pull-right
            = render partial: "aspects/aspect_dropdown", locals: {selected_aspects: selected_aspects}
            %button.btn.btn-group.btn-primary#submit= t("shared.publisher.share")

          .btn-toolbar.pull-right#publisher-service-icons
            - if current_user.services
              - current_user.services.each do |service|
                = service_button(service)
            .btn.btn-link.question_mark{title: t("shared.public_explain.manage"),
                           data: {toggle: "modal", target: "#publicExplainModal"}}
              %i.entypo-cog

    = link_to "", contacts_path(aspect_ids: aspect_ids), class: "selected_contacts_link hidden"

= render "shared/public_explain"
{'fraction_non_alphanumeric': 0.12638072012623727, 'fraction_numerical': 0.002582125950365801, 'mean_word_length': 2.4842578710644676, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, 'https://': 2, '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': '4613035', 'n_tokens_mistral': 2173, 'n_tokens_neox': 2110, 'n_words': 280}