<commit_before><?php
/**
 * This is the Core Ósea library file, where
 * most of the main functions and features reside.
 *
 * If you have any custom functions, it's best
 * to put them in the functions.php file, or in
 * any of the suitable files included from there.
 *
 * URL: http://andamira.net/osea/
 *
 *		1 Cleanup (remove rsd, uri links, junk css, etc)
 *		2 Enqueueing scripts & styles
 *		3 Theme support functions
 *		4 Related post function
 *		5 Page-navi function
 *		7 Debug functions
 */


/**
 * 1 CLEANUP
 * ************************************************************
 */

function osea_head_cleanup() {
	// category feeds
	remove_action( 'wp_head', 'feed_links_extra', 3 );
	// post and comment feeds
	remove_action( 'wp_head', 'feed_links', 2 );
	// EditURI link
	remove_action( 'wp_head', 'rsd_link' );
	// windows live writer
	remove_action( 'wp_head', 'wlwmanifest_link' );
	// index link
	remove_action( 'wp_head', 'index_rel_link' );
	// previous link
	remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 );
	// start link
	remove_action( 'wp_head', 'start_post_rel_link', 10, 0 );
	// links for adjacent posts
	remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );
	// WP version
	remove_action( 'wp_head', 'wp_generator' );
	// remove WP version from css
	add_filter( 'style_loader_src', 'osea_remove_wp_ver_css_js', 9999 );
	// remove Wp version from scripts
	add_filter( 'script_loader_src', 'osea_remove_wp_ver_css_js', 9999 );

}

// remove WP version from RSS
function osea_rss_version() { return ''; }

// remove WP version from scripts
function osea_remove_wp_ver_css_js( $src ) {
    if ( strpos( $src, 'ver=' ) )
        $src = remove_query_arg( 'ver', $src );
    return $src;
}

// remove injected CSS for recent comments widget
function osea_remove_wp_widget_recent_comments_style() {
   if ( has_filter( 'wp_head', 'wp_widget_recent_comments_style' ) ) {<commit_msg>remove deprecated function (bones#683)<commit_after><?php
/**
 * This is the Core Ósea library file, where
 * most of the main functions and features reside.
 *
 * If you have any custom functions, it's best
 * to put them in the functions.php file, or in
 * any of the suitable files included from there.
 *
 * URL: http://andamira.net/osea/
 *
 *		1 Cleanup (remove rsd, uri links, junk css, etc)
 *		2 Enqueueing scripts & styles
 *		3 Theme support functions
 *		4 Related post function
 *		5 Page-navi function
 *		7 Debug functions
 */


/**
 * 1 CLEANUP
 * ************************************************************
 */

function osea_head_cleanup() {
	// category feeds
	remove_action( 'wp_head', 'feed_links_extra', 3 );
	// post and comment feeds
	remove_action( 'wp_head', 'feed_links', 2 );
	// EditURI link
	remove_action( 'wp_head', 'rsd_link' );
	// windows live writer
	remove_action( 'wp_head', 'wlwmanifest_link' );
	// previous link
	remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 );
	// start link
	remove_action( 'wp_head', 'start_post_rel_link', 10, 0 );
	// links for adjacent posts
	remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );
	// WP version
	remove_action( 'wp_head', 'wp_generator' );
	// remove WP version from css
	add_filter( 'style_loader_src', 'osea_remove_wp_ver_css_js', 9999 );
	// remove Wp version from scripts
	add_filter( 'script_loader_src', 'osea_remove_wp_ver_css_js', 9999 );

}

// remove WP version from RSS
function osea_rss_version() { return ''; }

// remove WP version from scripts
function osea_remove_wp_ver_css_js( $src ) {
    if ( strpos( $src, 'ver=' ) )
        $src = remove_query_arg( 'ver', $src );
    return $src;
}

// remove injected CSS for recent comments widget
function osea_remove_wp_widget_recent_comments_style() {
   if ( has_filter( 'wp_head', 'wp_widget_recent_comments_style' ) ) {
{'fraction_non_alphanumeric': 0.14899188269180413, 'fraction_numerical': 0.014401675831369469, 'mean_word_length': 4.225718194254446, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2699694', 'n_tokens_mistral': 1344, 'n_tokens_neox': 1282, 'n_words': 378}