<commit_before>/*
 *  Copyright 2011-2014 <NAME>, <EMAIL>
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 */
package com.ajah.user.login;

import com.ajah.util.IdentifiableEnum;

/**
 * Valid types of LogIn entities.
 * 
 * @author <NAME> <<EMAIL>>
 * 
 */
public enum LogInType implements IdentifiableEnum<String> {

	/**
	 * Manual.
	 */
	MANUAL("1", "manual", "Manual", "Login was done by human/form."),
	/**
	 * Cookie.
	 */
	COOKIE("2", "cookie", "Cookie", "Login was done via cookie."),
	/**
	 * Signup.
	 */
	SIGNUP("3", "signup", "Signup", "Login was done as part of signup process."),
	/**
	 * OAuth.
	 */
	OAUTH("4", "oauth", "OAuth", "Login was done via OAuth."),
	/**
	 * API Token.
	 */
	API_TOKEN("5", "apitoken", "API Token", "Login was done by API token.");

	/**
	 * Finds a LogInType that matches the id on id, name, or name().
	 * 
	 * @param string
	 *            Value to match against id, name, or name()
	 * @return Matching LogInType, or null.<commit_msg>Add new login types<commit_after>/*
 *  Copyright 2011-2014 <NAME>, <EMAIL>
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 */
package com.ajah.user.login;

import com.ajah.util.IdentifiableEnum;

/**
 * Valid types of LogIn entities.
 * 
 * @author <NAME> <<EMAIL>>
 * 
 */
public enum LogInType implements IdentifiableEnum<String> {

	/**
	 * Manual.
	 */
	MANUAL("1", "manual", "Manual", "Login was done by human/form."),
	/**
	 * Cookie.
	 */
	COOKIE("2", "cookie", "Cookie", "Login was done via cookie."),
	/**
	 * Signup.
	 */
	SIGNUP("3", "signup", "Signup", "Login was done as part of signup process."),
	/**
	 * OAuth.
	 */
	OAUTH("4", "oauth", "OAuth", "Login was done via OAuth."),
	/**
	 * API Token.
	 */
	API_TOKEN("5", "apitoken", "API Token", "Login was done by API token."),
	/**
	 * HTTP.
	 */
	HTTP("6", "http", "HTTP", "Login was done by HTTP authentication header."),
	/**
	 * Bypass.
	 */
	BYPASS("7", "bypass", "Bypass", "Login was bypassed by some application-specific mechanism.");

	/**
	 * Finds a LogInType that matches the id on id, name, or name().
	 * 
	 * @param string
	 *            Value to match against id, name, or name()
	 * @return Matching LogInType, or null.
{'fraction_non_alphanumeric': 0.14365152919369786, 'fraction_numerical': 0.011121408711770158, 'mean_word_length': 3.1039290240811153, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '7247031', 'n_tokens_mistral': 1059, 'n_tokens_neox': 1000, 'n_words': 380}