<commit_before>{{page-title 'Settings'}}

<PageHeader @title="Account Settings" @icon="gear"/>

<div local-class='me-profile'>
  <h2>Profile Information</h2>

  <div local-class='info'>
    <UserLink @user={{this.model.user}}> <UserAvatar @user={{this.model.user}} @size="medium" /> </UserLink>

    <dl>
      <dt>Name</dt>
      <dd>{{ this.model.user.name }}</dd>
      <dt>GitHub Account</dt>
      <dd>{{ this.model.user.login }}</dd>
    </dl>
  </div>
</div>

<div local-class="me-email">
  <h2>User Email</h2>
  <EmailInput
    @user={{this.model.user}}
    data-test-email-input
  />
</div>

<form local-class="me-email-notifications" {{on "submit" (prevent-default this.saveEmailNotifications)}} >
  <h2>Email Notification Preferences</h2>

  {{#if this.hasEmailNotificationFeature}}
    <p>
      To aid detection of unauthorized crate changes, we email you each time a new version of a crate you own is pushed.
      By receiving and reading these emails, you help protect the Rust ecosystem. You may also choose to turn these
      emails off for any of your crates listed below.
    </p>

    <div local-class="notifications-row">
      <button type='button' local-class="select-all-button" {{on "click" this.emailNotificationsSelectAll}}>Select All</button><commit_msg>Add note to "Account Settings" page about how to change Name/Github Account<commit_after>{{page-title 'Settings'}}

<PageHeader @title="Account Settings" @icon="gear"/>

<div local-class='me-profile'>
  <h2>Profile Information</h2>

  <div local-class='info'>
    <UserLink @user={{this.model.user}}> <UserAvatar @user={{this.model.user}} @size="medium" /> </UserLink>

    <dl>
      <dt>Name</dt>
      <dd>{{ this.model.user.name }}</dd>
      <dt>GitHub Account</dt>
      <dd>{{ this.model.user.login }}</dd>
    </dl>
  </div>

  <p>
      To update your name and GitHub account, change them in your GitHub profile, then sign out and login again to
      crates.io.
      You cannot change these settings directly on crates.io, but we accept whatever values come from GitHub.
  </p>
</div>

<div local-class="me-email">
  <h2>User Email</h2>
  <EmailInput
    @user={{this.model.user}}
    data-test-email-input
  />
</div>

<form local-class="me-email-notifications" {{on "submit" (prevent-default this.saveEmailNotifications)}} >
  <h2>Email Notification Preferences</h2>

  {{#if this.hasEmailNotificationFeature}}
    <p>
      To aid detection of unauthorized crate changes, we email you each time a new version of a crate you own is pushed.
      By receiving and reading these emails, you help protect the Rust ecosystem. You may also choose to turn these
      emails off for any of your crates listed below.
    </p>

    <div local-class="notifications-row">
      <button type='button' local-class="select-all-button" {{on "click" this.emailNotificationsSelectAll}}>Select All</button>
{'fraction_non_alphanumeric': 0.14934164934164934, 'fraction_numerical': 0.004158004158004158, 'mean_word_length': 3.6564516129032256, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, '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': '7027230', 'n_tokens_mistral': 928, 'n_tokens_neox': 909, 'n_words': 272}