<commit_before><?php
// (c) Copyright 2002-2016 by authors of the Tiki Wiki CMS Groupware Project
// 
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$

/**
 * @return array
 */
function prefs_pass_list()
{
	return array(
        'pass_chr_num' => array(
            'name' => tra('Require characters and numerals'),
            'description' => tra('For improved security, require users to include a mix of alphabetical characters and numerals in passwords.'),
            'type' => 'flag',
            'default' => 'n',
        ),
        'pass_blacklist' => array(
            'name' => tra('Prevent common passwords'),
            'description' => tra('For improved security, prevent passwords in your password blacklist from being used.'),
            'type' => 'list',
            'default' => 'n',
            'options' => array_merge(array('n' => 'Disable',
                          'auto' => 'Automatically select blacklist'),
                           genIndexedBlacks()),
        ),

		'pass_due' => array(
			'name' => tra('Password expires after'),
            'description' => tra('password expiration period (in days)'),
			'type' => 'text',
			'size' => 5,
			'filter' => 'int',
			'shorthint' => tra('days'),
			'hint' => tra('Use "-1" for never'),
			'default' => -1,
		),
		'pass_chr_case' => array(
			'name' => tra('Require alphabetical characters in lower and upper case'),
			'description' => tra('Password must contain at least one lowercase alphabetical character like "a" and one uppercase character like "A".'),
            'type' => 'flag',
			'default' => 'n',
		),
		'pass_chr_special' => array(
			'name' => tra('Require special characters'),
			'description' => tra('Password must contain at least one special character in lower case like " / $ % ? & * ( ) _ + ...'),
            'type' => 'flag',
			'default' => 'n',<commit_msg>[FIX] Fatal error due to missing function when prefs are being loaded (Tiki startup or in console).<commit_after><?php
// (c) Copyright 2002-2016 by authors of the Tiki Wiki CMS Groupware Project
// 
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$

/**
 * @return array
 */
function prefs_pass_list()
{
	return array(
        'pass_chr_num' => array(
            'name' => tra('Require characters and numerals'),
            'description' => tra('For improved security, require users to include a mix of alphabetical characters and numerals in passwords.'),
            'type' => 'flag',
            'default' => 'n',
        ),
        'pass_blacklist' => array(
            'name' => tra('Prevent common passwords'),
            'description' => tra('For improved security, prevent passwords in your password blacklist from being used.'),
            'type' => 'list',
            'default' => 'n',
            'options' => array_merge(array('n' => 'Disable',
                          'auto' => 'Automatically select blacklist'),
                           function_exists('genIndexedBlacks') ? genIndexedBlacks() : array()),
        ),

		'pass_due' => array(
			'name' => tra('Password expires after'),
            'description' => tra('password expiration period (in days)'),
			'type' => 'text',
			'size' => 5,
			'filter' => 'int',
			'shorthint' => tra('days'),
			'hint' => tra('Use "-1" for never'),
			'default' => -1,
		),
		'pass_chr_case' => array(
			'name' => tra('Require alphabetical characters in lower and upper case'),
			'description' => tra('Password must contain at least one lowercase alphabetical character like "a" and one uppercase character like "A".'),
            'type' => 'flag',
			'default' => 'n',
		),
		'pass_chr_special' => array(
			'name' => tra('Require special characters'),
			'description' => tra('Password must contain at least one special character in lower case like " / $ % ? & * ( ) _ + ...'),
            'type' => 'flag',
			'default' => 'n',
{'fraction_non_alphanumeric': 0.15405143134400776, 'fraction_numerical': 0.005337214944201844, 'mean_word_length': 2.642226148409894, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 67, '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': '7204315', 'n_tokens_mistral': 1248, 'n_tokens_neox': 1162, 'n_words': 391}