<commit_before><?php
/**
 * Squiz_Sniffs_XSS_EscapeOutputSniff.
 *
 * PHP version 5
 *
 * @category PHP
 * @package  PHP_CodeSniffer
 * @author   <NAME> <<EMAIL>>
 */

/**
 * Verifies that all outputted strings are sanitized
 *
 * @category PHP
 * @package  PHP_CodeSniffer
 * @author   <NAME> <<EMAIL>>
 * @link     http://codex.wordpress.org/Data_Validation Data Validation on WordPress Codex
 */
class WordPress_Sniffs_XSS_EscapeOutputSniff extends WordPress_Sniff
{

	public $customAutoEscapedFunctions = array();

	public $customSanitizingFunctions = array();

	public $customPrintingFunctions = array();

	public static $autoEscapedFunctions = array(
		'allowed_tags',
		'bloginfo',
		'body_class',
		'calendar_week_mod',
		'cancel_comment_reply_link',
		'category_description',
		'checked',
		'comment_ID',
		'comment_author',
		'comment_author_IP',
		'comment_author_email',
		'comment_author_email_link',
		'comment_author_link',
		'comment_author_rss',
		'comment_author_url',
		'comment_author_url_link',
		'comment_class',
		'comment_date',
		'comment_excerpt',
		'comment_form',
		'comment_form_title',
		'comment_id_fields',
		'comment_reply_link',
		'comment_text',
		'comment_text_rss',
		'comment_time',
		'comment_type',
		'comments_link',
		'comments_number',
		'comments_popup_link',
		'comments_popup_script',
		'comments_rss_link',
		'delete_get_calendar_cache',
		'disabled',
		'do_shortcode_tag',
		'edit_bookmark_link',
		'edit_comment_link',
		'edit_post_link',
		'edit_tag_link',
		'get_archives_link',
		'get_attachment_link',
		'get_avatar',
		'get_bookmark',
		'get_bookmark_field',
		'get_calendar',
		'get_comment_author_link',
		'get_comment_date',
		'get_comment_time',
		'get_current_blog_id',
		'get_delete_post_link',
		'get_footer',
		'get_header',
		'get_search_form',
		'get_search_query',
		'get_sidebar',
		'get_template_part',
		'get_the_author',
		'get_the_author_link',
		'get_the_date',
		'get_the_post_thumbnail',
		'get_the_term_list',
		'get_the_title',
		'has_post_thumbnail',
		'is_attachment',
		'next_comments_link',
		'next_image_link',
		'next_post_link',
		'next_posts_link',
		'paginate_comments_links',
		'permalink_anchor',
		'post_class',
		'post_password_required',<commit_msg>Add in_array() to list of auto-escaped functions<commit_after><?php
/**
 * Squiz_Sniffs_XSS_EscapeOutputSniff.
 *
 * PHP version 5
 *
 * @category PHP
 * @package  PHP_CodeSniffer
 * @author   <NAME> <<EMAIL>>
 */

/**
 * Verifies that all outputted strings are sanitized
 *
 * @category PHP
 * @package  PHP_CodeSniffer
 * @author   <NAME> <<EMAIL>>
 * @link     http://codex.wordpress.org/Data_Validation Data Validation on WordPress Codex
 */
class WordPress_Sniffs_XSS_EscapeOutputSniff extends WordPress_Sniff
{

	public $customAutoEscapedFunctions = array();

	public $customSanitizingFunctions = array();

	public $customPrintingFunctions = array();

	public static $autoEscapedFunctions = array(
		'allowed_tags',
		'bloginfo',
		'body_class',
		'calendar_week_mod',
		'cancel_comment_reply_link',
		'category_description',
		'checked',
		'comment_ID',
		'comment_author',
		'comment_author_IP',
		'comment_author_email',
		'comment_author_email_link',
		'comment_author_link',
		'comment_author_rss',
		'comment_author_url',
		'comment_author_url_link',
		'comment_class',
		'comment_date',
		'comment_excerpt',
		'comment_form',
		'comment_form_title',
		'comment_id_fields',
		'comment_reply_link',
		'comment_text',
		'comment_text_rss',
		'comment_time',
		'comment_type',
		'comments_link',
		'comments_number',
		'comments_popup_link',
		'comments_popup_script',
		'comments_rss_link',
		'delete_get_calendar_cache',
		'disabled',
		'do_shortcode_tag',
		'edit_bookmark_link',
		'edit_comment_link',
		'edit_post_link',
		'edit_tag_link',
		'get_archives_link',
		'get_attachment_link',
		'get_avatar',
		'get_bookmark',
		'get_bookmark_field',
		'get_calendar',
		'get_comment_author_link',
		'get_comment_date',
		'get_comment_time',
		'get_current_blog_id',
		'get_delete_post_link',
		'get_footer',
		'get_header',
		'get_search_form',
		'get_search_query',
		'get_sidebar',
		'get_template_part',
		'get_the_author',
		'get_the_author_link',
		'get_the_date',
		'get_the_post_thumbnail',
		'get_the_term_list',
		'get_the_title',
		'has_post_thumbnail',
		'in_array',
		'is_attachment',
		'next_comments_link',
		'next_image_link',
		'next_post_link',
		'next_posts_link',
		'paginate_comments_links',
		'permalink_anchor',
		'post_class',
		'post_password_required',
{'fraction_non_alphanumeric': 0.12906077348066297, 'fraction_numerical': 0.0004419889502762431, 'mean_word_length': 5.725111441307578, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, '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': '6803884', 'n_tokens_mistral': 1844, 'n_tokens_neox': 1679, 'n_words': 250}