<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 implements PHP_CodeSniffer_Sniff
{

	public static $autoEscapedFunctions = array(
		'allowed_tags',
		'bloginfo',
		'body_class',
		'calendar_week_mod',
		'cancel_comment_reply_link',
		'category_description',
		'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',
		'do_shortcode_tag',
		'edit_bookmark_link',
		'edit_comment_link',
		'edit_post_link',
		'edit_tag_link',
		'get_admin_url',
		'get_archives_link',
		'get_attachment_link',
		'get_author_posts_url',
		'get_avatar',
		'get_bloginfo',
		'get_bookmark',
		'get_bookmark_field',
		'get_bookmarks',
		'get_calendar',
		'get_category_link',
		'get_comment_author_link',
		'get_comment_date',
		'get_comment_time',
		'get_current_blog_id',
		'get_delete_post_link',
		'get_edit_post_link',
		'get_footer',
		'get_header',
		'get_home_url',
		'get_page_link',
		'get_permalink',
		'get_post_permalink',
		'get_post_thumbnail_id',
		'get_search_form',
		'get_search_link',
		'get_search_query',
		'get_sidebar',
		'get_site_url',
		'get_template_part',
		'get_term_link',
		'get_the_author',
		'get_the_author_link',
		'get_the_date',
		'get_the_post_thumbnail',
		'get_the_term_list',
		'get_the_title',
		'has_post_thumbnail',
		'home_url',
		'is_attachment',
		'next_comments_link',
		'next_image_link',
		'next_post_link',
		'next_posts_link',
		'paginate_comments_links',
		'permalink_anchor',
		'permalink_comments_rss',
		'post_class',
		'post_password_required',
		'post_permalink',
		'post_type_archive_title',
		'posts_nav_link',
		'previous_comments_link',
		'previous_image_link',
		'previous_post_link',
		'previous_posts_link',
		'single_cat_title',
		'single_month_title',
		'single_post_title',
		'single_tag_title',
		'single_term_title',
		'site_url',
		'sticky_class',
		'tag_description',
		'term_description',
		'the_ID',
		'the_attachment_link',
		'the_author',
		'the_author_link',
		'the_author_meta',
		'the_author_posts',
		'the_author_posts_link',
		'the_category',
		'the_category_rss',
		'the_content',
		'the_content_rss',
		'the_date',
		'the_date_xml',
		'the_excerpt',
		'the_excerpt_rss',
		'the_feed_link',
		'the_meta',
		'the_modified_author',
		'the_modified_date',
		'the_modified_time',
		'the_permalink',
		'the_post_thumbnail',
		'the_search_query',
		'the_shortlink',
		'the_tags',
		'the_taxonomies',
		'the_terms',
		'the_time',
		'the_title',
		'the_title_attribute',
		'the_title_rss',
		'user_trailingslashit',
		'walk_nav_menu_tree',
		'wp_attachment_is_image',
		'wp_dropdown_categories',
		'wp_dropdown_users',
		'wp_enqueue_script',
		'wp_generate_tag_cloud',
		'wp_get_archives',
		'wp_get_attachment_image',
		'wp_get_attachment_image_src',
		'wp_get_attachment_link',
		'wp_get_attachment_metadata',
		'wp_get_shortlink',
		'wp_link_pages',
		'wp_list_authors',
		'wp_list_bookmarks',
		'wp_list_categories',
		'wp_list_comments',
		'wp_login_form',
		'wp_login_url',
		'wp_loginout',
		'wp_logout_url',
		'wp_lostpassword_url',
		'wp_meta',
		'wp_nav_menu',
		'wp_register',
		'wp_shortlink_header',
		'wp_shortlink_wp_head',
		'wp_tag_cloud',
		'wp_title',
	);

	public static $sanitizingFunctions = array(
		'absint',
		'balanceTags',
		'esc_attr',
		'esc_attr__',
		'esc_attr_e',
		'esc_html',
		'esc_html__',
		'esc_html_e',
		'esc_js',
		'esc_sql',
		'esc_textarea',
		'esc_url',
		'esc_url_raw',
		'filter_input',<commit_msg>XSS sniff: Remove some *_url functions from the auto-escaped function list<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 implements PHP_CodeSniffer_Sniff
{

	public static $autoEscapedFunctions = array(
		'allowed_tags',
		'bloginfo',
		'body_class',
		'calendar_week_mod',
		'cancel_comment_reply_link',
		'category_description',
		'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',
		'do_shortcode_tag',
		'edit_bookmark_link',
		'edit_comment_link',
		'edit_post_link',
		'edit_tag_link',
		'get_archives_link',
		'get_attachment_link',
		'get_avatar',
		'get_bloginfo',
		'get_bookmark',
		'get_bookmark_field',
		'get_bookmarks',
		'get_calendar',
		'get_category_link',
		'get_comment_author_link',
		'get_comment_date',
		'get_comment_time',
		'get_current_blog_id',
		'get_delete_post_link',
		'get_edit_post_link',
		'get_footer',
		'get_header',
		'get_page_link',
		'get_permalink',
		'get_post_permalink',
		'get_post_thumbnail_id',
		'get_search_form',
		'get_search_link',
		'get_search_query',
		'get_sidebar',
		'get_template_part',
		'get_term_link',
		'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',
		'permalink_comments_rss',
		'post_class',
		'post_password_required',
		'post_permalink',
		'post_type_archive_title',
		'posts_nav_link',
		'previous_comments_link',
		'previous_image_link',
		'previous_post_link',
		'previous_posts_link',
		'single_cat_title',
		'single_month_title',
		'single_post_title',
		'single_tag_title',
		'single_term_title',
		'sticky_class',
		'tag_description',
		'term_description',
		'the_ID',
		'the_attachment_link',
		'the_author',
		'the_author_link',
		'the_author_meta',
		'the_author_posts',
		'the_author_posts_link',
		'the_category',
		'the_category_rss',
		'the_content',
		'the_content_rss',
		'the_date',
		'the_date_xml',
		'the_excerpt',
		'the_excerpt_rss',
		'the_feed_link',
		'the_meta',
		'the_modified_author',
		'the_modified_date',
		'the_modified_time',
		'the_permalink',
		'the_post_thumbnail',
		'the_search_query',
		'the_shortlink',
		'the_tags',
		'the_taxonomies',
		'the_terms',
		'the_time',
		'the_title',
		'the_title_attribute',
		'the_title_rss',
		'user_trailingslashit',
		'walk_nav_menu_tree',
		'wp_attachment_is_image',
		'wp_dropdown_categories',
		'wp_dropdown_users',
		'wp_enqueue_script',
		'wp_generate_tag_cloud',
		'wp_get_archives',
		'wp_get_attachment_image',
		'wp_get_attachment_image_src',
		'wp_get_attachment_link',
		'wp_get_attachment_metadata',
		'wp_get_shortlink',
		'wp_link_pages',
		'wp_list_authors',
		'wp_list_bookmarks',
		'wp_list_categories',
		'wp_list_comments',
		'wp_login_form',
		'wp_loginout',
		'wp_meta',
		'wp_nav_menu',
		'wp_register',
		'wp_shortlink_header',
		'wp_shortlink_wp_head',
		'wp_tag_cloud',
		'wp_title',
	);

	public static $sanitizingFunctions = array(
		'absint',
		'balanceTags',
		'esc_attr',
		'esc_attr__',
		'esc_attr_e',
		'esc_html',
		'esc_html__',
		'esc_html_e',
		'esc_js',
		'esc_sql',
		'esc_textarea',
		'esc_url',
		'esc_url_raw',
		'filter_input',
{'fraction_non_alphanumeric': 0.13642756680731363, 'fraction_numerical': 0.00023441162681669012, 'mean_word_length': 5.777601270849881, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3605940', 'n_tokens_mistral': 3808, 'n_tokens_neox': 3433, 'n_words': 444}