<commit_before><?php
function add_assets_css()
{
    $pathJson = (!WP_ENV == 'development') ? JSON_REV : '';
    $manifest = new AssetManifest($pathJson);

    wp_enqueue_style('setrobot/vendor_css',  $manifest->getFile('css/vendor.css'), false, null);
    wp_enqueue_style('setrobot/css',         $manifest->getFile('css/main.css'), false, null);

    wp_enqueue_script('setrobot/vendor_js',  $manifest->getFile('js/vendor.js'), array('jquery'), null, true);
    wp_enqueue_script('setrobot/js',         $manifest->getFile('js/main.js'), array('setrobot/vendor_js'), null, true);
}
add_action('wp_enqueue_scripts', 'add_assets_css');

function remove_head_scripts()
{
    remove_action('wp_head', 'wp_print_scripts');
    remove_action('wp_head', 'wp_print_head_scripts', 9);
    remove_action('wp_head', 'wp_enqueue_scripts', 1);

    add_action('wp_footer', 'wp_print_scripts', 5);
    add_action('wp_footer', 'wp_enqueue_scripts', 5);
    add_action('wp_footer', 'wp_print_head_scripts', 5);
}
add_action('wp_enqueue_scripts', 'remove_head_scripts');

function remove_script_version($src)
{
    return $src ? esc_url(remove_query_arg('ver', $src)) : false;
}
add_filter('script_loader_src', 'remove_script_version', 15, 1);
add_filter('style_loader_src', 'remove_script_version', 15, 1);<commit_msg>Improve remove head scripts<commit_after><?php
function add_assets_css()
{
    $pathJson = (!WP_ENV == 'development') ? JSON_REV : '';
    $manifest = new AssetManifest($pathJson);

    wp_enqueue_style('setrobot/vendor_css',  $manifest->getFile('css/vendor.css'), false, null);
    wp_enqueue_style('setrobot/css',         $manifest->getFile('css/main.css'), false, null);

    wp_enqueue_script('setrobot/vendor_js',  $manifest->getFile('js/vendor.js'), array('jquery'), null, true);
    wp_enqueue_script('setrobot/js',         $manifest->getFile('js/main.js'), array('setrobot/vendor_js'), null, true);
}
add_action('wp_enqueue_scripts', 'add_assets_css');

function remove_head_scripts()
{
    remove_action('wp_head', 'wp_print_scripts');
    remove_action('wp_head', 'wp_print_head_scripts', 9);
    remove_action('wp_head', 'wp_enqueue_scripts', 1);
}
add_action('wp_enqueue_scripts', 'remove_head_scripts');

function remove_script_version($src)
{
    return $src ? esc_url(remove_query_arg('ver', $src)) : false;
}
add_filter('script_loader_src', 'remove_script_version', 15, 1);
add_filter('style_loader_src', 'remove_script_version', 15, 1);
{'fraction_non_alphanumeric': 0.16978827361563517, 'fraction_numerical': 0.007736156351791531, 'mean_word_length': 6.583333333333333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '55214', 'n_tokens_mistral': 888, 'n_tokens_neox': 852, 'n_words': 125}