<commit_before>/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.areen.jlib.test;

import com.areen.apc.lib.vo.Department;
import com.areen.jlib.model.SimpleObject;
import com.areen.jlib.pattern.ValueObject;
import java.io.Serializable;

/**
 *
 * @author mehjabeen
 */
public class User implements SimpleObject<ValueObject> {
    
    static final byte NUMBER_OF_FIELDS = 4;
    String[] titles = new String[]{"User ID", "Department", "Username", "Password"};
    
    public static class VO implements ValueObject, Serializable {
        long user_id = 0; /// reserved for future use
	String userId = "UNK01";     /// "user_id" column
	String dept;             /// reference VO an adequate row in the dir_val_depts table
	String userName = "unknown"; /// "vms_username" column
	String password = "<PASSWORD>"; /// "extension" column
        /**       
         * user_id                          char            5  yes    null     1       
         * dept_code                        char            3  yes    null        
         * vms_username                     char           30  yes    null       
         * print_queue                      char           30  yes    null       
         * batch_queue                      char           30  yes    null        
         * extension                        char           10  yes    null  
         * authority_level                  char           15  yes    null
         * keyboard_type                    char            3  yes    null
         */
    } // User.VO class
    
    User.VO value;
    /*************************************************************************
     * Constructors
     *************************************************************************/
    /**
     * Default constructor
     */
    public User() {
        value = new User.VO();
    } // User (default) constructor

    public User(User.VO argValue) {
        value = argValue;
    } // User constructor

    public User(String  argUserId, String argdepartment, String arguserName, String argpassword) {
        value = new User.VO();
        value.userId = argUserId;
        value.dept = argdepartment;
        value.userName = arguserName;
        value.password = argpassword;
    } // User constructor
 
    
    @Override
    public Object get(int argIndex) {
        Object ret = null;
        switch (argIndex) {
            case 0: ret = value.userId; break;
            case 1: ret = value.dept; break;
            case 2: ret = value.userName; break;
            case 3: ret = value.password; break;
        } // switch
        return ret;
    }

    @Override
    public Class<?> getFieldClass(int argIndex) {
        Class<?> ret = Object.class;
        switch (argIndex) {
            case 0: ret = String.class; break;
            case 1: ret = Department.class; break;
            case 2: ret = String.class; break;<commit_msg>- Test example fix: jlib no dependency on apc-lib APC-574<commit_after>/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.areen.jlib.test;

import com.areen.jlib.model.SimpleObject;
import com.areen.jlib.pattern.ValueObject;
import java.io.Serializable;

/**
 *
 * @author mehjabeen
 */
public class User implements SimpleObject<ValueObject> {
    
    static final byte NUMBER_OF_FIELDS = 4;
    String[] titles = new String[]{"User ID", "Department", "Username", "Password"};
    
    public static class VO implements ValueObject, Serializable {
        long user_id = 0; /// reserved for future use
	String userId = "UNK01";     /// "user_id" column
	String dept;             /// reference VO an adequate row in the dir_val_depts table
	String userName = "unknown"; /// "vms_username" column
	String password = "<PASSWORD>"; /// "extension" column
        /**       
         * user_id                          char            5  yes    null     1       
         * dept_code                        char            3  yes    null        
         * vms_username                     char           30  yes    null       
         * print_queue                      char           30  yes    null       
         * batch_queue                      char           30  yes    null        
         * extension                        char           10  yes    null  
         * authority_level                  char           15  yes    null
         * keyboard_type                    char            3  yes    null
         */
    } // User.VO class
    
    User.VO value;
    /*************************************************************************
     * Constructors
     *************************************************************************/
    /**
     * Default constructor
     */
    public User() {
        value = new User.VO();
    } // User (default) constructor

    public User(User.VO argValue) {
        value = argValue;
    } // User constructor

    public User(String  argUserId, String argdepartment, String arguserName, String argpassword) {
        value = new User.VO();
        value.userId = argUserId;
        value.dept = argdepartment;
        value.userName = arguserName;
        value.password = <PASSWORD>;
    } // User constructor
 
    
    @Override
    public Object get(int argIndex) {
        Object ret = null;
        switch (argIndex) {
            case 0: ret = value.userId; break;
            case 1: ret = value.dept; break;
            case 2: ret = value.userName; break;
            case 3: ret = value.password; break;
        } // switch
        return ret;
    }

    @Override
    public Class<?> getFieldClass(int argIndex) {
        Class<?> ret = Object.class;
        switch (argIndex) {
            case 0: ret = String.class; break;
            case 1: ret = String.class; break;
            case 2: ret = String.class; break;
{'fraction_non_alphanumeric': 0.1332656857771013, 'fraction_numerical': 0.008963301200744123, 'mean_word_length': 1.6007036059806508, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6261040', 'n_tokens_mistral': 1572, 'n_tokens_neox': 1495, 'n_words': 462}