<commit_before>package org.javarosa.user.view;

import java.io.IOException;

import javax.microedition.lcdui.Choice;
import javax.microedition.lcdui.ChoiceGroup;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.TextField;

import org.javarosa.core.api.IView;
import org.javarosa.core.util.externalizable.DeserializationException;
import org.javarosa.user.model.Constants;
import org.javarosa.user.model.User;
import org.javarosa.user.storage.UserRMSUtility;
import org.javarosa.user.utility.IUserDecorator;



/**
 * @author Julian
 *
 */
public class NewUserForm extends Form implements IView{

	private TextField userName;
	private TextField password;
	private TextField confirmPassword;
	
	private TextField[] metaFields;
	
	private IUserDecorator decorator;
	
	//#if javarosa.adduser.extended
	private TextField userID;
	//#endif
	
	private UserRMSUtility userRMS;
	private ChoiceGroup choice = new ChoiceGroup("",Choice.MULTIPLE);

	public NewUserForm(String title, IUserDecorator d) {
		super(title);
		userName = new TextField("Name (ie: loginID):", "", 10, TextField.ANY);
	    password = new TextField("User Password:", "", 10, TextField.PASSWORD);
	    confirmPassword = new TextField("Confirm Password:", "", 10, TextField.PASSWORD);
	    //#if javarosa.adduser.extended
	    userID = new TextField("User ID:", "", 10, TextField.NUMERIC);
	    //#endif
	    choice.append("Give this user admin rights?", null);

	    this.append(userName);
	    this.append(password);
	    this.append(confirmPassword);
	    //#if javarosa.adduser.extended
	    this.append(userID);
	    //#endif
	    this.append(choice);

	    userRMS = new UserRMSUtility("LoginMem");
	    this.decorator = d;
	    if(d!= null) {
	    	initMeta();
	    }
	}
	<commit_msg>[r2041] CommCare now has the appropriate meta properties for users.<commit_after>package org.javarosa.user.view;

import java.io.IOException;

import javax.microedition.lcdui.Choice;
import javax.microedition.lcdui.ChoiceGroup;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.TextField;

import org.javarosa.core.api.IView;
import org.javarosa.core.util.externalizable.DeserializationException;
import org.javarosa.user.model.Constants;
import org.javarosa.user.model.User;
import org.javarosa.user.storage.UserRMSUtility;
import org.javarosa.user.utility.IUserDecorator;



/**
 * @author Julian
 *
 */
public class NewUserForm extends Form implements IView{

	private TextField userName;
	private TextField password;
	private TextField confirmPassword;
	
	private TextField[] metaFields;
	
	private IUserDecorator decorator;
	
	//#if javarosa.adduser.extended
	private TextField userID;
	//#endif
	
	private UserRMSUtility userRMS;
	private ChoiceGroup choice = new ChoiceGroup("",Choice.MULTIPLE);

	public NewUserForm(String title, IUserDecorator d) {
		super(title);
		userName = new TextField("Name (ie: loginID):", "", 10, TextField.ANY);
	    password = new TextField("User Password:", "", 10, TextField.PASSWORD);
	    confirmPassword = new TextField("Confirm Password:", "", 10, TextField.PASSWORD);
	    //#if javarosa.adduser.extended
	    userID = new TextField("User ID:", "", 10, TextField.NUMERIC);
	    //#endif
	    choice.append("Give this user admin rights?", null);

	    this.append(userName);
	    this.append(password);
	    this.append(confirmPassword);
	    //#if javarosa.adduser.extended
	    this.append(userID);
	    //#endif

	    userRMS = new UserRMSUtility("LoginMem");
	    this.decorator = d;
	    if(d!= null) {
	    	initMeta();
	    }
	    this.append(choice);
	}
	
{'fraction_non_alphanumeric': 0.12090050027793219, 'fraction_numerical': 0.005558643690939411, 'mean_word_length': 4.208393632416787, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1374240', 'n_tokens_mistral': 1252, 'n_tokens_neox': 1138, 'n_words': 245}