<commit_before>{# Settings tab of the app. #}

<div class="row-fluid">
  <div id="current_settings" class="span12">
      <h1>Settings</h1>

      {# One text line worth of space #}
      <div>&nbsp;</div>

      <div class="alert" id="settings-status"></div>

      <div id="settings-change-box">
      <form action="/json/settings/change" method="post"
            class="form-horizontal">{% csrf_token %}
        <div class="control-group">
            <label for="full_name" class="control-label">Full name</label>
            <div class="controls">
                <input type="text" name="full_name" id="full_name"
                       value="{{ user_profile.full_name }}" />
            </div>
        </div>

        <div class="control-group" id="pw_change_link">
          <div class="controls">
            <button class="btn change_password_button" data-dismiss="modal" aria-hidden="true">Change Password</button>
            </div>
        </div>

        <div id="pw_change_controls">

            <div class="control-group">
                <label for="old_password" class="control-label">Old password</label>
                <div class="controls">
                    <input type="password" autocomplete="off"
                           name="old_password" id="old_password" value="" />
                </div>
            </div>

            <div class="control-group">
                <label for="new_password" class="control-label">New password</label>
                <div class="controls">
                    <input type="password" autocomplete="off"
                           name="new_password" id="new_password" value="" />
                </div>
            </div>

            <div class="control-group">
                <label class="control-label">Password strength</label>
                <div class="controls">
                    <div class="progress" id="pw_strength">
                        <div class="bar bar-danger" style="width: 10%;"></div>
                    </div>
                </div>
            </div>

            <div class="control-group">
                <label for="confirm_password" class="control-label">Confirm password</label>
                <div class="controls">
                    <input type="password" autocomplete="off"
                           name="confirm_password" id="confirm_password" value="" />
                </div>
            </div>

        </div>

        <div class="form-horizontal">
          <div class="control-group">
              <label class="control-label">Your picture</label>
              <div class="controls">
                  <a href="https://en.gravatar.com/emails" target="_blank" class="change_gravatar_button">
                      <p><img class="img-rounded gravatar-profile user-image-settings"
                           src="{{ avatar_url }}&s=60" /></p>
                      <p>Change at Gravatar.com</p>
                  </a>
              </div>
          </div>
        </div>

        <div class="control-group">
          <div class="controls">
            <input type="submit" name="change_settings"
                   value="Save changes" class="btn btn-big btn-primary" />
          </div>
        </div>

      <hr class="settings_separator">
      <h2>Notification settings</h2>
      <div id="notification-settings">
        <div class="control-group">
            <label for="enable_desktop_notifications" class="control-label">
                Desktop notifications (Chrome only)</label>
            <div class="controls">
                <input type="checkbox" name="enable_desktop_notifications" id="enable_desktop_notifications"
                   {% if user_profile.enable_desktop_notifications %}
                   checked="yes"
                   {% endif %} />
            </div>
        </div>
        <div class="control-group">
            <label for="enable_sounds" class="control-label">
                Audible notifications for messages</label>
            <div class="controls">
                <input type="checkbox" name="enable_sounds" id="enable_sounds"<commit_msg>Remove (Chrome only) text from Desktop notifications option<commit_after>{# Settings tab of the app. #}

<div class="row-fluid">
  <div id="current_settings" class="span12">
      <h1>Settings</h1>

      {# One text line worth of space #}
      <div>&nbsp;</div>

      <div class="alert" id="settings-status"></div>

      <div id="settings-change-box">
      <form action="/json/settings/change" method="post"
            class="form-horizontal">{% csrf_token %}
        <div class="control-group">
            <label for="full_name" class="control-label">Full name</label>
            <div class="controls">
                <input type="text" name="full_name" id="full_name"
                       value="{{ user_profile.full_name }}" />
            </div>
        </div>

        <div class="control-group" id="pw_change_link">
          <div class="controls">
            <button class="btn change_password_button" data-dismiss="modal" aria-hidden="true">Change Password</button>
            </div>
        </div>

        <div id="pw_change_controls">

            <div class="control-group">
                <label for="old_password" class="control-label">Old password</label>
                <div class="controls">
                    <input type="password" autocomplete="off"
                           name="old_password" id="old_password" value="" />
                </div>
            </div>

            <div class="control-group">
                <label for="new_password" class="control-label">New password</label>
                <div class="controls">
                    <input type="password" autocomplete="off"
                           name="new_password" id="new_password" value="" />
                </div>
            </div>

            <div class="control-group">
                <label class="control-label">Password strength</label>
                <div class="controls">
                    <div class="progress" id="pw_strength">
                        <div class="bar bar-danger" style="width: 10%;"></div>
                    </div>
                </div>
            </div>

            <div class="control-group">
                <label for="confirm_password" class="control-label">Confirm password</label>
                <div class="controls">
                    <input type="password" autocomplete="off"
                           name="confirm_password" id="confirm_password" value="" />
                </div>
            </div>

        </div>

        <div class="form-horizontal">
          <div class="control-group">
              <label class="control-label">Your picture</label>
              <div class="controls">
                  <a href="https://en.gravatar.com/emails" target="_blank" class="change_gravatar_button">
                      <p><img class="img-rounded gravatar-profile user-image-settings"
                           src="{{ avatar_url }}&s=60" /></p>
                      <p>Change at Gravatar.com</p>
                  </a>
              </div>
          </div>
        </div>

        <div class="control-group">
          <div class="controls">
            <input type="submit" name="change_settings"
                   value="Save changes" class="btn btn-big btn-primary" />
          </div>
        </div>

      <hr class="settings_separator">
      <h2>Notification settings</h2>
      <div id="notification-settings">
        <div class="control-group">
            <label for="enable_desktop_notifications" class="control-label">
                Desktop notifications</label>
            <div class="controls">
                <input type="checkbox" name="enable_desktop_notifications" id="enable_desktop_notifications"
                   {% if user_profile.enable_desktop_notifications %}
                   checked="yes"
                   {% endif %} />
            </div>
        </div>
        <div class="control-group">
            <label for="enable_sounds" class="control-label">
                Audible notifications for messages</label>
            <div class="controls">
                <input type="checkbox" name="enable_sounds" id="enable_sounds"
{'fraction_non_alphanumeric': 0.14178380998545806, 'fraction_numerical': 0.0024236548715462916, 'mean_word_length': 1.7364058355437666, 'pattern_counts': {'":': 0, '<': 187, '<?xml version=': 0, '>': 185, 'https://': 2, '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': '4914593', 'n_tokens_mistral': 2233, 'n_tokens_neox': 2080, 'n_words': 426}