<commit_before><nav-bar></nav-bar>
<div class="profile">
  <div class="page-content">
    <modal-dialog class="modal avatar-dialog" show="avatarModalShown">
      <div class='progress-bar' ng-style="{width: file.progressPercentage + '%'}"></div>
      <div ngf-drop ng-model="picFile" ngf-pattern="image/*" class="cropArea">
        <img-crop image="picFile  | ngfDataUrl" result-image="croppedDataUrl" area-type="circle" result-image-size="{w:128, h:128}" aspect-ratio="1" ng-init="croppedDataUrl=''">
      <div>{{file.name}} {{errFile.name}} {{errFile.$error}} {{errFile.$errorParam}}</div>
        </img-crop>
      </div>
      <button ng-disabled="file.status === 'UPLOADING'" ng-click="upload(croppedDataUrl, picFile.name)">Upload image</button>
    </modal-dialog>
    <h2 class="heading">Profile<span class="small"> - update your stuff</span></h2>
    <form name="profileForm">
      <!-- Code for ng-file-uploader -->
      <section class="profile-section">
        <fieldset>
          <legend>avatar</legend>
          <div class="current-avatar"><img ng-src="{{user.avatarURL}}" alt="current avatar"></div>
          <!--  <button type="file" ngf-select="uploadFiles($file, $invalidFiles)" accept="image/*" ngf-resize="{width: 100, height: 100}">
            Change <i class="fa fa-upload"></i></button> -->
          <button type="file" ng-model="picFile" ngf-select="showAvatarModal($file, $invalidFiles)" accept="image/*" >Change <i class="fa fa-upload"></i></button>

            <!--             <span class="progress" ng-show="f.progress >= 0">
              <div style="width:{{f.progress}}%" ng-bind="f.progress + '%'"></div>
            </span> -->
          <span class="error">{{errorMsg}}</span>
          <!-- Code for ng-file-uploader -->
        </fieldset>
      </section>
      <section class="profile-section">
        <fieldset>
          <legend>info</legend>
          <label>name
            <input type='text' ng-model='user.displayName' placeholder='Name' />
          </label>
          <label>email
            <input type='text' ng-model='user.email' placeholder='Email' />
          </label>
          <button type='submit' ng-click='updateProfile();'>Update</button>
        </fieldset>
      </section>
    </form>
  </div>
  <footer>
    <player></player>
  </footer>
</div><commit_msg>(feat) Add enter binding to update profile<commit_after><nav-bar></nav-bar>
<div class="profile">
  <div class="page-content">
    <modal-dialog class="modal avatar-dialog" show="avatarModalShown">
      <div class='progress-bar' ng-style="{width: file.progressPercentage + '%'}"></div>
      <div ngf-drop ng-model="picFile" ngf-pattern="image/*" class="cropArea">
        <img-crop image="picFile  | ngfDataUrl" result-image="croppedDataUrl" area-type="circle" result-image-size="{w:128, h:128}" aspect-ratio="1" ng-init="croppedDataUrl=''">
      <div>{{file.name}} {{errFile.name}} {{errFile.$error}} {{errFile.$errorParam}}</div>
        </img-crop>
      </div>
      <button ng-disabled="file.status === 'UPLOADING'" ng-click="upload(croppedDataUrl, picFile.name)">Upload image</button>
    </modal-dialog>
    <h2 class="heading">Profile<span class="small"> - update your stuff</span></h2>
    <form name="profileForm">
      <!-- Code for ng-file-uploader -->
      <section class="profile-section">
        <fieldset>
          <legend>avatar</legend>
          <div class="current-avatar"><img ng-src="{{user.avatarURL}}" alt="current avatar"></div>
          <!--  <button type="file" ngf-select="uploadFiles($file, $invalidFiles)" accept="image/*" ngf-resize="{width: 100, height: 100}">
            Change <i class="fa fa-upload"></i></button> -->
          <button type="file" ng-model="picFile" ngf-select="showAvatarModal($file, $invalidFiles)" accept="image/*" >Change <i class="fa fa-upload"></i></button>

            <!--             <span class="progress" ng-show="f.progress >= 0">
              <div style="width:{{f.progress}}%" ng-bind="f.progress + '%'"></div>
            </span> -->
          <span class="error">{{errorMsg}}</span>
          <!-- Code for ng-file-uploader -->
        </fieldset>
      </section>
      <section class="profile-section">
        <fieldset>
          <legend>info</legend>
          <label>name
            <input type='text' ng-model='user.displayName' placeholder='Name' my-enter="updateProfile()" />
          </label>
          <label>email
            <input type='text' ng-model='user.email' placeholder='Email' my-enter="updateProfile()" />
          </label>
          <button type='submit' ng-click='updateProfile();'>Update</button>
        </fieldset>
      </section>
    </form>
  </div>
  <footer>
    <player></player>
  </footer>
</div>
{'fraction_non_alphanumeric': 0.20442571127502634, 'fraction_numerical': 0.006743940990516333, 'mean_word_length': 2.9385892116182575, 'pattern_counts': {'":': 0, '<': 141, '<?xml version=': 0, '>': 143, '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': '4915061', 'n_tokens_mistral': 1511, 'n_tokens_neox': 1458, 'n_words': 261}