<commit_before>- title 'Edit account on Dabble Me'

.row
  .col-md-8.col-md-offset-2
    %h3 SETTINGS
    %br

  .col-md-8.col-md-offset-2
    %p
      Post new entries by emailing
      =mail_to "#{@user.user_key}@#{ENV['SMTP_DOMAIN']}", "#{@user.user_key}@#{ENV['SMTP_DOMAIN']}", encode: "hex", target: "_blank"
    .alert.alert-warning
      -if current_user.is_pro?
        Thanks for subscribing to #{current_user.plan_name}!
      - else
        Unlock premium features like changing the frequency of emails, adding/editing entries via the web, adding a photo, rich formatting, and searching your entries by subscribing to
        =link_to("Dabble Me PRO", subscribe_path, class: 'alert-link')+"."
    %hr

  = render partial: 'user_settings', locals: { form_path: registration_path(resource_name) }

  .col-md-12.center
    %br
    - if current_user.is_pro? && current_user.plan_type.present?
      - add_text = " To downgrade or cancel your paid subscription, you'll need to do so separately at #{current_user.plan_type}!"
      - show_warning = " You will need to cancel your subscription *separately* at #{current_user.plan_type_unlinked}"
    =link_to registration_path(resource_name), class: "s-delete j-delete-user", data: { confirm: "Are you sure? This will delete your account and #{pluralize(@user.entries.count,'entry')}. There is no undo.#{show_warning}." }, method: :delete do
      %h5
        Delete your account & all associated entries
    - if current_user.is_pro? && current_user.plan_type.present?
      = add_text.strip.html_safe
      %br
    %br

    #export.col-md-8.col-md-offset-2.alert.alert-info
      Export all entries as
      =link_to "TXT", export_entries_path(:txt)
      (plain text)
      or
      =link_to "JSON", export_entries_path(:json)
      (rich formatting).
      -if current_user.is_pro? && current_user.only_images.any?
        Export a
        =link_to("list of your Image URLs", export_entries_path(:txt, only_images: true)) + "."
        You can use a script or app to download these to your computer. <commit_msg>Fix 500<commit_after>- title 'Edit account on Dabble Me'

.row
  .col-md-8.col-md-offset-2
    %h3 SETTINGS
    %br

  .col-md-8.col-md-offset-2
    %p
      Post new entries by emailing
      =mail_to "#{@user.user_key}@#{ENV['SMTP_DOMAIN']}", "#{@user.user_key}@#{ENV['SMTP_DOMAIN']}", encode: "hex", target: "_blank"
    .alert.alert-warning
      -if current_user.is_pro?
        Thanks for subscribing to #{current_user.plan_name}!
      - else
        Unlock premium features like changing the frequency of emails, adding/editing entries via the web, adding a photo, rich formatting, and searching your entries by subscribing to
        =link_to("Dabble Me PRO", subscribe_path, class: 'alert-link')+"."
    %hr

  = render partial: 'user_settings', locals: { form_path: registration_path(resource_name) }

  .col-md-12.center
    %br
    - if current_user.is_pro? && current_user.plan_type.present?
      - add_text = " To downgrade or cancel your paid subscription, you'll need to do so separately at #{current_user.plan_type}!"
      - show_warning = " You will need to cancel your subscription *separately* at #{current_user.plan_type_unlinked}"
    =link_to registration_path(resource_name), class: "s-delete j-delete-user", data: { confirm: "Are you sure? This will delete your account and #{pluralize(@user.entries.count,'entry')}. There is no undo.#{show_warning}." }, method: :delete do
      %h5
        Delete your account & all associated entries
    - if current_user.is_pro? && current_user.plan_type.present?
      = add_text.strip.html_safe
      %br
    %br

    #export.col-md-8.col-md-offset-2.alert.alert-info
      Export all entries as
      =link_to "TXT", export_entries_path(:txt)
      (plain text)
      or
      =link_to "JSON", export_entries_path(:json)
      (rich formatting).
      -if current_user.is_pro? && current_user.entries.only_images.any?
        Export a
        =link_to("list of your Image URLs", export_entries_path(:txt, only_images: true)) + "."
        You can use a script or app to download these to your computer. 
{'fraction_non_alphanumeric': 0.12047320135200386, 'fraction_numerical': 0.005552873008208595, 'mean_word_length': 3.249230769230769, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '924654', 'n_tokens_mistral': 1352, 'n_tokens_neox': 1320, 'n_words': 371}