<commit_before><% content_for :title do %>
  <header class="profile__header">
    <div class="profile__header__name-wrap">
      <div id="avatar-frame">
        <%= 
          image_tag(
            @user.gravatar_url(size: 300, secure: request.ssl?).html_safe,
            id: "profile_gravatar",
            width: 300,
            height: 300,
            class: 'profile__header__avatar'
          )
        %>
      </div>

      <h1 id="profile-name" class="profile__header__name t-display">
        <%= 
          link_to(
            @user.display_handle, profile_path(@user.display_id),
            class: "t-link--black"
          )
        %>
      </h1>

      <% unless @user.hide_email %>
        <p id="profile-email">
          <%= 
            mail_to(
              @user.email,
              "Email Me",
              encode: "hex",
              class: "profile__header__attribute t-link--black",
              'data-icon' => '✉'
            )
          %>
        </p>
      <% end %>

      <% if @user.twitter_username.present? %>
        <%=
          image_tag(
            "/images/twitter_icon.png",
            alt: 'Twitter icon',
            class: 'profile__header__icon'
          )
        %>

        <%=
          link_to(
            twitter_username(@user),
            twitter_url(@user),
            class: "profile__header__attribute t-link--black"
          )
        %>
      <% end %>

      <% if @user == current_user %>
        <div id="downloads-ego">
          <%=
            link_to(
              "Edit Profile",
              edit_profile_path,
              id: "edit-profile",
              class: "profile__header__attribute t-link--black"
            )
          %>
        </div>
      <% end %>
    </div>

    <div class="profile__downloads-wrap">
      <h4 class="gem__downloads__heading t-text--s">
        <%= t('stats.index.total_gems') %>
      </h4>

      <h2 id="profile-gems-count" class="gem__downloads">
        <%= @user.total_rubygems_count.to_s %>
      </h2>

      <h4 id="downloads" class="gem__downloads__heading t-text--s">
        <%= t('stats.index.total_downloads') %>
      </h4>
<commit_msg>Add `Edit settings` link on user profile page<commit_after><% content_for :title do %>
  <header class="profile__header">
    <div class="profile__header__name-wrap">
      <div id="avatar-frame">
        <%= 
          image_tag(
            @user.gravatar_url(size: 300, secure: request.ssl?).html_safe,
            id: "profile_gravatar",
            width: 300,
            height: 300,
            class: 'profile__header__avatar'
          )
        %>
      </div>

      <h1 id="profile-name" class="profile__header__name t-display">
        <%= 
          link_to(
            @user.display_handle, profile_path(@user.display_id),
            class: "t-link--black"
          )
        %>
      </h1>

      <% unless @user.hide_email %>
        <p id="profile-email">
          <%= 
            mail_to(
              @user.email,
              "Email Me",
              encode: "hex",
              class: "profile__header__attribute t-link--black",
              'data-icon' => '✉'
            )
          %>
        </p>
      <% end %>

      <% if @user.twitter_username.present? %>
        <%=
          image_tag(
            "/images/twitter_icon.png",
            alt: 'Twitter icon',
            class: 'profile__header__icon'
          )
        %>

        <%=
          link_to(
            twitter_username(@user),
            twitter_url(@user),
            class: "profile__header__attribute t-link--black"
          )
        %>
      <% end %>

      <% if @user == current_user %>
        <div id="downloads-ego">
          <%=
            link_to(
              "Edit Profile",
              edit_profile_path,
              id: "edit-profile",
              class: "profile__header__attribute t-link--black"
            )
          %>
        </div>
        <div id="profile-settings">
          <%=
            link_to(
              "Edit Settings",
              edit_settings_path,
              id: "edit-settings",
              class: "profile__header__attribute t-link--black"
            )
          %>
        </div>
      <% end %>
    </div>

    <div class="profile__downloads-wrap">
      <h4 class="gem__downloads__heading t-text--s">
        <%= t('stats.index.total_gems') %>
      </h4>

      <h2 id="profile-gems-count" class="gem__downloads">
        <%= @user.total_rubygems_count.to_s %>
      </h2>

      <h4 id="downloads" class="gem__downloads__heading t-text--s">
        <%= t('stats.index.total_downloads') %>
      </h4>

{'fraction_non_alphanumeric': 0.14193686922911747, 'fraction_numerical': 0.007300837449001503, 'mean_word_length': 1.4273058884835852, 'pattern_counts': {'":': 0, '<': 74, '<?xml version=': 0, '>': 76, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4100340', 'n_tokens_mistral': 1496, 'n_tokens_neox': 1392, 'n_words': 223}