<commit_before>mixin locationSearch(value)
  include ../../../components/location_search/template

form.settings-form.settings-profile-form( class=editProfileIsActive, method="post", action="#{sd.APP_URL}/profile", accept-charset="UTF-8" )

  label.avant-garde-form-label( for="profile-id" ) Username
  input#profile-id.bordered-input( type="text", value=profile.get('id'), size="30", maxlength="20", name="id")
  .settings-form-error( data-attr='handle' )

  label.avant-garde-form-label( for="profile-bio" ) Bio
  textarea#profile-bio.bordered-input( name="bio" )!= profile.get('bio')
  .settings-form-error( data-attr='bio' )

  label.avant-garde-form-label( for="profile-location" ) Location
  #profile-location
    //- The user location contains the object and the profile will set the display string of that object
    +locationSearch(user.location().cityStateCountry())

  label.avant-garde-form-label( for="profile-website" ) Website
  input#profile-website.bordered-input( type="url", value=profile.get('website'), size="30", name="website", placeholder="http://mysite.com" )
  .settings-form-error( data-attr='website' )

  label.settings-group-leader.settings-group-label.avant-garde-form-label Privacy
  .input-group
    a#profile-public.artsy-toggle.profile-is-public( data-state=profileEdit.onOffPublic(), href="" )
      .artsy-toggle-dot
    .artsy-toggle-label
      | Enable My Public Profile
      .help-tooltip( data-message="This allows others to view your full name, username, bio, location, website, and posts. Your public Artsy User URL will be: artsy.net/[your username]." )

  .input-group.settings-enable-public-favorites
    a#profile-favorites.artsy-toggle.profile-favorites( data-state='off', href="" )
      .artsy-toggle-dot
    .artsy-toggle-label
      | Enable Public Favorites
      .help-tooltip( data-message="This allows others to view your Favorites. This also enables your public profile. Your public Artsy User URL will be: artsy.net/[your username]." )

  button#profile-edit-submit.avant-garde-button-black.settings-submit.is-block Save Changes<commit_msg>Render username in the tooltip<commit_after>mixin locationSearch(value)
  include ../../../components/location_search/template

form.settings-form.settings-profile-form( class=editProfileIsActive, method="post", action="#{sd.APP_URL}/profile", accept-charset="UTF-8" )

  label.avant-garde-form-label( for="profile-id" ) Username
  input#profile-id.bordered-input( type="text", value=profile.get('id'), size="30", maxlength="20", name="id")
  .settings-form-error( data-attr='handle' )

  label.avant-garde-form-label( for="profile-bio" ) Bio
  textarea#profile-bio.bordered-input( name="bio" )!= profile.get('bio')
  .settings-form-error( data-attr='bio' )

  label.avant-garde-form-label( for="profile-location" ) Location
  #profile-location
    //- The user location contains the object and the profile will set the display string of that object
    +locationSearch(user.location().cityStateCountry())

  label.avant-garde-form-label( for="profile-website" ) Website
  input#profile-website.bordered-input( type="url", value=profile.get('website'), size="30", name="website", placeholder="http://mysite.com" )
  .settings-form-error( data-attr='website' )

  label.settings-group-leader.settings-group-label.avant-garde-form-label Privacy
  .input-group
    a#profile-public.artsy-toggle.profile-is-public( data-state=profileEdit.onOffPublic(), href="" )
      .artsy-toggle-dot
    .artsy-toggle-label
      | Enable My Public Profile
      .help-tooltip( data-message="This allows others to view your full name, username, bio, location, website, and posts. Your public Artsy User URL will be: artsy.net/#{profile.id}." )

  .input-group.settings-enable-public-favorites
    a#profile-favorites.artsy-toggle.profile-favorites( data-state='off', href="" )
      .artsy-toggle-dot
    .artsy-toggle-label
      | Enable Public Favorites
      .help-tooltip( data-message="This allows others to view your Favorites. This also enables your public profile. Your public Artsy User URL will be: artsy.net/#{profile.id}." )

  button#profile-edit-submit.avant-garde-button-black.settings-submit.is-block Save Changes
{'fraction_non_alphanumeric': 0.14953714692618086, 'fraction_numerical': 0.003323047709470686, 'mean_word_length': 4.368152866242038, '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': '4100366', 'n_tokens_mistral': 1338, 'n_tokens_neox': 1295, 'n_words': 265}