<commit_before>package edu.iastate.music.marching.attendance.util;

import java.util.regex.Pattern;

import edu.iastate.music.marching.attendance.App;

public class ValidationUtil {
	
	private static final Pattern PATTERN_NAME = Pattern.compile("[\\w\\. -]+");

	public static boolean isValidName(String name) {
		// Names are composed of characters (\w) and dashes
		return PATTERN_NAME.matcher(name).matches();
	}
	
	public static boolean validGoogleUser(
			com.google.appengine.api.users.User google_user) {
		
		if(google_user == null)
			return false;
		
		String[] email_parts = google_user.getEmail().split("@");
		
		if(email_parts.length == 2 && validEmailDomain(email_parts[1]))
		{
			return true;
		}
		else
		{
			return false;
		}
	}

	private static boolean validEmailDomain(String domain) {
		// TODO Auto-generated method stub
		return "iastate.edu".equals(domain);
	}

	public static boolean isValidText(String text, boolean canBeEmpty) {
		// TODO Auto-generated method stub
		return true;
	}

	public static boolean isValidFormDEmail(String email) {
		return App.getTimeWorkedEmails().contains(email);
	}

}<commit_msg>Added TODO markers to validation util<commit_after>package edu.iastate.music.marching.attendance.util;

import java.util.regex.Pattern;

import edu.iastate.music.marching.attendance.App;

public class ValidationUtil {
	
	private static final Pattern PATTERN_NAME = Pattern.compile("[\\w\\. -]+");

	public static boolean isValidName(String name) {
		// Names are composed of characters (\w) and dashes
		return PATTERN_NAME.matcher(name).matches();
	}
	
	public static boolean validGoogleUser(
			com.google.appengine.api.users.User google_user) {
		
		if(google_user == null)
			return false;
		
		String[] email_parts = google_user.getEmail().split("@");
		
		if(email_parts.length == 2 && validEmailDomain(email_parts[1]))
		{
			return true;
		}
		else
		{
			return false;
		}
	}

	private static boolean validEmailDomain(String domain) {
		// TODO Auto-generated method stub
		// TODO This should be an application setting
		return "iastate.edu".equals(domain);
	}

	public static boolean isValidText(String text, boolean canBeEmpty) {
		// TODO Auto-generated method stub
		return true;
	}

	public static boolean isValidFormDEmail(String email) {
		// TODO Do this using a data train please
		return App.getTimeWorkedEmails().contains(email);
	}

}
{'fraction_non_alphanumeric': 0.11101836393989983, 'fraction_numerical': 0.001669449081803005, 'mean_word_length': 4.0251572327044025, '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': '5630272', 'n_tokens_mistral': 834, 'n_tokens_neox': 733, 'n_words': 184}