<commit_before>=stylesheet_link_tag 'user_remarks/application'
- submition_url = if UserRemarks.mount_subdomain.present?
- user_remarks.remarks_url(subdomain: UserRemarks.mount_subdomain)
- else
- user_remarks.remarks_path

#remark_tab
  .remark_tab
    .remark_open_btn
    .remark_close_btn
  .remark_form
    = simple_form_for :remark, url: submition_url, wrapper: false, remote: true, response: :json,method: :post do |f|
      =f.error_notification
      .remark-input
        =f.label :title, label: t('user_remarks.remarks.title')
        =f.input_field :title
      .remark-input
        =f.label :text, label: t('user_remarks.remarks.text')
        =f.input_field :text, as: :text
      .remark-input
        =f.input_field :link, as: :hidden
      .remark-input
        =f.input_field :user_id, as: :hidden, value: "#{current_user.id}"
      .remark-action
        =f.submit value: t('user_remarks.remarks.send')

  =javascript_include_tag 'user_remarks/application'<commit_msg>fix bug when current_user not present<commit_after>=stylesheet_link_tag 'user_remarks/application'
- submition_url = if UserRemarks.mount_subdomain.present?
- user_remarks.remarks_url(subdomain: UserRemarks.mount_subdomain)
- else
- user_remarks.remarks_path

#remark_tab
  .remark_tab
    .remark_open_btn
    .remark_close_btn
  .remark_form
    = simple_form_for :remark, url: submition_url, wrapper: false, remote: true, response: :json,method: :post do |f|
      =f.error_notification
      .remark-input
        =f.label :title, label: t('user_remarks.remarks.title')
        =f.input_field :title
      .remark-input
        =f.label :text, label: t('user_remarks.remarks.text')
        =f.input_field :text, as: :text
      .remark-input
        =f.input_field :link, as: :hidden
      .remark-input
        =f.input_field :user_id, as: :hidden, value: "#{current_user.id if current_user.present?}"
      .remark-action
        =f.submit value: t('user_remarks.remarks.send')

  =javascript_include_tag 'user_remarks/application'
{'fraction_non_alphanumeric': 0.11753086419753087, 'fraction_numerical': 0.0, 'mean_word_length': 3.5324384787472036, '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': '6608847', 'n_tokens_mistral': 671, 'n_tokens_neox': 696, 'n_words': 130}