<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$

function prefs_art_list()
{
	$article_sort_orders = array(
		'publishDate_desc' => tra('Newest first'),
	);

	$prefslib = TikiLib::lib('prefs');
	$advanced_columns = $prefslib->getExtraSortColumns();

	foreach ( $advanced_columns as $key => $label ) {
		$article_sort_orders[ $key . '_asc' ] = $label . ' ' . tr('ascending');
		$article_sort_orders[ $key . '_desc' ] = $label . ' ' . tr('descending');
	}

	return array(
		'art_sort_mode' => array(
			'name' => tra('Article order'),
			'description' => tra('Default sort mode for the articles on the list-articles page'),
			'type' => 'list',
			'options' => $article_sort_orders,
			'default' => 'publishDate_desc',
		),
		'art_home_title' => array(
			'name' => tra('Title of articles homepage'),
			'type' => 'list',
			'options' => array(
				'' => '',
				'topic' => tra('Topic'),
				'type' => tra('Type'),
				'articles' => tra('Articles'),
			),
			'default' => '',
		),
		'art_list_title' => array(
			'name' => tra('Title'),
			'type' => 'flag',
			'default' => 'y',
		),
		'art_list_title_len' => array(
			'name' => tra('Title length'),
			'type' => 'text',
			'size' => '5',
			'filter' => 'digits',
			'default' => '50',
		),
		'art_list_type' => array(
			'name' => tra('Type'),
			'type' => 'flag',
			'default' => 'y',
		),
		'art_list_topic' => array(
			'name' => tra('Topic'),
			'type' => 'flag',
			'default' => 'y',
		),
		'art_list_date' => array(
			'name' => tra('Publication date'),
			'type' => 'flag',
			'default' => 'y',
		),
		'art_list_expire' => array(
			'name' => tra('Expiration date'),
			'type' => 'flag',
			'default' => 'n',
		),
		'art_list_visible' => array(
			'name' => tra('Visible'),
			'type' => 'flag',
			'default' => 'n',
		),
		'art_list_lang' => array(
			'name' => tra('Language'),
			'type' => 'flag',
			'default' => 'n',
		),
		'art_list_author' => array(
			'name' => tra('Author (owner)'),
			'type' => 'flag',
			'default' => 'y',
		),
		'art_list_authorName' => array(
			'name' => tra('Author name (as displayed)'),
			'type' => 'flag',
			'default' => 'n',
		),
		'art_list_rating' => array(
			'name' => tra('Author rating'),
			'type' => 'flag',
			'default' => 'n',
		),
		'art_list_usersRating' => array(
			'name' => tra('Users rating'),
			'type' => 'flag',
			'default' => 'n',
		),
		'art_list_reads' => array(
			'name' => tra('Reads'),
			'type' => 'flag',
			'default' => 'y',
		),
		'art_list_size' => array(
			'name' => tra('Size'),
			'type' => 'flag',
			'default' => 'y',
		),
		'art_list_img' => array(
			'name' => tra('Images'),
			'type' => 'flag',
			'default' => 'n',
		),
		'art_list_id' => array(
			'name' => tra('Id'),
			'type' => 'flag',<commit_msg>[FIX] art_list_reads: Depend on feature_stats<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$

function prefs_art_list()
{
	$article_sort_orders = array(
		'publishDate_desc' => tra('Newest first'),
	);

	$prefslib = TikiLib::lib('prefs');
	$advanced_columns = $prefslib->getExtraSortColumns();

	foreach ( $advanced_columns as $key => $label ) {
		$article_sort_orders[ $key . '_asc' ] = $label . ' ' . tr('ascending');
		$article_sort_orders[ $key . '_desc' ] = $label . ' ' . tr('descending');
	}

	return array(
		'art_sort_mode' => array(
			'name' => tra('Article order'),
			'description' => tra('Default sort mode for the articles on the list-articles page'),
			'type' => 'list',
			'options' => $article_sort_orders,
			'default' => 'publishDate_desc',
		),
		'art_home_title' => array(
			'name' => tra('Title of articles homepage'),
			'type' => 'list',
			'options' => array(
				'' => '',
				'topic' => tra('Topic'),
				'type' => tra('Type'),
				'articles' => tra('Articles'),
			),
			'default' => '',
		),
		'art_list_title' => array(
			'name' => tra('Title'),
			'type' => 'flag',
			'default' => 'y',
		),
		'art_list_title_len' => array(
			'name' => tra('Title length'),
			'type' => 'text',
			'size' => '5',
			'filter' => 'digits',
			'default' => '50',
		),
		'art_list_type' => array(
			'name' => tra('Type'),
			'type' => 'flag',
			'default' => 'y',
		),
		'art_list_topic' => array(
			'name' => tra('Topic'),
			'type' => 'flag',
			'default' => 'y',
		),
		'art_list_date' => array(
			'name' => tra('Publication date'),
			'type' => 'flag',
			'default' => 'y',
		),
		'art_list_expire' => array(
			'name' => tra('Expiration date'),
			'type' => 'flag',
			'default' => 'n',
		),
		'art_list_visible' => array(
			'name' => tra('Visible'),
			'type' => 'flag',
			'default' => 'n',
		),
		'art_list_lang' => array(
			'name' => tra('Language'),
			'type' => 'flag',
			'default' => 'n',
		),
		'art_list_author' => array(
			'name' => tra('Author (owner)'),
			'type' => 'flag',
			'default' => 'y',
		),
		'art_list_authorName' => array(
			'name' => tra('Author name (as displayed)'),
			'type' => 'flag',
			'default' => 'n',
		),
		'art_list_rating' => array(
			'name' => tra('Author rating'),
			'type' => 'flag',
			'default' => 'n',
		),
		'art_list_usersRating' => array(
			'name' => tra('Users rating'),
			'type' => 'flag',
			'default' => 'n',
		),
		'art_list_reads' => array(
			'name' => tra('Reads'),
			'type' => 'flag',
			'default' => 'y',
			'dependencies' => array(
				'feature_stats',
			),
		),
		'art_list_size' => array(
			'name' => tra('Size'),
			'type' => 'flag',
			'default' => 'y',
		),
		'art_list_img' => array(
			'name' => tra('Images'),
			'type' => 'flag',
			'default' => 'n',
		),
		'art_list_id' => array(
			'name' => tra('Id'),
			'type' => 'flag',
{'fraction_non_alphanumeric': 0.23803213516647342, 'fraction_numerical': 0.0036441941361603446, 'mean_word_length': 3.36271676300578, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 170, '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': '6672471', 'n_tokens_mistral': 2664, 'n_tokens_neox': 2307, 'n_words': 498}