<commit_before>/**
 * @license
 * Copyright 2017 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

 foam.CLASS({
   package: 'foam.nanos.auth',
   name: 'User',

   implements: [
     'foam.nanos.auth.EnabledAware',
     'foam.nanos.auth.LastModifiedAware',
     'foam.nanos.auth.LastModifiedByAware'
   ],

   documentation: '',

   tableColumns: [
     'id', 'enabled', 'firstName', 'lastName', 'organization', 'lastModified'
   ],

   properties: [
     {
       class: 'Long',
       name: 'id',
       displayWidth: 30,
       width: 100
     },
     {
       class: 'String',
       // class: 'SPID',
       label: 'Service Provider',
       name: 'spid',
       documentation: "User's service provider."
     },
     {
       class: 'DateTime',
       name: 'lastLogin'
     },
     {
       class: 'String',
       name: 'firstName'
     },
     {
       class: 'String',
       name: 'middleName'
     },
     {
       class: 'String',
       name: 'lastName'
     },
     {
       class: 'String',
       name: 'organization'
     },
     {
       class: 'String',
       name: 'department'
     },
     {
       class: 'String',
       // class: 'Email',
       name: 'email'
     },
     {
       class: 'String',
       // class: 'Phone',
       name: 'phone'
     },
     {
       class: 'String',
       // class: 'Phone',
       name: 'mobile'
     },
     {
       class: 'Reference',
       name: 'language',
       of: 'foam.nanos.auth.Language',
       value: 'en'
     },
     {
       class: 'String',
       name: 'timeZone'
       // TODO: create custom view or DAO
     },
     {
       class: 'Password',
       name: 'password',
       displayWidth: 30,
       width: 100
     },
     {
       class: 'Password',
       name: 'previousPassword',
       displayWidth: 30,
       width: 100
     },
     {
       class: 'DateTime',
       name: 'passwordLastModified'
     },
     // TODO: startDate, endDate,
     // TODO: do we want to replace 'note' with a simple ticket system?
     {
       class: 'String',
       name: 'note',
       displayWidth: 70,
       displayHeight: 10
     }
   ]
 });
<commit_msg>added fields to user<commit_after>/**
 * @license
 * Copyright 2017 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

 foam.CLASS({
   package: 'foam.nanos.auth',
   name: 'User',

   implements: [
     'foam.nanos.auth.EnabledAware',
     'foam.nanos.auth.LastModifiedAware',
     'foam.nanos.auth.LastModifiedByAware'
   ],

   documentation: '',

   tableColumns: [
     'id', 'enabled', 'firstName', 'lastName', 'organization', 'lastModified'
   ],

   properties: [
     {
       class: 'Long',
       name: 'id',
       displayWidth: 30,
       width: 100
     },
     {
       class: 'String',
       // class: 'SPID',
       label: 'Service Provider',
       name: 'spid',
       documentation: "User's service provider."
     },
     {
       class: 'DateTime',
       name: 'lastLogin'
     },
     {
       class: 'String',
       name: 'firstName'
     },
     {
       class: 'String',
       name: 'middleName'
     },
     {
       class: 'String',
       name: 'lastName'
     },
     {
       class: 'String',
       name: 'organization'
     },
     {
       class: 'String',
       name: 'department'
     },
     {
       class: 'String',
       // class: 'Email',
       name: 'email'
     },
     {
       class: 'String',
       // class: 'Phone',
       name: 'phone'
     },
     {
       class: 'String',
       // class: 'Phone',
       name: 'mobile'
     },
     {
       class: 'String',
       name: 'type'
     },
     {
       class: 'Date',
       name:  'birthday'
     },
     {
       class: 'String',
       name:  'profilePicture'
     },
     {
       class: 'Reference',
       name: 'language',
       of: 'foam.nanos.auth.Language',
       value: 'en'
     },
     {
       class: 'String',
       name: 'timeZone'
       // TODO: create custom view or DAO
     },
     {
       class: 'Password',
       name: 'password',
       displayWidth: 30,
       width: 100
     },
     {
       class: 'Password',
       name: '<PASSWORD>',
       displayWidth: 30,
       width: 100
     },
     {
       class: 'DateTime',
       name: 'passwordLastModified'
     },
     // TODO: startDate, endDate,
     // TODO: do we want to replace 'note' with a simple ticket system?
     {
       class: 'String',
       name: 'note',
       displayWidth: 70,
       displayHeight: 10
     }
   ]
 });

{'fraction_non_alphanumeric': 0.15303430079155672, 'fraction_numerical': 0.010993843447669306, 'mean_word_length': 1.5527497194163862, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7362535', 'n_tokens_mistral': 1510, 'n_tokens_neox': 1444, 'n_words': 321}