<commit_before><ion-view view-title="Account">
  <ion-content class="visible-cards">
  <my-app-message info="appMessage"></my-app-message>
  <my-app-message info="accessRequestMessage"></my-app-message>
  <my-app-message info="controllerMessage"></my-app-message>
<!--     <h4>&nbsp;&nbsp;&nbsp;&nbsp;Profile</h4> -->
    <div class="card">
      <div class="item item-avatar item-icon-right">
        <img ng-src="{{user.get('images')[0]}}" ng-click="showProfilePicture()" ng-if="user.get('images')">
        <img src="img/avatar2.png" ng-click="showProfilePicture()" ng-if="!user.get('images')">
        <a href="#/tab/account-update"><i class="icon ion-compose royal"></i></a>     
        <h2>{{user.get("firstName")}}&nbsp;{{user.get("lastName")}}</h2>
        <p ng-if="user.get('homeNo')">{{user.get("homeNo") | formatHomeNumber}}</p>
<!--         <p ng-if="privs.isSuperAdmin">Super Admin</p> -->
      </div>
      <ion-item>
        {{'PhNum' | translate}}<span class="item-note">{{user.get("username")}}</span>            
      </ion-item>            
<!--       <ion-item>
        Residency<span class="item-note">{{regionDisplayName}}</span>                  
      </ion-item>                               -->
      <ion-item ng-if="!privs.isCitizen">
         {{'Role' | translate}}
          <span class="item-note">{{getRoleNameFromRoleCode(user.get("role"))}}</span>                  
      </ion-item>                        
      <ion-item ng-if="user.get('title')">
        Honorable Title<span class="item-note">{{user.get("title")}}</span>                        
      </ion-item>                       
      <ion-item>
        Blood Group
        <span class="badge badge-royal" ng-if="user.get('bloodGroup')">{{user.get("bloodGroup")}}</span>  
        <!-- <span class="item-note custom-badge" ng-if="!user.get('bloodGroup')">NA</span>             -->
        <span class="item-note assertive" ng-if="!user.get('bloodGroup')">Not Provided</span>
      </ion-item>
      <ion-item ng-if="user.get('email')">
        Email
        <span class="item-note">{{user.get("email")}}</span>  
      </ion-item>     
    </div>    
<!--     <h4>&nbsp;&nbsp;&nbsp;&nbsp;Settings</h4> -->
    <div class="card">
      <ion-toggle ng-model="settings.notifications" ng-change="notifySettingChanged('notifySetting', settings.notifications)">
          {{'Notify' | translate}}
      </ion-toggle>          
      <ion-item class="item-icon-right" ng-click="registerDevice()" ng-if="!privs.isDeviceRegistered">
        <i class="icon ion-chevron-right icon-accessory"></i>                           
        Register device
      </ion-item>  
      <ion-item class="item-icon-right" ng-click="uploadProfilePicture()">
        <i class="icon ion-chevron-right icon-accessory"></i>                           
        Upload Profile Picture
      </ion-item>                
      <ion-item class="item-icon-right" ng-click="switchResidency()" ng-if="canSwitchResidency"><commit_msg>Adding missing vehcile to profile<commit_after><ion-view view-title="Account">
  <ion-content class="visible-cards">
  <my-app-message info="appMessage"></my-app-message>
  <my-app-message info="accessRequestMessage"></my-app-message>
  <my-app-message info="controllerMessage"></my-app-message>
<!--     <h4>&nbsp;&nbsp;&nbsp;&nbsp;Profile</h4> -->
    <div class="card">
      <div class="item item-avatar item-icon-right">
        <img ng-src="{{user.get('images')[0]}}" ng-click="showProfilePicture()" ng-if="user.get('images')">
        <img src="img/avatar2.png" ng-click="showProfilePicture()" ng-if="!user.get('images')">
        <a href="#/tab/account-update"><i class="icon ion-compose royal"></i></a>     
        <h2>{{user.get("firstName")}}&nbsp;{{user.get("lastName")}}</h2>
        <p ng-if="user.get('homeNo')">{{user.get("homeNo") | formatHomeNumber}}</p>
<!--         <p ng-if="privs.isSuperAdmin">Super Admin</p> -->
      </div>
      <ion-item>
        {{'PhNum' | translate}}<span class="item-note">{{user.get("username")}}</span>            
      </ion-item>            
<!--       <ion-item>
        Residency<span class="item-note">{{regionDisplayName}}</span>                  
      </ion-item>                               -->
      <ion-item ng-if="!privs.isCitizen">
         {{'Role' | translate}}
          <span class="item-note">{{getRoleNameFromRoleCode(user.get("role"))}}</span>                  
      </ion-item>                        
      <ion-item ng-if="user.get('title')">
        Honorable Title<span class="item-note">{{user.get("title")}}</span>                        
      </ion-item>                       
      <ion-item>
        Blood Group
        <span class="badge badge-royal" ng-if="user.get('bloodGroup')">{{user.get("bloodGroup")}}</span>  
        <!-- <span class="item-note custom-badge" ng-if="!user.get('bloodGroup')">NA</span>             -->
        <span class="item-note assertive" ng-if="!user.get('bloodGroup')">Not Provided</span>
      </ion-item>
      <ion-item ng-if="user.get('email')">
        Email
        <span class="item-note">{{user.get("email")}}</span>  
      </ion-item>     
      <ion-item  class="item-icon-right" href="#/tab/account-vehicle-list/{{user.get('homeNo')}}">      
    </div>    
<!--     <h4>&nbsp;&nbsp;&nbsp;&nbsp;Settings</h4> -->
    <div class="card">
      <ion-toggle ng-model="settings.notifications" ng-change="notifySettingChanged('notifySetting', settings.notifications)">
          {{'Notify' | translate}}
      </ion-toggle>          
      <ion-item class="item-icon-right" ng-click="registerDevice()" ng-if="!privs.isDeviceRegistered">
        <i class="icon ion-chevron-right icon-accessory"></i>                           
        Register device
      </ion-item>  
      <ion-item class="item-icon-right" ng-click="uploadProfilePicture()">
        <i class="icon ion-chevron-right icon-accessory"></i>                           
        Upload Profile Picture
      </ion-item>                
      <ion-item class="item-icon-right" ng-click="switchResidency()" ng-if="canSwitchResidency">
{'fraction_non_alphanumeric': 0.20598332515939186, 'fraction_numerical': 0.0026156612718652933, 'mean_word_length': 2.3468271334792123, 'pattern_counts': {'":': 0, '<': 150, '<?xml version=': 0, '>': 150, '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': '1772936', 'n_tokens_mistral': 1959, 'n_tokens_neox': 1886, 'n_words': 246}