<commit_before><?php

define("ASSET_COMPILE_OUTPUT_DIR", APP_ROOT.'/pcache/asset_compile');
define("ASSET_COMPILE_URL_ROOT", '/csscache');

function smarty_block_asset_compile($params, $content, &$smarty, &$repeat){
    if (!$repeat){
        // don't shoot me, but all tried using the dom-parser and removing elements
        // ended up with problems due to the annoying DOM API and braindead stuff
        // like no getDocumentElement() or getElementByID() not working even though
        // loadHTML clearly knows that the content is in fact HTML.
        //
        // So, let's go back to good old regexps :-)

        $link_tag_pattern = '#<\s*link\s+(.*)\s*(?:/>|>(?:.*)</link>)#Ui';
        if(!preg_match_all($link_tag_pattern, $content, $links))<commit_msg>use a public name that makes more sense<commit_after><?php

define("ASSET_COMPILE_OUTPUT_DIR", APP_ROOT.'/pcache/asset_compile');
define("ASSET_COMPILE_URL_ROOT", '/assetcache');

function smarty_block_asset_compile($params, $content, &$smarty, &$repeat){
    if (!$repeat){
        // don't shoot me, but all tried using the dom-parser and removing elements
        // ended up with problems due to the annoying DOM API and braindead stuff
        // like no getDocumentElement() or getElementByID() not working even though
        // loadHTML clearly knows that the content is in fact HTML.
        //
        // So, let's go back to good old regexps :-)

        $link_tag_pattern = '#<\s*link\s+(.*)\s*(?:/>|>(?:.*)</link>)#Ui';
        if(!preg_match_all($link_tag_pattern, $content, $links))
{'fraction_non_alphanumeric': 0.14303959131545338, 'fraction_numerical': 0.0, 'mean_word_length': 3.426553672316384, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6315810', 'n_tokens_mistral': 478, 'n_tokens_neox': 471, 'n_words': 144}