<commit_before><?php

/* Mocked WP functions used in domain objects */
function apply_filters($tag, $value) { return $value; }
function do_action($tag) { }
function get_the_excerpt($post) { return $post->post_excerpt; }
function maybe_unserialize($value) { return $value; }
function maybe_serialize($value) { return $value; }
function sanitize_title($title) { return $title; }

/* Stubbed WP classes */
class WP_Widget {}<commit_msg>only stub when running phpspec<commit_after><?php

/* Mocked WP functions used in domain objects */
if (defined('PHPSPEC_VERSION')) {
    function apply_filters($tag, $value) { return $value; }
    function do_action($tag) { }
    function get_the_excerpt($post) { return $post->post_excerpt; }
    function maybe_unserialize($value) { return $value; }
    function maybe_serialize($value) { return $value; }
    function sanitize_title($title) { return $title; }

    /* Stubbed WP classes */
    class WP_Widget {}
}
{'fraction_non_alphanumeric': 0.13249211356466878, 'fraction_numerical': 0.0, 'mean_word_length': 4.987421383647798, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5645404', 'n_tokens_mistral': 292, 'n_tokens_neox': 287, 'n_words': 78}